Skip to content

Add new plasma shaping option#4134

Open
ajpearcey wants to merge 2 commits intomainfrom
i_plasma_geo_12
Open

Add new plasma shaping option#4134
ajpearcey wants to merge 2 commits intomainfrom
i_plasma_geo_12

Conversation

@ajpearcey
Copy link
Collaborator

add new relationship for elongation v aspect ratio. Validated for low aspect ratio ST devices.

@ajpearcey ajpearcey requested a review from a team as a code owner March 20, 2026 08:28
Copy link
Collaborator

@chris-ashe chris-ashe left a comment

Choose a reason for hiding this comment

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

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":
Copy link
Collaborator

Choose a reason for hiding this comment

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

This shouldnt be needed in this from now as there is now physics_variables.p_plasma_separatrix_rmajor_mw

process/input.py Outdated
),
"fiooic": InputVariable(
data_structure.constraint_variables, float, range=(0.001, 1.0)
data_structure.constraint_variables, float, range=(0.001, 10.0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why has this been changed?

data_structure.pfcoil_variables, float, range=(0.0, 1e-05)
),
"rinboard": InputVariable(data_structure.build_variables, float, range=(0.1, 10.0)),
"routboard": InputVariable(data_structure.build_variables, float, range=(0.1, 20.0)),
Copy link
Collaborator

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

process/input.py Outdated
),
"i_fw_blkt_vv_shape": InputVariable(
data_structure.fwbs_variables, int, range=(1, 2)
data_structure.fwbs_variables, int, range=(1, 3)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why has this changed?


if physics_variables.i_plasma_geometry == 12:

physics_variables.kappa = 2.93e0 * ( 1.8e0 / physics_variables.aspect ) ** 0.4e0
Copy link
Collaborator

Choose a reason for hiding this comment

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

A comment with the model origin needs to be added

elif physics_variables.i_plasma_geometry == 12:
po.ovarrf(
self.outfile,
"Elongation, X-point (calculated from aspect ratio via scaling)",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The string needs to state the model

@timothy-nunn timothy-nunn self-assigned this Mar 24, 2026
Copy link
Collaborator

@timothy-nunn timothy-nunn left a comment

Choose a reason for hiding this comment

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

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

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.

3 participants