-
Notifications
You must be signed in to change notification settings - Fork 18
Add new plasma shaping option #4134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -304,6 +304,7 @@ def main(args=None): | |
| 5: "oacdcp", | ||
| 6: "pflux_fw_neutron_max_mw", | ||
| 7: "beamfus0", | ||
| 8: "Obsolete",# OBSOLETE | ||
| 9: "temp_plasma_electron_vol_avg_kev", | ||
| 10: "boundu(15)", | ||
| 11: "beta_norm_max", | ||
|
|
@@ -347,6 +348,7 @@ def main(args=None): | |
| 50: "f_nd_impurity_electrons(13)", | ||
| 51: "f_p_div_lower", | ||
| 52: "rad_fraction_sol", | ||
| 53: "obsolete", # Removed | ||
| 54: "b_crit_upper_nbti", | ||
| 55: "dr_shld_inboard", | ||
| 56: "p_cryo_plant_electric_max_mw", | ||
|
|
@@ -375,6 +377,7 @@ def main(args=None): | |
| 79: "eta_ecrh_injector_wall_plug", | ||
| 80: "fcoolcp", | ||
| 81: "n_tf_coil_turns", | ||
| 82: "f_p_plasma_separatrix_rad", # really fradpwr | ||
| } | ||
| # ------------------- | ||
|
|
||
|
|
@@ -951,6 +954,8 @@ def main(args=None): | |
| # 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": | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This shouldnt be needed in this from now as there is now |
||
| extra_str = f"p_div_separatrix_max_mwrmajor{f'_vs_{output_name2}' if output_names2 != [] else ''}" | ||
| elif stack_plots and output_names[-1] == output_name: | ||
| extra_str = f"{output_name}{f'_vs_{output_name2}' if output_names2 != [] else '_vs_'.join(output_names)}" | ||
| else: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3931,6 +3931,14 @@ def outplas(self): | |
| physics_variables.kappa, | ||
| "OP ", | ||
| ) | ||
| elif physics_variables.i_plasma_geometry == 12: | ||
| po.ovarrf( | ||
| self.outfile, | ||
| "Elongation, X-point (calculated from aspect ratio via scaling)", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The string needs to state the model |
||
| "(kappa)", | ||
| physics_variables.kappa, | ||
| "OP ", | ||
| ) | ||
| else: | ||
| raise ProcessValueError( | ||
| "Illegal value of i_plasma_geometry", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -219,6 +219,15 @@ def plasma_geometry(self): | |
|
|
||
| # ====================================================================== | ||
|
|
||
| if physics_variables.i_plasma_geometry == 12: | ||
|
|
||
| physics_variables.kappa = 2.93e0 * ( 1.8e0 / physics_variables.aspect ) ** 0.4e0 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A comment with the model origin needs to be added |
||
|
|
||
| physics_variables.kappa95 = physics_variables.kappa / 1.12e0 | ||
| physics_variables.triang95 = physics_variables.triang / 1.50e0 | ||
|
|
||
| # ====================================================================== | ||
|
|
||
| # Scrape-off layer thicknesses | ||
| if physics_variables.i_plasma_wall_gap == 0: | ||
| build_variables.dr_fw_plasma_gap_outboard = 0.1e0 * physics_variables.rminor | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why has this been added? Is it a new variable