Alphabetical list for input.tglf
ADIABATIC_ELEC
Definition
Use adiabatic electrons. Adiabatic electrons are assumed to be perfectly Maxwellian and remain so by responding immediately to any change in electrostatic potential along the magnetic field. Generally this assumption works for ITG cases, but not for trapped electron modes, so can be used to distinguish their relative importance.
Comments
DEFAULT = .false.
ALPHA_E
Definition
Multiplies ExB velocity shear for spectral shift model [SWCK13].
Comments
DEFAULT = 1.0
ALPHA_ZF
Definition
Zonal flow mixing coefficient (used by SAT1, SAT2, SAT3). Note: Can be used as hidden switch that avoids picking unphysically low ky as the peak in gamma/ky when ALPHA_ZF=-1.0. This switch is useful when an MHD mode at the lowest ky causes a large amount of flux.
Comments
DEFAULT = 1.0
ALPHA_MACH
Definition
Multiplies parallel velocity for all species.
Comments
DEFAULT = 0.0
ALPHA_P
Definition
Multiplies parallel velocity shear for all species.
Comments
DEFAULT = 1.0
ALPHA_QUENCH
Definition
Choices
ALPHA_QUENCH = 1.0: use quench rule
ALPHA_QUENCH = 0.0: use new spectral shift model
Comments
DEFAULT = 0.0
ALPHA_SA
Definition
Normalized pressure gradient.
Comments
DEFAULT = 0.0
AS_1
Definition
Species array of densities \({\frac {n_{s}}{n_{e}}}\).
Comments
DEFAULT = 1.0 , 1.0
BETAE
Definition
\(\beta _{e}\,\!\) defined with respect to \(B_{\rm {unit}}\,\!\).
Comments
DEFAULT = 0.0
B_MODEL_SA
Definition
0/1 to exclude/include the B(theta) factor in k_per.
Comments
DEFAULT = 1
DEBYE
Definition
Debye length/gyroradius.
Comments
DEFAULT = 0.0
DEBYE_FACTOR
Definition
Multiplies the debye length.
Comments
DEFAULT = 1.0
DELTA_LOC
Definition
Comments
DEFAULT = 0.0
DRMAJDX_LOC
Definition
\({\frac {\partial R_{maj}}{\partial x}}\).
Comments
DEFAULT = 0.0
DRMINDX_LOC
Definition
Allows for x different than r \({\frac {\partial r}{\partial x}}\).
Comments
DEFAULT = 1.0
DZMAJDX_LOC
Definition
\({\frac {\partial Z_{maj}}{\partial x}}\).
Comments
DEFAULT = 0.0
ETG_FACTOR
Definition
Exponent for ETG saturation rule.
Comments
DEFAULT = 1.25
FILTER
Definition
Sets threshold for frequency/drift frequency to filter out non-driftwave instabilities.
Comments
DEFAULT = 2.0
FIND_WIDTH
Definition
Choices
FIND_WIDTH = .true. : find the width that maximizes the growth rate
FIND_WIDTH = .false. : use width
Comments
DEFAULT = .true.
FT_MODEL_SA
Definition
1 uses trapped fraction at the outboard midplane.
Comments
DEFAULT = 1
GCHAT
Definition
Multiplies the curvature drift irreducible terms.
Comments
DEFAULT = 1.0
GEOMETRY_FLAG
Definition
Geometry type.
Choices
GEOMETRY_FLAG = 0: \(s-\alpha\)
GEOMETRY_FLAG = 1: Miller
GEOMETRY_FLAG = 2: Fourier
GEOMETRY_FLAG = 3: ELITE
Comments
DEFAULT = 1
GHAT
Definition
Multiplies the curvature drift closure terms.
Comments
DEFAULT = 1.0
GRADB_FACTOR
Definition
Multiplies the gradB terms.
Comments
DEFAULT = 0.0
IBRANCH
Definition
Choices
IBRANCH = 0: find two most unstable modes one for each sign of frequency, electron drift direction (1), ion drift direction (2)
IBRANCH = -1: sort the unstable modes by growthrate in rank order
Comments
DEFAULT = -1
IFLUX
Definition
Compute quasilinear weights and mode amplitudes.
Comments
DEFAULT = .true.
KAPPA_LOC
Definition
Elongation of flux surface, \(\kappa \,\!\).
Comments
DEFAULT = 1.0
KX0_LOC
Definition
kx0/ky ballooning mode offset.
Comments
DEFAULT = 0.0
KY
Definition
\(k_{\theta }\rho _{s,{\rm {unit}}}\,\!\) for single-mode call to TGLF or user-definded ky grid (see KYGRID_MODEL=0 below).
Comments
DEFAULT = 0.3
KYGRID_MODEL
Definition
Choices
KYGRID_MODEL = 0: user defined ky grid with NKY modes up to maximum KY, equal spaced with kymin=KY/NKY
KYGRID_MODEL = 1: standard ky spectrum often used for SAT0 and SAT1, where kymin=0.1/rho_ion
KYGRID_MODEL = 4: additional low-ky modes preferred for SAT2, where kymin=0.05*grad_r0/rho_ion
Comments
DEFAULT = 1
LINSKER_FACTOR
Definition
Multiplies the Linsker terms.
Comments
DEFAULT = 0.0
MASS_1
Definition
Species masses normalized to \(m_{D}\).
Comments
DEFAULT = me/md , 1.0
NBASIS_MAX
Definition
Maximum number of parallel basis functions.
Comments
DEFAULT = 4
NBASIS_MIN
Definition
Minimum number of parallel basis functions.
Comments
DEFAULT = 2
NEW_EIKONAL
Definition
Choices
NEW_EIKONAL = .true. : compute the eikonal
NEW_EIKONAL = .false. : use the eikonal computed on the last call to TGLF made with tglf_new_eikonal_in = .true.
Comments
DEFAULT = .true.
NKY
Definition
Number of poloidal modes in the high-k spectrum of TGLF, i.e. number of modes with logarithmic spacing to cover roughly 1 < ky < 24.
Comments
DEFAULT = 12
NMODES
Definition
Number of modes to store for tglf_ibranch_in = -1.
Comments
DEFAULT = 2
NS
Definition
Number of species including both electrons and ions.
Comments
DEFAULT = 2
NWIDTH
Definition
Maximum number of widths used in search for maximum growth rate.
Comments
DEFAULT = 21
NXGRID
Definition
Number of nodes in Gauss-Hermite quadrature.
Comments
DEFAULT = 16
PARK
Definition
Multiplies the parallel gradient term.
Comments
DEFAULT = 1.0
P_PRIME_LOC
Definition
\({\frac {qa^{2}}{rB_{unit}^{2}}}{\frac {\partial p}{\partial r}}\).
Comments
DEFAULT = 0.0
Q_LOC
Definition
Absolute value of the safety factor, \(ABS(q)\,\!\).
Comments
DEFAULT = 2.0
Q_PRIME_LOC
Definition
\({\frac {q^{2}a^{2}}{r^{2}}}s\).
Comments
DEFAULT = 16.0
Q_SA
Definition
Absolute value of safety factor.
Comments
DEFAULT = 2.0
RLNS_1
Definition
Species array of normalized density gradients \(-{\frac {a}{n_{s}}}{\frac {dn_{s}}{dr}}\).
Comments
DEFAULT = 1.0 , 1.0
RLTS_1
Definition
Species array of normalized temperature gradients \(-{\frac {a}{T_{s}}}{\frac {dT_{s}}{dr}}\).
Comments
DEFAULT = 3.0 , 3.0
RMAJ_LOC
Definition
Flux surface centroid major radius \(R_{maj}/a\,\!\).
Comments
DEFAULT = 3.0
RMAJ_SA
Definition
Normalized major radius of flux surface \(R_{maj}/a\,\!\).
Comments
DEFAULT = 3.0
RMIN_LOC
Definition
Flux surface centroid minor radius \(r/a\,\!\).
Comments
DEFAULT = 0.5
RMIN_SA
Definition
Normalized minor radius of flux surface \(r/a\,\!\).
Comments
DEFAULT = 0.5
SAT_RULE
Definition
SAT_RULE = 0 finds zonal flow shear at each ky [SKW07].
SAT_RULE = 1 finds dominant saturation mechanism (ZF mixing rate or drift-wave growth rate) and includes ky-coupling [SCHH16].
SAT_RULE = 2 builds on SAT1 with refined geometric effects (due to Shafranov shift and elongation), improved TEM physics, simplified spectral shift [SCB+20, SBC+21].
SAT_RULE = 3 builds on SAT2, captures anti-gyroBohm scaling of fluxes, treats saturation of ITG and TEM differently, has quasi-linear model approximations to align quasi-linear weights with NL GK simulations [DCD+22, Dud22].
Comments
DEFAULT = 0
SHAT_SA
Definition
Magnetic shear \({\frac {r}{q}}{\frac {\partial q}{\partial r}}\). Caution: Only used for \(s-\alpha\) geometry (GEOMETRY_FLAG = 0), otherwise see Q_PRIME_LOC.
Comments
DEFAULT = 1.0
SIGN_BT
Definition
Sign of \(B_{T}\) with repsect to CCW toroidal direction from top.
Comments
DEFAULT = 1
SIGN_IT
Definition
Sign of \(I_{T}\) with repsect to CCW toroidal direction from top.
Comments
DEFAULT = 1
S_DELTA_LOC
Definition
Shear in triangularity, \(r{\frac {\partial \delta }{\partial r}}\).
Comments
DEFAULT = 0.0
S_KAPPA_LOC
Definition
Shear in elongation, \({\frac {r}{\kappa }}{\frac {\partial \kappa }{\partial r}}\).
Comments
DEFAULT = 16.0
S_ZETA_LOC
Definition
Shear in squareness, \(r{\frac {\partial \zeta }{\partial r}}\).
Comments
DEFAULT = 0.0
TAUS_1
Definition
Species array of temperatures \({\frac {T_{s}}{T_{e}}}\).
Comments
DEFAULT = 1.0 , 1.0
THETA0_SA
Definition
\(\theta _{0}={\frac {k_{x}}{sk_{y}}}\).
Comments
DEFAULT = 0.0
THETA_TRAPPED
Definition
Parameter to adjust trapped fraction model.
Comments
DEFAULT = 0.7
UNITS
Definition
Units system used for SAT1 (default is GYRO, but with CGYRO you get the more recent Nov. 2019 version of the spectral shift model and overall geometry factors calibrated by CGYRO runs). Note that UNITS=CGYRO is enforced for SAT2, and GYRO is enforced for SAT0.
Comments
DEFAULT = GYRO
USE_BISECTION
Definition
Use bisection search method to find width that maximizes growth rate.
Comments
DEFAULT = .true.
USE_BPAR
Definition
Include compressional magnetic fluctuations, \(\delta B_{\lVert }\). Note: The BPAR flutter is not well resolved by TGLF (not enough moments) and does not reproduce GYRO linear results for NSTX-U.
Comments
DEFAULT = .false.
USE_BPER
Definition
Include transverse magnetic fluctuations, \(\delta A_{\lVert }\).
Comments
DEFAULT = .false.
USE_INBOARD_DETRAPPED
Definition
Set trapped fraction to zero if eigenmode is inward ballooning.
Comments
DEFAULT = .false.
USE_MHD_RULE
Definition
Ignore pressure gradient contribution to curvature drift. Recommend setting to .false. for high beta.
Comments
DEFAULT = .true.
USE_TRANSPORT_MODEL
Definition
Comments
DEFAULT = .true.
VEXB
Definition
Normalized of ExB velocity Doppler shift common to all species (not in use, see VPAR).
Comments
DEFAULT = 0.0
VEXB_SHEAR
Definition
Normalized toroidal ExB velocity Doppler shift gradient common to all species. For large ExB velocity ordering \(V_{tor}=V_{ExB}\). VEXB_SHEAR = \(-SIGN(I_{tor}){\frac {r}{ABS(q)}}{\frac {\partial }{\partial r}}({\frac {V_{ExB}}{R}}){\frac {a}{c_{s}}}\).
Comments
DEFAULT = 0.0
VPAR_1
Definition
Species array of parallel velocities, \(SIGN(I_{tor}){\frac {R_{maj}V_{tor}}{Rc_{s}}}\).
Comments
DEFAULT = 0.0 , 0.0
VPAR_MODEL
Definition
Choices
VPAR_MODEL = 0: low-Mach-number limit
Comments
DEFAULT = 0
VPAR_SHEAR_1
Definition
Normalized parallel velocity gradient, \(-SIGN(I_{tor})R_{maj}{\frac {\partial }{\partial r}}({\frac {V_{tor}}{R}}){\frac {a}{c_{s}}}\).
Comments
DEFAULT = 0.0 , 0.0
VPAR_SHEAR_MODEL
Definition
Depricated parameter.
Comments
DEFAULT = 0
WD_ZERO
Definition
Cutoff for curvature drift eigenvalues to prevent zero.
Comments
DEFAULT = 0.1
WIDTH
Definition
Maximum width of the Gaussian measure for the parallel Hermite polynomial basis.
Comments
DEFAULT = 1.65
WIDTH_MIN
Definition
Minimum width used in search for maximum growth rate.
Comments
DEFAULT = 0.3
WRITE_WAVEFUNCTION_FLAG
Definition
Self-explanatory.
Comments
DEFAULT = 0
XNUE
Definition
Electron-ion collision frequency \({\frac {v_{ei}}{c_{s}/a}}\).
Comments
DEFAULT = 0.0
XNU_FACTOR
Definition
Multiplies the trapped/passing boundary electron-ion collision terms.
Comments
DEFAULT = 1.0
XNU_MODEL
Definition
Collision model.
Choices
XNU_MODEL = 2: default preset for SAT0 and SAT1
XNU_MODEL = 3: default preset for SAT2
Comments
DEFAULT = 2
XWELL_SA
Definition
Magnetic well.
Comments
DEFAULT = 0.0
ZEFF
Definition
Effective ion charge.
Comments
DEFAULT = 1.0
ZETA_LOC
Definition
Squareness, \(\zeta \,\!\) , of flux surface.
Comments
DEFAULT = 0.0
ZMAJ_LOC
Definition
Flux surface centroid elevation \(Z_{maj}/a\,\!\).
Comments
DEFAULT = 0.0
ZS_1
Definition
Species charge numbers.
Comments
DEFAULT = -1.0 , 1.0
—-Return to table of inputs and outputs