1 #ifndef VELOCITY_GRID_HPP
2 #define VELOCITY_GRID_HPP
28 nvp = nlr.
get<
int>(
"f0_nvp", 15);
29 nmu = nlr.
get<
int>(
"f0_nmu", 31);
30 vp_max = nlr.
get<
double>(
"f0_vp_max", 3.0);
44 exit_XGC(
"\nError: Cannot run with f0_velocity_interp_use_pseudo_inv = true without using PETSc.\n");
47 exit_XGC(
"\nError: f0_velocity_interp_pseudo_inv_order must be 0 or larger.\n");
50 std::string msg =
"\nError: Cannot use f0_velocity_interp_pseudo_inv_order larger than ";
52 msg +=
", if you really want to use that large order then modify LAGRANGE_MAX_ORDER in the code.\n";
57 exit_XGC(
"\nError: f0_nmu must be divisible by f0_velocity_interp_pseudo_inv_order when f0_velocity_interp_use_pseudo_inv = true.\n");
60 exit_XGC(
"\nError: 2*f0_nvp must be divisible by f0_velocity_interp_pseudo_inv_order when f0_velocity_interp_use_pseudo_inv = true.\n");
int element_order
velocity grid finite element order (0 = nearest neighbor), (1 = linear), (2 = quadratic), (3 = cubic), ....
Definition: velocity_grid.hpp:21
double smu_max
max mu
Definition: velocity_grid.hpp:13
int nmu
n points in mu (not including zero)
Definition: velocity_grid.hpp:12
int nvp
n points in parallel velocity (not including zero)
Definition: velocity_grid.hpp:8
T get(const string ¶m, const T default_val, int val_ind=0)
Definition: NamelistReader.hpp:372
bool pseudo_inv_on
whether pseudo-inverse interpolation is used in velocity space
Definition: velocity_grid.hpp:23
Definition: velocity_grid.hpp:7
Definition: NamelistReader.hpp:193
int nvr
full grid size (including zero)
Definition: velocity_grid.hpp:18
void use_namelist(const string &namelist)
Definition: NamelistReader.hpp:354
#define LAGRANGE_MAX_ORDER
Definition: lagrange_weights.hpp:18
double vp_max
max parallel velocity
Definition: velocity_grid.hpp:9
void exit_XGC(std::string msg)
Definition: globals.hpp:36
VelocityGrid(NLReader::NamelistReader &nlr)
Definition: velocity_grid.hpp:25
double dsmu
grid spacing in mu
Definition: velocity_grid.hpp:14
double inv_mu0_factor
Set value of lowest mu in grid –> 1/mu0_factor.
Definition: velocity_grid.hpp:16
int nvz
full grid size (including negative and zero)
Definition: velocity_grid.hpp:19
double dvp
grid spacing in parallel velocity
Definition: velocity_grid.hpp:10