XGCa
Public Member Functions | Public Attributes | List of all members
InitialWeights Struct Reference
Collaboration diagram for InitialWeights:
Collaboration graph
[legend]

Public Member Functions

 InitialWeights ()
 
 InitialWeights (const Grid< DeviceType > &grid, const MagneticField< DeviceType > &magnetic_field, NLReader::NamelistReader &nlr)
 
KOKKOS_INLINE_FUNCTION double get (RandGen &rand_gen, double psi, double theta, double phi, double qloc, double initial_deltaf_noise) const
 

Public Attributes

bool resonant_modes
 use field aligned resonant modes More...
 
int resonant_nmax_real
 
int resonant_nmin_real
 
double res_mode_phi_sign
 
int n_modes
 Number of toroidal modes. More...
 
int delta_n
 Spacing between toroidal modes. More...
 
double amp_0
 Amplitude of the n=0 initial perturbation. More...
 
double amp
 Amplitude of the n!=0 initial perturbation. More...
 
double q_sign
 Invert the sign of q in the eikonal. More...
 
double phi_sign
 Invert the sign of toridal direction in the eikonal. More...
 
bool add_zonal
 Include a n=0 component. More...
 
bool radial_gaussian
 Apply a gaussian modulation to the radial profile. More...
 
bool poloidal_gaussian
 Apply a gaussian modulation to the poloidal profile. More...
 
double psi_0
 Center of radial gaussian modulation. More...
 
double sigma_psi
 Width of radial gaussian modulation. More...
 
double theta_0
 Center of poloidal gaussian. More...
 
double sigma_theta
 Width of poloidal gaussian. More...
 
double mode_select_inpsi
 inner boundary for mode selection More...
 
double mode_select_outpsi
 outer boundary for mode selection More...
 
double mode_select_bd_width
 width of boundary envelope More...
 
double SQRT_TWO
 
View< double *, CLayout, DeviceTypeqsafety
 
View< double *, CLayout, DeviceTypegrid_theta
 

Constructor & Destructor Documentation

◆ InitialWeights() [1/2]

InitialWeights::InitialWeights ( )
inline

◆ InitialWeights() [2/2]

InitialWeights::InitialWeights ( const Grid< DeviceType > &  grid,
const MagneticField< DeviceType > &  magnetic_field,
NLReader::NamelistReader nlr 
)
inline
Here is the call graph for this function:

Member Function Documentation

◆ get()

KOKKOS_INLINE_FUNCTION double InitialWeights::get ( RandGen rand_gen,
double  psi,
double  theta,
double  phi,
double  qloc,
double  initial_deltaf_noise 
) const
inline
Here is the caller graph for this function:

Member Data Documentation

◆ add_zonal

bool InitialWeights::add_zonal

Include a n=0 component.

◆ amp

double InitialWeights::amp

Amplitude of the n!=0 initial perturbation.

◆ amp_0

double InitialWeights::amp_0

Amplitude of the n=0 initial perturbation.

◆ delta_n

int InitialWeights::delta_n

Spacing between toroidal modes.

◆ grid_theta

View<double*, CLayout, DeviceType> InitialWeights::grid_theta

◆ mode_select_bd_width

double InitialWeights::mode_select_bd_width

width of boundary envelope

◆ mode_select_inpsi

double InitialWeights::mode_select_inpsi

inner boundary for mode selection

◆ mode_select_outpsi

double InitialWeights::mode_select_outpsi

outer boundary for mode selection

◆ n_modes

int InitialWeights::n_modes

Number of toroidal modes.

◆ phi_sign

double InitialWeights::phi_sign

Invert the sign of toridal direction in the eikonal.

◆ poloidal_gaussian

bool InitialWeights::poloidal_gaussian

Apply a gaussian modulation to the poloidal profile.

◆ psi_0

double InitialWeights::psi_0

Center of radial gaussian modulation.

◆ q_sign

double InitialWeights::q_sign

Invert the sign of q in the eikonal.

◆ qsafety

View<double*, CLayout,DeviceType> InitialWeights::qsafety

◆ radial_gaussian

bool InitialWeights::radial_gaussian

Apply a gaussian modulation to the radial profile.

◆ res_mode_phi_sign

double InitialWeights::res_mode_phi_sign

◆ resonant_modes

bool InitialWeights::resonant_modes

use field aligned resonant modes

◆ resonant_nmax_real

int InitialWeights::resonant_nmax_real

Maximal (real, not wedge) toroidal mode number in initial density when using sml_field_aligned_initial=.true. and resonant_modes=.true.

◆ resonant_nmin_real

int InitialWeights::resonant_nmin_real

Minimal (real, not wedge) toroidal mode number in initial density when using sml_field_aligned_initial=.true. and resonant_modes=.true.

◆ sigma_psi

double InitialWeights::sigma_psi

Width of radial gaussian modulation.

◆ sigma_theta

double InitialWeights::sigma_theta

Width of poloidal gaussian.

◆ SQRT_TWO

double InitialWeights::SQRT_TWO

◆ theta_0

double InitialWeights::theta_0

Center of poloidal gaussian.


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