XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
velocity_grid.hpp
Go to the documentation of this file.
1 #ifndef VELOCITY_GRID_HPP
2 #define VELOCITY_GRID_HPP
3 
4 // Specifies the dimensions of the velocity grid
5 struct VelocityGrid{
6  int nvp; //< n points in parallel velocity (not including zero)
7  double vp_max; //< max parallel velocity
8  double dvp; //< grid spacing in parallel velocity
9 
10  int nmu; //< n points in mu (not including zero)
11  double smu_max; //< max mu
12  double dsmu; //< grid spacing in mu
13 
14  double inv_mu0_factor = 1.0/3.0; //< Set value of lowest mu in grid --> 1/mu0_factor
15 
16  int nvr; //< full grid size (including zero)
17  int nvz; //< full grid size (including negative and zero)
18 
20 
21  VelocityGrid(int f0_nvp, int f0_nmu, double f0_vp_max, double f0_smu_max)
22  : nvp(f0_nvp),
23  nmu(f0_nmu),
24  vp_max(f0_vp_max),
25  smu_max(f0_smu_max),
26  dvp(vp_max/nvp),
27  dsmu(smu_max/nmu),
28  nvr(nmu+1),
29  nvz(nvp*2+1){}
30 
31 };
32 #endif
double smu_max
Definition: velocity_grid.hpp:11
int nmu
Definition: velocity_grid.hpp:10
int nvp
Definition: velocity_grid.hpp:6
Definition: velocity_grid.hpp:5
VelocityGrid(int f0_nvp, int f0_nmu, double f0_vp_max, double f0_smu_max)
Definition: velocity_grid.hpp:21
int nvr
Definition: velocity_grid.hpp:16
VelocityGrid()
Definition: velocity_grid.hpp:19
double vp_max
Definition: velocity_grid.hpp:7
double dsmu
Definition: velocity_grid.hpp:12
double inv_mu0_factor
Definition: velocity_grid.hpp:14
int nvz
Definition: velocity_grid.hpp:17
double dvp
Definition: velocity_grid.hpp:8