In GitLab by @jmorris-uk on Oct 3, 2019, 09:58
Summary
We have decided to start renaming the variables in PROCESS to have a more human readable format.
The new style of variables will be put onto the PROCESS documentation page to be used as a reference from there.
Naming conventions
Case
All variables should be lower case.
Length
Try to keep variable names to a sensible length. Abbreviations of some parts of the name are suitable e.g. div for divertor. Use underscores to separate words.
Physical Type
The physical type of the variable should form the first part of the variable name, e.g. for plasma resistance the variable should be named:
Another example would be pulse length
time_pulse_length = 7200.0
Units
Inside PROCESS all variables should be in SI units unless otherwise stated. For example:
! Fusion power [W]
p_fusion = 1000.0d6
! Fusion power [MW]
p_fusion_mw = 1000.0d0
Coordinates and dimensions
Coordinates should be defined as
r_plasma_centre = 9.0d0
z_plasma_centre = 0.0d0
theta_ =
For dimensions
dr_cs =
dz_cs =
dtheta_description =
Loop order
Loop variables that use I, j etc. should use
Examples
| Variable name |
Description |
Units |
i_plasma |
Plasma current |
A |
i_plasma_ma |
Plasma current |
MA |
b_t_onaxis |
Toroidal field on-axis |
T |
b_t_max |
Max toroidal field |
T |
n_electron_vol |
Volume average electron density |
m-3 |
t_electron_vol_ev |
Volume avgerage electron temperature |
eV |
m_steel |
Mass of steel |
kg |
m_steel_tonne |
Mass of steel |
tonne |
e_neutron_ev |
Energy of neutron |
eV |
e_neutron_mev |
Energy of neutron |
MeV |
v_tf_dump |
TF dump voltage |
V |
time_plant_life |
Plant lifetime |
s |
time_plant_life_yrs |
Plant lifetime |
years |
dr_tf_inboard_leg |
TF coil inboard leg radial thickness |
m |
dr_blanket_inboard |
Inboard blanket thickness |
m |
velocity_coolant |
TF centrepost coolant velocity |
m/s |
vol_plasma |
Plasma volume |
m3 |
a_plasma |
Plasma area |
m2 |
angle_div_target |
Divertor target angle |
radians |
angle_div_target_deg |
Divertor target angle |
deg |
sig_tf_r |
TF radial stress |
Pa |
| `` |
|
|
In GitLab by @jmorris-uk on Oct 3, 2019, 09:58
Summary
We have decided to start renaming the variables in PROCESS to have a more human readable format.
The new style of variables will be put onto the PROCESS documentation page to be used as a reference from there.
Naming conventions
Case
All variables should be lower case.
Length
Try to keep variable names to a sensible length. Abbreviations of some parts of the name are suitable e.g. div for divertor. Use underscores to separate words.
Physical Type
The physical type of the variable should form the first part of the variable name, e.g. for plasma resistance the variable should be named:
Another example would be pulse length
Units
Inside PROCESS all variables should be in SI units unless otherwise stated. For example:
Coordinates and dimensions
Coordinates should be defined as
For dimensions
Loop order
Loop variables that use I, j etc. should use
ii jj kk mmExamples
i_plasmai_plasma_mab_t_onaxisb_t_maxn_electron_volt_electron_vol_evm_steelm_steel_tonnee_neutron_eve_neutron_mevv_tf_dumptime_plant_lifetime_plant_life_yrsdr_tf_inboard_legdr_blanket_inboardvelocity_coolantvol_plasmaa_plasmaangle_div_targetangle_div_target_degsig_tf_r