-
Notifications
You must be signed in to change notification settings - Fork 17
Labels
Confinement timePlasma energy or particle confinement timesPlasma energy or particle confinement times
Description
This is a follow on from #3493.
The variable hstar which is meant to represent the i_rad_loss = 3) is only true if the IPB98(y,2) scaling is used.
The current implementation is:
if physics_variables.i_rad_loss == 1:
po.ovarrf(
self.outfile,
"H* non-radiation corrected",
"(hstar)",
physics_variables.hfact
* (
physics_variables.p_plasma_loss_mw
/ (
physics_variables.p_plasma_loss_mw
+ physics_variables.pden_plasma_sync_mw
+ physics_variables.p_plasma_inner_rad_mw
)
)
** 0.31,
"OP",
)
elif physics_variables.i_rad_loss == 0:
po.ovarrf(
self.outfile,
"H* non-radiation corrected",
"(hstar)",
physics_variables.hfact
* (
physics_variables.p_plasma_loss_mw
/ (
physics_variables.p_plasma_loss_mw
+ physics_variables.pden_plasma_rad_mw
* physics_variables.vol_plasma
)
)
** 0.31,
"OP",
)
elif physics_variables.i_rad_loss == 2:
po.ovarrf(
self.outfile,
"H* non-radiation corrected",
"(hstar)",
physics_variables.hfact,
"OP",
)- The calculation is also done in
outplas()which is not recommended asoutplas()should only be for output and not a place for doing calculations. - This also means that
hstaris not a globally tracked physics variable which can be used in other parts of the code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Confinement timePlasma energy or particle confinement timesPlasma energy or particle confinement times