FIXME : Add documentation
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real, | public | :: | rhoc | ||||
real, | public | :: | rmaj | ||||
real, | public | :: | r_geo | ||||
real, | public | :: | eps | ||||
real, | public | :: | epsl | ||||
real, | public | :: | qinp | ||||
real, | public | :: | shat | ||||
real, | public | :: | alpmhd | ||||
real, | public | :: | pk | ||||
integer, | public | :: | geoType | ||||
integer, | public | :: | mMode | ||||
integer, | public | :: | nMode | ||||
real, | public | :: | aSurf | ||||
real, | public | :: | shift | ||||
real, | public | :: | shiftVert | ||||
real, | private | :: | raxis | ||||
real, | private | :: | zaxis | ||||
real, | public | :: | deltam | ||||
real, | public | :: | deltan | ||||
real, | private | :: | akappa | ||||
real, | private | :: | tri | ||||
real, | private | :: | delta2 | ||||
real, | private | :: | delta3 | ||||
real, | public | :: | deltampri | ||||
real, | public | :: | deltanpri | ||||
real, | private | :: | akappri | ||||
real, | private | :: | tripri | ||||
real, | public | :: | thetam | ||||
real, | public | :: | thetan | ||||
real, | private | :: | thetak | ||||
real, | private | :: | thetad | ||||
real, | private | :: | theta2 | ||||
real, | private | :: | theta3 | ||||
real, | public | :: | btor_slab | ||||
real, | public | :: | betaprim | ||||
integer, | public | :: | ntheta | ||||
integer, | public | :: | nperiod | ||||
integer, | private | :: | n_mxh | ||||
real, | private | :: | c0_mxh | ||||
real, | private, | dimension(mxh_max_moments) | :: | c_mxh | |||
real, | private, | dimension(mxh_max_moments) | :: | s_mxh | |||
real, | private, | dimension(mxh_max_moments) | :: | dc_mxh_dr | |||
real, | private, | dimension(mxh_max_moments) | :: | ds_mxh_dr | |||
logical, | private | :: | initialized | = | .false. | ||
real, | private | :: | kp | = | -1. | ||
logical, | private | :: | exist | ||||
type(theta_grid_parameters_config_type), | private | :: | theta_grid_parameters_config |
Used to represent the input configuration of theta_grid. Sets a number of parameters used by the different theta grid implementations. Not all parameters are active for a given theta grid type.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
logical, | public | :: | exist | = | .false. |
Does the related namelist exist in the target input file? |
|
integer, | public | :: | index | = | 0 |
Used to hold the specific index of numbered namelists |
|
logical, | public | :: | skip_read | = | .false. |
Do we want to skip the read step in init? |
|
logical, | public | :: | skip_broadcast | = | .false. |
Do we want to skip the broadcast step in init? |
|
real, | public | :: | akappa | = | 1.0 |
The flux surface elongation (only used when |
|
real, | public | :: | akappri | = | 0.0 |
The radial gradient flux surface elongation (only used when
|
|
real, | public | :: | alpmhd | = | 0.0 |
Used in conjunction with alpmhdfac
to override |
|
real, | public | :: | asurf | = | 1.0 |
Minor radius of the flux surface that receives the specified
shaping (only used when |
|
real, | public | :: | btor_slab | = | 0.0 |
In the slab limit, determines the angle between the field and
the background flow (which flows in an imaginary toroidal
direction). It is effectively equal to
. |
|
real, | public | :: | c0_mxh | = | 0.0 |
Zeroth cosine moment for the MXH local equilibrum. See geoType and local_eq |
|
real, | public, | dimension(mxh_max_moments) | :: | c_mxh | = | 0.0 |
Cosine moments for the MXH local equilibrum. See geoType and local_eq |
real, | public, | dimension(mxh_max_moments) | :: | dc_mxh_dr | = | 0.0 |
Radial derivatives of cosine moments for the MXH local equilibrum. See geoType and local_eq |
real, | public | :: | delta2 | = | 1.0 |
The elongation of the flux surface labeled by aSurf (only used
when |
|
real, | public | :: | delta3 | = | 1.0 |
The triangularity of the flux surface labeled by aSurf (only used when geoType=1, which selects the Global MHD analytic geometry specifications). See Section 2.1.2 of the Analytic Geometry Specification documentation for more details. |
|
real, | public | :: | deltam | = | 1.0 |
The magnitude of the mMode shaping effect (only used when
|
|
real, | public | :: | deltampri | = | 0.0 |
Radial derivative of the magnitude of the mMode shaping effect
(only used when |
|
real, | public | :: | deltan | = | 1.0 |
The magnitude of the nMode shaping effect (only used when
|
|
real, | public | :: | deltanpri | = | 0.0 |
Radial derivative of the magnitude of the nMode shaping effect
(only used when |
|
real, | public | :: | eps | = | 0.3 |
Controls particle trapping (among other things) in simple geometric models. |
|
real, | public | :: | epsl | = | 0.3 |
Sets curvature drift in s-alpha model, where is the GS2 equilibrium reference normalisation length and is the major radius at the centre of the flux surface. |
|
integer, | public | :: | geotype | = | 0 |
Selects between different analytic geometry specifications
(only used when |
|
real, | public | :: | kp | = | -1.0 |
|
|
integer, | public | :: | mmode | = | 2 |
First flux surface shaping mode number (only used when
|
|
integer, | public | :: | nmode | = | 3 |
Second flux surface shaping mode number (only used when
|
|
integer, | public | :: | n_mxh | = | 0 |
Number of moments for the MXH local equilibrum. Maximum value is mxh_max_moments. See geoType and local_eq for more details. |
|
integer, | public | :: | nperiod | = | 2 |
Sets the number of segments along equilibrium magnetic field to include in simulation domain. . Ignored in some cases |
|
integer, | public | :: | ntheta | = | 24 |
Rough number of grid points along equilibrium magnetic field between . Actual number of grid points determined as follows: |
|
real, | public | :: | pk | = | 0.3 |
Sets , the magnetic safety factor, and therefore also sets the connection length, i.e. the length of the box in the parallel direction, in terms of . Used only in high aspect ratio equilibrium model. |
|
real, | public | :: | qinp | = | 1.5 |
Sets value of the safety factor when using local toroidal equilibrium model. |
|
real, | public | :: | r_geo | = | 3.0 |
When not local_eq: Centerpoint of LCFS (normalized to
) - When local_eq: Major radius of
magnetic field reference point (normalized to
). Specifically, the reference magnetic
field is defined to be the value of the toroidal magnetic
field at |
|
real, | public | :: | raxis | = | 3.0 |
Major radial location of the magnetic axis (only used when
|
|
real, | public | :: | rhoc | = | 0.5 |
|
|
real, | public | :: | rmaj | = | 3.0 |
When not local_eq: Position of magnetic axis (normalized to ). When local_eq: Major radius of the centre of the flux surface of interest (normalized to ) |
|
real, | public, | dimension(mxh_max_moments) | :: | s_mxh | = | 0.0 |
Sine moments for the MXH local equilibrum. See geoType and local_eq |
real, | public, | dimension(mxh_max_moments) | :: | ds_mxh_dr | = | 0.0 |
Radial derivatives of sine moments for the MXH local equilibrum. See geoType and local_eq |
real, | public | :: | shat | = | 0.75 |
Sets value of magnetic shear in simple geometric models.
Over-ridden by |
|
real, | public | :: | shift | = | 0.0 |
shift is related to minor radial derivatives of the major radial location of the flux surface centers (i.e. the Shafranov shift), but this input variable has different physical definitions in s-alpha and other analytic equilbrium models: |
|
real, | public | :: | shiftvert | = | 0.0 |
Minor radial derivative of the axial location of the flux
surface centers (i.e. the vertical Shafranov shift). It is
only used when equilibrium_option='eik' and |
|
real, | public | :: | theta2 | = | 0.0 |
The tilt angle of the elongation of the flux surface labeled
by |
|
real, | public | :: | theta3 | = | 0.0 |
The tilt angle of the triangularity of the flux surface
labeled by |
|
real, | public | :: | thetad | = | 0.0 |
The tilt angle of the triangularity (only used when
|
|
real, | public | :: | thetak | = | 0.0 |
The tilt angle of the elongation (only used when |
|
real, | public | :: | thetam | = | 0.0 |
The tilt angle of the mMode shaping effect (only used when
|
|
real, | public | :: | thetan | = | 0.0 |
The tilt angle of the nMode shaping effect (only used when
|
|
real, | public | :: | tri | = | 0.0 |
The flux surface triangularity (only used when |
|
real, | public | :: | tripri | = | 0.0 |
The radial gradient of the flux surface triangularity (only
used when |
|
real, | public | :: | zaxis | = | 0.0 |
Axial location of the magnetic axis (only used when geoType=1, which selects the Global MHD analytic geometry specification). See Section 2.1.2 of the Analytic Geometry Specification documentation for more details. |
Packs all relevant parameters into a flux_surface_type instance. Note we can't fully populate the surface instance as we don't hold delrho
Gets the default name for this namelist
Gets the default requires index for this namelist
Get the module level config instance
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(theta_grid_parameters_config_type), | intent(in), | optional | :: | theta_grid_parameters_config_in |
FIXME : Add documentation
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(theta_grid_parameters_config_type), | intent(in), | optional | :: | theta_grid_parameters_config_in |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | unit |
FIXME : Add documentation
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(miller_geometry_overrides_type), | intent(in) | :: | mgeo_ov |
Set the module level config type Will abort if the module has already been initialised to avoid inconsistencies.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(theta_grid_parameters_config_type), | intent(in), | optional | :: | theta_grid_parameters_config_in |
Reads in the theta_grid_parameters namelist and populates the member variables
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(theta_grid_parameters_config_type), | intent(inout) | :: | self |
Writes out a namelist representing the current state of the config object
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(theta_grid_parameters_config_type), | intent(in) | :: | self | |||
integer, | intent(in), | optional | :: | unit |
Resets the config object to the initial empty state
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(theta_grid_parameters_config_type), | intent(inout) | :: | self |
Broadcasts all config parameters so object is populated identically on all processors
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(theta_grid_parameters_config_type), | intent(inout) | :: | self |