input.gacode

To see what a sample input.gacode looks like, at the command line type

$ cgyro -g reg14 ; cat reg14/input.gacode

Overview

The file input.gacode contains the entire dataset required for specification of experimental profiles. All such profiles are specified on an nexp-point grid. The information included is sufficient to carry out simulations of strongly-shaped up-down asymmetric (i.e., arbitrary) equilibria using the new MXH equilibrium parameters [ACB20].

Profile ordering in input.gacode is arbitrary and comment lines (starting with # in the first column) can be added for convenience. These comment lines are ignored by the parser. To generate input.gacode, please use the profiles_gen command-line tool.

File structure

parameter

description

nion

Total number of ions (thermal and fast).

nexp

Number of experimental data gridpoints.

rho(:)

The dimensionless ONETWO flux-surface label, ρ^=ρ(r)/ρ(a)[0,1] (nonuniform allowed).

rmin(:)

The generalized minor radius, r, in units of m. See here for definition.

polflux(:)

Poloidal flux over 2π, in units of Webers/radian.

q(:)

Safety factor, q.

omega0(:)

Rotation frequency, ω0=cErRBp=cdΦdψ in units of rad/s (see plasma rotation).

shape

rmaj(:)

The generalized major radius, R0(r), in units of m.

zmag(:)

Flux-surface elevation, Z0, in units of m.

kappa(:)

Flux-surface elongation, κ.

delta(:)

Flux-surface triangularity, δ.

zeta(:)

Flux-surface squareness, ζ.

shape_cos0(:)

Flux-surface tilt.

shape_cos1(:)

shape_cos2(:)

shape_cos3(:)

shape_sin3(:)

ne(:)

The electron density, ne, in units of 1019/m3.

te(:)

The electron temperature, Te, in units of keV.

ptot(:)

Total plasma pressure, in units of Pascals.

z_eff(:)

The (dimensionless) effective ion charge, Zeff.

ni(:,:)

Ion density in units of 1019/m3. There is a column for every ion species.

ti(:,:)

Ion temperature in units of keV. There is a column for every ion species.

jbs(:)

Bootstrap current (parallel) in units of MA/m2.

jrf(:)

RF-driven current in units of MA/m2.

jnb(:)

Beam-driven current in units of MA/m2.

jbstor(:)

Bootstrap current (toroidal) in units of MA/m2.

vtor(:,:)

Ion toroidal velocity in units of m/s. There is a column for every ion species.

vpol(:,:)

Ion poloidal velocity in units of m/s. There is a column for every ion species.

powers

qohme(:)

Ohmic power to electrons in units of MW/m3.

qbeame(:)

Beam power to electrons in units of MW/m3.

qbeami(:)

Beam power to ions in units of MW/m3.

qrfe(:)

RF power to electrons in units of MW/m3.

qrfi(:)

RF power to ions in units of MW/m3.

qfuse(:)

Fusion power to electrons in units of MW/m3.

qfusi(:)

Fusion power to ions in units of MW/m3.

qsync(:)

Electron synchrotron radiation in units of MW/m3.

qbrem(:)

Bremsstrahlung radiation in units of MW/m3.

qline(:)

Electron line radiation in units of MW/m3.

qei(:)

Electron-ion exchange MW/m3.

qione(:)

Recombination power to electrons in units of MW/m3.

qioni(:)

Recombination power to ions in units of MW/m3.

qcxi(:)

Charge-exchange power to ions in units of MW/m3.

particle sources

qpar_beam(:)

Beam-particle source density in units of 1/m3/s.

qpar_wall(:)

Wall-particle source density in units of 1/m3/s.

momentum source source

qmom(:)

The total (convected and conducted) torque density in units of N/m2.

Important

For more information about how powers are summed in TGYRO, please see Scenarios and connection to energy sources.