Wiki

Clone wiki

gs2 / CodeRunner_Test_Page

CodeRunner Test Page

parameters

  • beta: In general, \(\beta\) is the ratio of kinetic to magnetic energy. In GS2, the parameter \(\beta\) affects only the dynamics, not the equilibrium.
    • For electromagnetic runs, the contribution of each species to the total parallel current is weighted by a factor of \(w_s = 2 \beta Z_s n_s \sqrt{T_s/m_s}\).
    • For electromagnetic runs that include \(\delta B_\parallel\), this field is proportional to \(\beta\).
    • The contribution of \((\delta B)^2\) to the total gyrokinetic energy is inversely proportional to this input parameter.
    • If an antenna is set up to drive Alfven waves, then \(\beta\) is used to calculate the Alfven frequency.
    • For some collision operator models, \(\beta\) is used to calculate the resistivity.
    • For some rarely-used initial conditions, \(\beta\) appears explicitly.
    • Important: \(\beta\) is not automatically set to be consistent with the value of \(\beta\) used to calculate properties of a given magnetic equilibrium. The user is responsible for choosing the gradients, densities, and temperatures of all species to be consistent with the values of \(\beta\) and \(\beta'\) which appear here and elsewhere.
  • parameters_k0:
  • teti: Ratio of electron to ion temperatures. Deprecated. Do not use unless you know what you are doing.
  • tite: Ratio of ion to electron temperatures. This parameter is used only when there is no species called "electron" included.
  • zeff: Effective ionic charge. The parameter \(Z_{\mathrm eff}\) appears only in the electron collision frequency, and is not automatically set to be consistent with the mix of species specified in the species namelists.

kt_grids_knobs

Note:Intheinputfile,onlyoneofthefollowingsectionsneedtobeincluded,dependingonthevalueof``\ ```grid_option <grid_option>`__.

kt_grids_box_parameters

  • jtwist:
  • ly:
  • naky: The actual number of ky modes (do not use for nonlinear runs, use ny)
  • nkpolar:
  • ntheta0:
  • nx: The number of kx modes: the number of kx modes actually simulated (ntheta0) is equal to 2*(nx - 1)/3 + 1, due to the need to prevent aliasing.
  • ny: The number of ky modes: the number of ky modes actually simulated (naky) is equal to (ny - 1)/3 + 1, due to the need to prevent aliasing.
  • rtwist:
  • x0: The length of the box in the x direction (measured in the Larmour radius of species 1) if shat is 0 (ie 1e-6)
  • y0: The length of the box in the y direction (measured in the Larmour radius of species 1)

kt_grids_single_parameters

  • akx:
  • aky: \(k_y \rho\) for the reference species. Used only in certain modes (e.g. in single mode).
  • theta0:

theta_grid_parameters

  • akappa: Sets local elongation when local toroidal equilibrium is specified.
  • akappri: Sets local gradient of elongation when local toroidal equilibrium is specified.
  • alpmhd: Default = 0. Do not use unless you know what you are doing.
  • asym: *asympri:
  • asympri:
  • eps: Controls particle trapping (among other things) in simple geometric models. \(\epsilon = r/R\)
  • epsl: Sets curvature drift in simple geometric models. \(\epsilon_\ell = 2 a / R\), where a is the GS2 normalisation length and R is the major radius at the centre of the flux surface.
  • kp: If kp > 0 then pk = 2*kp. Set kp rather than pk in the slab. Since in the slab limit, shat = 2a/ (L_S pk), this means that if kp = 1, shat = a/ L_S, where L_S is the magnetic shear scale length.

Sets parallel box length when geometry is unsheared slab. \(k_p = 2 \pi /L_z\).

  • nperiod: Sets the number of \(2\pi\) segments along equilibrium magnetic field to include in simulation domain. \(N_{\mathrm segments} = (2n_{\mathrm period} - 1)\).
  • ntheta: Number of grid points along equilibrium magnetic field between \(\theta=(-\pi,\pi)\) (in addition to a grid point at \(\theta=0\)).
  • pk: \(p_k = 2 a / q R\) - when using high aspect ratio, \(s-\alpha\) model for geometry it sets q, the magnetic safety factor, since the ratio 2a/R is set by epsl. It therefore also sets the connection length, i.e. the length of the box in the parallel direction, in terms of a, the GS2 normalization quantity.
  • qinp: Sets value of the safety factor when using local toroidal equilibrium model.
  • r_geo: Major radius
  • rhoc: Minor radius
  • rmaj: Major radius
  • shat: Sets value of magnetic shear in simple geometric models.
  • shift: Related to Shafranov shift. Sign depends on geometric model.
  • tri: Sets local triangularity when local toroidal equilibrium is specified.
  • tripri: Sets local gradient of triangularity when local toroidal equilibrium is specified.

theta_grid_knobs

  • equilibrium_option: 's-alpha': Use high aspect-ratio toroidal equilbrium (which can be simplified to slab or cylinder), controlled by the subsidiary namelists theta_grid_parameters and theta_grid_salpha_knobs.
  • gb_to_cv:

theta_grid_salpha_knobs

theta_grid_file_knobs

theta_grid_gridgen_knobs

le_grids_knobs

dist_fn_knobs

'zero', 'default', 'unconnected' - Use Kotschenreuther boundary condition at endpoints of theta grid 'self-periodic', 'periodic', 'kperiod=1' - Each mode is periodic in theta with itself 'linked' - Twist and shift boundary conditions 'alternate-zero' - Ignored

fields_knobs

knobs

  • avail_cpu_time: Specify the available wall clock time in seconds. GS2 will exit before this time. This ensures that all the output files are written correctly. CodeRunner automatically sets this quantity unless it is given the value false.
  • delt: Timestep, in units of \(a/v_{t0}\). For linear runs, this value does not change. For nonlinear runs, the timestep used by the code will not be allowed to exceed this value.
  • delt_option: *margin: Deprecated. Do not use.
  • eqzip: Default = .false. Do not evolve certain \(k\) modes in time. Set this to true only if you know what you are doing.
  • eqzip_option:
  • fapar: Multiplies \(A_\parallel\) throughout. Set to zero for electrostatic calculations, or unity for electromagnetic. Set to zero if \(\beta = 0\).
  • faperp: Multiplies A_perp. Use 1 for high beta, 0 otherwise. Deprecated: use fbpar instead. Defaults to zero. Do not change this value unless you know what you are doing.
  • fbpar: Multiplies \(B_\parallel\) throughout. Set to zero or unity, depending on whether you want to include physics related to \(\delta B_\parallel\). Set to zero if \(\beta = 0\).
  • fphi: Multiplies \(\Phi\) (electrostatic potential) throughout. Useful for debugging.
  • harris: Default = .false. Do not set to true unless you know what you are doing.
  • margin:
  • nstep: Number of timesteps that will be taken, unless the code stops for some (usually user-specified) reason.
  • secondary: Default = .false. Do not set to true unless you know what you are doing.
  • tertiary: Default = .false. Do not set to true unless you know what you are doing.
  • wstar_units: Default = .false. Make the timestep proportional to \(k_y \rho\). This can be useful for linear stability calculations that have a wide range of \(k_y\) values. Do not set to true for nonlinear runs. Be aware that the units of some output quantities can change when wstar_units = .true.

reinit_knobs

layouts_knobs

  • layout: 'yxles', 'lxyes', 'lyxes', 'lexys' Strongly affects performance on parallel computers
  • local_field_solve: Strongly affects initialization time on some

collisions_knobs

  • adjust:
  • cfac: Factor multiplying FLR terms in collision operator. 1.0 by default. Set to 0.0 to turn off FLR corrections.
  • collision_model: .<<<<<<<<<<<<current

Collision model used in the simulation.

    • default = pitch angle scattering and energy diffusion
    • none = collisionless
    • lorentz = pitch angle scattering only
    • ediffuse = energy diffusion only

.>>>>>>>>>>>>new

Collision model used in the simulation.

nonlinear_terms_knobs

additional_linear_terms_knobs

species_knobs

  • nspec: Number of kinetic species evolved.

species_parameters

dist_fn_species_knobs

  • bakdif: 0.0 !Spatial implicitness parameter. Recommended value: 0.05
  • bd_exp:
  • fexpi:
  • fexpr: 0.5 !Temporal implicitness parameter. Recommended value: 0.48

init_g_knobs

gs2_diagnostics_knobs

kt_grids_range_parameters

kt_grids_specified_parameters

kt_grids_specified_element

kt_grids_xbox_parameters

gs2_flux_knobs

flux_target

Updated