4193 revamp beam fusion calculations#4200
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4200 +/- ##
==========================================
+ Coverage 52.10% 52.12% +0.01%
==========================================
Files 148 148
Lines 30389 30401 +12
==========================================
+ Hits 15835 15847 +12
Misses 14554 14554 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
je-cook
left a comment
There was a problem hiding this comment.
Just comments on code and docstrings. I havent reviewed the model changes
je-cook
left a comment
There was a problem hiding this comment.
Codewise happy, leaving the model thoughts to @chris-ashe
chris-ashe
left a comment
There was a problem hiding this comment.
All of the mathematics in the docs is not rendering and the links are broken.
Just use
$$
<math_block>
$$
Will review the rest once I can see the equations
chris-ashe
left a comment
There was a problem hiding this comment.
I think some CS changes from another branch have creeped in. I also cant get the summary file to plot. It just hangs.
| * beam_deposited_energy | ||
| * beam_state.nd_beam_hot | ||
| * beam_state.e_beam_deposited_kev | ||
| / (b_plasma_toroidal_on_axis**2 + b_plasma_poloidal_average**2) |
There was a problem hiding this comment.
Just thinking if this is actually meant be the total field given by
There was a problem hiding this comment.
On the denominator? It's supposed to be
Where B is the total magnetic field
1e7c095 to
b657973
Compare
…reactivity from beam-fusion. re-documented functions more explicitly.
b657973 to
f147f3a
Compare

Description
Refactored beam_fusion model.
The model now directly computes beam alpha power from:
The previous thermal reactivity correction (Bosch-Hale) has been removed.
This was not physically consistent:
thermal fusion involves two Maxwellian populations
beam-target fusion involves one fast population and one thermal population
the beam reactivity already includes fast-ion averaging
See the docs for outline of the routine. I haven't changed much else of the physics but it's been listed more clearly in the docs in the new functional form.
Most of the changes are clarifying what each function is actually calculating and changing docstring and name accordingly.
Checklist
I confirm that I have completed the following checks: