Skip to content

Fix RISP_data function#58

Merged
RemDelaporteMathurin merged 2 commits into
mainfrom
non-sp-risp-bins
Dec 4, 2024
Merged

Fix RISP_data function#58
RemDelaporteMathurin merged 2 commits into
mainfrom
non-sp-risp-bins

Conversation

@kaelyndunnell
Copy link
Copy Markdown
Collaborator

@kaelyndunnell kaelyndunnell commented Dec 3, 2024

Previously, RISP_data function assigned flux values only to first wall sub bins and divertor bins that were on the inner and outer strike point. This means that the function broke when a Divbin on neither the inner or outer strike point was passed to RISP_data.

Added capability to return correct RISP flux data for non-strike point Divbins. Note that this is a "quick fix" that relies on the offset_mb function, which should eventually be changed in accordance with issue #50.

Updates all_bin_scenario example to test an outer strike point and non-strike point Divbin.

…risp pulses. assigned them a value & update example to test
Copy link
Copy Markdown
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see how this fixes the bug. Though could you write a test to prove that the fix is effective?

@RemDelaporteMathurin RemDelaporteMathurin merged commit b3c6305 into main Dec 4, 2024
@kaelyndunnell kaelyndunnell deleted the non-sp-risp-bins branch December 6, 2024 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants