#include <equil.hpp>
|
| Equilibrium (double eq_min_r, double eq_max_r, double eq_min_z, double eq_max_z, double eq_x_psi, double epsil_psi_in, double eq_x_r, double eq_x_slope, double eq_x_z, double eq_x2_r, double eq_x2_slope, double eq_x2_z, double eq_x2_psi, double eq_axis_r, double eq_axis_z, int eq_mpsi) |
|
| Equilibrium (PsiOption psi_opt) |
|
| Equilibrium () |
|
KOKKOS_INLINE_FUNCTION bool | is_in_region_1_or_2 (double r, double z, double psi) const |
|
KOKKOS_INLINE_FUNCTION bool | is_in_region_1 (double r, double z, double psi) const |
|
KOKKOS_INLINE_FUNCTION void | check_boundaries (const SimdVector2D &x, Simd< bool > &rz_outside) const |
|
KOKKOS_INLINE_FUNCTION void | get_theta (const SimdVector2D &x, Simd< double > &theta) const |
|
void | set_decay_factors (double out_decay_factor_in, double priv_flux_decay_factor_in, double out_decay_width_in, double priv_flux_decay_width_in, bool set_xpt2_in) |
|
template<class Device >
Equilibrium< Device >::Equilibrium |
( |
double |
eq_min_r, |
|
|
double |
eq_max_r, |
|
|
double |
eq_min_z, |
|
|
double |
eq_max_z, |
|
|
double |
eq_x_psi, |
|
|
double |
epsil_psi_in, |
|
|
double |
eq_x_r, |
|
|
double |
eq_x_slope, |
|
|
double |
eq_x_z, |
|
|
double |
eq_x2_r, |
|
|
double |
eq_x2_slope, |
|
|
double |
eq_x2_z, |
|
|
double |
eq_x2_psi, |
|
|
double |
eq_axis_r, |
|
|
double |
eq_axis_z, |
|
|
int |
eq_mpsi |
|
) |
| |
Constructor for equilibrium class
Check whether vector of (r,z) locations is outside of the equilibrium
- Parameters
-
[in] | x | {r,z} coordinates |
[out] | rz_outside | Whether they are outside or not |
Gets theta coordinate from {r,z} coordinates
- Parameters
-
[in] | x | {r,z} coordinates |
[out] | theta | Vector of theta values |
template<class Device >
KOKKOS_INLINE_FUNCTION bool Equilibrium< Device >::is_in_region_1 |
( |
double |
r, |
|
|
double |
z, |
|
|
double |
psi |
|
) |
| const |
Check whether a location is in region 1 of the tokamak
- Parameters
-
[in] | r | r coordinate |
[in] | z | z coordinate |
[in] | psi | psi coordinate |
- Returns
- True if the location is in region 1
template<class Device >
KOKKOS_INLINE_FUNCTION bool Equilibrium< Device >::is_in_region_1_or_2 |
( |
double |
r, |
|
|
double |
z, |
|
|
double |
psi |
|
) |
| const |
Check whether a location is in region 1 or 2 of the tokamak
- Parameters
-
[in] | r | r coordinate |
[in] | z | z coordinate |
[in] | psi | psi coordinate |
- Returns
- True if the location is in region 1 or 2
template<class Device >
void Equilibrium< Device >::set_decay_factors |
( |
double |
out_decay_factor_in, |
|
|
double |
priv_flux_decay_factor_in, |
|
|
double |
out_decay_width_in, |
|
|
double |
priv_flux_decay_width_in, |
|
|
bool |
set_xpt2_in |
|
) |
| |
Assigns factors needed for eq profile calculations
profiles decay exponentially to f(sml_outpsi)/decay_factor for psi>sml_outpsi
width for exponential decay for psi>sml_outpsi
profiles decay exponentially to f(sml_outpsi)/decay_factor in priv. flux region
width for exponential decay in private flux region
psi coordinate at 2nd X-point
r coordinate of 2nd X-point
Slope (which slope?) at 2nd X-point.
z coordinate at 2nd X-point
Psi coordinate of 1st X-point.
r coordinate of 1st X-point
Slope (which slope?) at 1st X-point.
z coordinate of 1st X-point
The documentation for this class was generated from the following files:
- /u/gitlab-xgc/builds/YGMz2TJ8/0/xgc/XGC-Devel/XGC_core/cpp/equil.hpp
- /u/gitlab-xgc/builds/YGMz2TJ8/0/xgc/XGC-Devel/XGC_core/cpp/equil.tpp