ORB5X 1.0.0
Performance-portable global electromagnetic gyrokinetic PIC code
orb5x::Equil::DeviceState Struct Reference

Shallow, device-copyable handle to equilibrium interpolation data. More...

#include "equil.hpp"

Public Attributes

Real a_mid = 0.0
 Plasma minor radius at the midplane (equil::a_mid, distinct from a_midn); used by qbar's analytic branches.
 
Real a_midn = 0.0
 Midplane minor-radius normalization used by the analytic map.
 
Kokkos::View< Real * > bmax_s
 Maximum \(|B|\) on each radial grid surface.
 
Kokkos::View< Real *** > c_equ
 Equilibrium coefficient table indexed by \(s\), \(\chi\), and quantity.
 
Kokkos::View< Real * > chi_chease
 CHEASE poloidal-angle grid [rad].
 
Real dpsi_0inv = 0.0
 Inverse spacing of psi_grd.
 
Real drho = 0.0
 Spacing of the normalized minor-radius table.
 
Real ds_inv = 0.0
 Inverse spacing of the uniform equilibrium \(s\) grid.
 
Real fpsin = 0.0
 Edge value of the normalized toroidal-flux function.
 
Real gedc_inv = 0.0
 Inverse poloidal spacing of c_equ [rad \(^{-1}\)].
 
Real geds_inv = 0.0
 Inverse radial spacing of c_equ in \(s\).
 
Kokkos::View< Real ** > gradn_pic
 \(dn/d\psi\) for each species and profile point.
 
Kokkos::View< Real ** > gradt_pic
 \(dT/d\psi\) for each species and profile point.
 
Kokkos::View< Real ** > gradvp_pic
 \(dv_\parallel/d\psi\) for each species and profile point.
 
Kokkos::View< Real ** > n_pic
 Species density values on psi_grd.
 
int nequ_c = 0
 Highest valid poloidal-cell index of c_equ.
 
int nequ_s = 0
 Highest valid radial-cell index of c_equ.
 
int ngmax = 0
 Highest valid index of the uniform profile grid.
 
int nrho = 0
 Highest valid index of the ad-hoc radius-to-flux table.
 
int nsel_equil = 0
 Equilibrium selector; distinguishes CHEASE and analytic tables.
 
int nsel_q_profile = 0
 Analytic safety-factor profile selector.
 
Kokkos::View< Real * > pot_back
 Flux-grid background electrostatic potential.
 
Real psi0 = 0.0
 Normalized poloidal flux at the computational edge.
 
Kokkos::View< Real * > psi_grd
 Uniform normalized-poloidal-flux profile grid.
 
Kokkos::View< Real * > psi_of_r
 Ad-hoc-equilibrium mapping from normalized minor radius to \(\psi\).
 
Real q0 = 0.0
 Analytic safety factor on the magnetic axis.
 
Kokkos::View< Real[15]> qcoef
 Analytic safety-factor profile coefficients (equil::qcoef), for NSEL_QCOEF.
 
Real qedge = 0.0
 Analytic safety factor at the plasma edge.
 
Real r0_mid = 1.0
 Major radius at the outboard midplane (equil::r0_mid); used by qchi's inverse-aspect-ratio correction.
 
Kokkos::View< Real * > s_chease
 CHEASE radial grid in \(s=\sqrt{\psi}\).
 
Kokkos::View< Real ** > t_pic
 Species temperature values on psi_grd.
 
Kokkos::View< Real ** > vp_pic
 Species parallel-flow values on psi_grd.
 

Detailed Description

Shallow, device-copyable handle to equilibrium interpolation data.

Views alias the storage owned by Equil; copying this structure does not copy table data. It is captured by value in Kokkos kernels after create_equil() has completed.

Member Data Documentation

◆ a_mid

Real orb5x::Equil::DeviceState::a_mid = 0.0

Plasma minor radius at the midplane (equil::a_mid, distinct from a_midn); used by qbar's analytic branches.

◆ a_midn

Real orb5x::Equil::DeviceState::a_midn = 0.0

Midplane minor-radius normalization used by the analytic map.

◆ bmax_s

Kokkos::View<Real*> orb5x::Equil::DeviceState::bmax_s

Maximum \(|B|\) on each radial grid surface.

◆ c_equ

Kokkos::View<Real***> orb5x::Equil::DeviceState::c_equ

Equilibrium coefficient table indexed by \(s\), \(\chi\), and quantity.

◆ chi_chease

Kokkos::View<Real*> orb5x::Equil::DeviceState::chi_chease

CHEASE poloidal-angle grid [rad].

◆ dpsi_0inv

Real orb5x::Equil::DeviceState::dpsi_0inv = 0.0

Inverse spacing of psi_grd.

◆ drho

Real orb5x::Equil::DeviceState::drho = 0.0

Spacing of the normalized minor-radius table.

◆ ds_inv

Real orb5x::Equil::DeviceState::ds_inv = 0.0

Inverse spacing of the uniform equilibrium \(s\) grid.

◆ fpsin

Real orb5x::Equil::DeviceState::fpsin = 0.0

Edge value of the normalized toroidal-flux function.

◆ gedc_inv

Real orb5x::Equil::DeviceState::gedc_inv = 0.0

Inverse poloidal spacing of c_equ [rad \(^{-1}\)].

◆ geds_inv

Real orb5x::Equil::DeviceState::geds_inv = 0.0

Inverse radial spacing of c_equ in \(s\).

◆ gradn_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::gradn_pic

\(dn/d\psi\) for each species and profile point.

◆ gradt_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::gradt_pic

\(dT/d\psi\) for each species and profile point.

◆ gradvp_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::gradvp_pic

\(dv_\parallel/d\psi\) for each species and profile point.

◆ n_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::n_pic

Species density values on psi_grd.

◆ nequ_c

int orb5x::Equil::DeviceState::nequ_c = 0

Highest valid poloidal-cell index of c_equ.

◆ nequ_s

int orb5x::Equil::DeviceState::nequ_s = 0

Highest valid radial-cell index of c_equ.

◆ ngmax

int orb5x::Equil::DeviceState::ngmax = 0

Highest valid index of the uniform profile grid.

◆ nrho

int orb5x::Equil::DeviceState::nrho = 0

Highest valid index of the ad-hoc radius-to-flux table.

◆ nsel_equil

int orb5x::Equil::DeviceState::nsel_equil = 0

Equilibrium selector; distinguishes CHEASE and analytic tables.

◆ nsel_q_profile

int orb5x::Equil::DeviceState::nsel_q_profile = 0

Analytic safety-factor profile selector.

◆ pot_back

Kokkos::View<Real*> orb5x::Equil::DeviceState::pot_back

Flux-grid background electrostatic potential.

◆ psi0

Real orb5x::Equil::DeviceState::psi0 = 0.0

Normalized poloidal flux at the computational edge.

◆ psi_grd

Kokkos::View<Real*> orb5x::Equil::DeviceState::psi_grd

Uniform normalized-poloidal-flux profile grid.

◆ psi_of_r

Kokkos::View<Real*> orb5x::Equil::DeviceState::psi_of_r

Ad-hoc-equilibrium mapping from normalized minor radius to \(\psi\).

◆ q0

Real orb5x::Equil::DeviceState::q0 = 0.0

Analytic safety factor on the magnetic axis.

◆ qcoef

Kokkos::View<Real[15]> orb5x::Equil::DeviceState::qcoef

Analytic safety-factor profile coefficients (equil::qcoef), for NSEL_QCOEF.

◆ qedge

Real orb5x::Equil::DeviceState::qedge = 0.0

Analytic safety factor at the plasma edge.

◆ r0_mid

Real orb5x::Equil::DeviceState::r0_mid = 1.0

Major radius at the outboard midplane (equil::r0_mid); used by qchi's inverse-aspect-ratio correction.

◆ s_chease

Kokkos::View<Real*> orb5x::Equil::DeviceState::s_chease

CHEASE radial grid in \(s=\sqrt{\psi}\).

◆ t_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::t_pic

Species temperature values on psi_grd.

◆ vp_pic

Kokkos::View<Real**> orb5x::Equil::DeviceState::vp_pic

Species parallel-flow values on psi_grd.


The documentation for this struct was generated from the following file: