Conversation
chris-ashe
left a comment
There was a problem hiding this comment.
Few comments, you also need to update the docs and give a reference. Please put the reference in IEEE style with a hyperlink DOI
| # Output file naming | ||
| if output_name == "plasma_current_MA": | ||
| extra_str = f"plasma_current{f'_vs_{output_name2}' if output_names2 != [] else ''}" | ||
| if output_name == "p_div_separatrix_max_mw/physics_variables.rmajor": |
There was a problem hiding this comment.
This shouldnt be needed in this from now as there is now physics_variables.p_plasma_separatrix_rmajor_mw
There was a problem hiding this comment.
Okay this change will become redundant after a rebase.
| ), | ||
| "fiooic": InputVariable( | ||
| data_structure.constraint_variables, float, range=(0.001, 1.0) | ||
| data_structure.constraint_variables, float, range=(0.001, 10.0) |
There was a problem hiding this comment.
Why has this been changed?
There was a problem hiding this comment.
This was changed to allow a fudge factor during some future concepts scans
|
|
||
| if physics_variables.i_plasma_geometry == 12: | ||
|
|
||
| physics_variables.kappa = 2.93e0 * ( 1.8e0 / physics_variables.aspect ) ** 0.4e0 |
There was a problem hiding this comment.
A comment with the model origin needs to be added
There was a problem hiding this comment.
I'm slightly unclear on the definitive source of the this scaling.
There was a problem hiding this comment.
I will see if I can hunt it down
| elif physics_variables.i_plasma_geometry == 12: | ||
| po.ovarrf( | ||
| self.outfile, | ||
| "Elongation, X-point (calculated from aspect ratio via scaling)", |
There was a problem hiding this comment.
The string needs to state the model
timothy-nunn
left a comment
There was a problem hiding this comment.
Thanks @chris-ashe for the review. @ajpearcey please fix the merge conflicts so that the CI can run and I can review any failures there
6dc2bd9 to
330e980
Compare
chris-ashe
left a comment
There was a problem hiding this comment.
@ajpearcey Can you please update the docs and add a reference in IEE format with a clickable DOI link
f202321 to
9e5c020
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4134 +/- ##
==========================================
- Coverage 49.68% 49.68% -0.01%
==========================================
Files 148 148
Lines 29773 29779 +6
==========================================
+ Hits 14794 14796 +2
- Misses 14979 14983 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7de4d9e to
e1bac33
Compare
timothy-nunn
left a comment
There was a problem hiding this comment.
Please talk to @chris-ashe about the enums. Happy otherwise once Chris approves!
| 79: "eta_ecrh_injector_wall_plug", | ||
| 80: "fcoolcp", | ||
| 81: "n_tf_coil_turns", | ||
| 82: "f_p_plasma_separatrix_rad", # really fradpwr |
There was a problem hiding this comment.
| 82: "f_p_plasma_separatrix_rad", # really fradpwr | |
| 82: "f_p_plasma_separatrix_rad", |
|
|
||
| # ====================================================================== | ||
|
|
||
| if physics_variables.i_plasma_geometry == 12: |
There was a problem hiding this comment.
Then use the new enum here
| physics_variables.kappa, | ||
| "OP ", | ||
| ) | ||
| elif physics_variables.i_plasma_geometry == 12: |
| 79: "eta_ecrh_injector_wall_plug", | ||
| 80: "fcoolcp", | ||
| 81: "n_tf_coil_turns", | ||
| 82: "f_p_plasma_separatrix_rad", # really fradpwr |
There was a problem hiding this comment.
| 82: "f_p_plasma_separatrix_rad", # really fradpwr | |
| 82: "f_p_plasma_separatrix_rad", |
| 50: "f_nd_impurity_electrons(13)", | ||
| 51: "f_p_div_lower", | ||
| 52: "rad_fraction_sol", | ||
| 53: "obsolete", # Removed |
There was a problem hiding this comment.
| 53: "obsolete", # Removed | |
| 53: "Obsolete", # OBSOLETE |
add new relationship for elongation v aspect ratio. Validated for low aspect ratio ST devices.