|
#define | PLUTO_VERSION "4.2" |
|
#define | YES 1 |
|
#define | NO 0 |
|
#define | DEFAULT -1 |
|
#define | TRUE YES |
|
#define | FALSE NO |
|
#define | CARTESIAN 1 |
|
#define | CYLINDRICAL 2 |
|
#define | POLAR 3 |
|
#define | SPHERICAL 4 |
|
#define | UNIFORM_GRID 1 |
|
#define | STRETCHED_GRID 2 |
|
#define | LOGARITHMIC_INC_GRID 3 |
|
#define | LOGARITHMIC_DEC_GRID 4 |
|
#define | IDEAL 1 |
|
#define | PVTE_LAW 2 |
|
#define | TAUB 3 |
|
#define | BAROTROPIC 4 |
|
#define | ISOTHERMAL 5 |
|
#define | SELECTIVE 1 |
|
#define | ALWAYS 2 |
|
#define | CHOMBO_REGRID 3 |
|
#define | EULER 1 |
|
#define | HANCOCK 2 |
|
#define | CHARACTERISTIC_TRACING 3 |
|
#define | RK2 5 |
|
#define | RK3 6 |
|
#define | RK_MIDPOINT 7 |
|
#define | SSP_RK4 8 |
|
#define | EXPLICIT 1 /* -- just a number different from 0 !!! -- */ |
|
#define | SUPER_TIME_STEPPING 2 /* -- just a number different from EXPLICIT -- */ |
|
#define | RK_CHEBYSHEV 4 |
|
#define | HYPERBOLIC_STEP 1 |
|
#define | PARABOLIC_STEP 2 |
|
#define | SOURCE_STEP 3 |
|
#define | DBL_OUTPUT 1 |
|
#define | FLT_OUTPUT 2 |
|
#define | VTK_OUTPUT 3 |
|
#define | DBL_H5_OUTPUT 4 |
|
#define | FLT_H5_OUTPUT 5 |
|
#define | TAB_OUTPUT 6 |
|
#define | PPM_OUTPUT 7 |
|
#define | PNG_OUTPUT 8 |
|
#define | VTK_VECTOR 5 /* -- any number but NOT 1 -- */ |
|
#define | MAX_OUTPUT_TYPES 11 |
|
#define | MAX_OUTPUT_VARS 128 |
|
#define | POWER_LAW 3 |
|
#define | MINEq 4 |
|
#define | SNEq 5 |
|
#define | TABULATED 6 |
|
#define | H2_COOL 7 |
|
#define | ADVECTION 1 |
|
#define | HD 2 |
|
#define | RHD 3 |
|
#define | MHD 4 |
|
#define | RMHD 5 |
|
#define | NONE 0 |
|
#define | EIGHT_WAVES 1 |
|
#define | DIV_CLEANING 2 |
|
#define | CONSTRAINED_TRANSPORT 3 |
|
#define | VECTOR 4 /* corresponds to 100 in binary */ |
|
#define | POTENTIAL 8 /* corresponds to 1000 in binary */ |
|
#define | OUTFLOW 1 /* any number except 0 !! */ |
|
#define | REFLECTIVE 2 |
|
#define | AXISYMMETRIC 3 |
|
#define | EQTSYMMETRIC 4 |
|
#define | PERIODIC 5 |
|
#define | SHEARING 6 |
|
#define | USERDEF 7 |
|
#define | X12_PLANE 3 |
|
#define | X13_PLANE 5 |
|
#define | X23_PLANE 6 |
|
#define | IDIR 0 /* This sequence (0,1,2) should */ |
|
#define | JDIR 1 /* never be changed */ |
|
#define | KDIR 2 /* */ |
|
#define | ALL_DIR -1 |
|
#define | CENTER 0 |
|
#define | X1FACE 1 |
|
#define | X2FACE 2 |
|
#define | X3FACE 3 |
|
#define | CELL_CENTER 50 /* really needed ? */ |
|
#define | FACE_CENTER 51 |
|
#define | EDGE_CENTER 52 |
|
#define | FLAT 1 |
|
#define | LINEAR 2 |
|
#define | CENO3 3 |
|
#define | PARABOLIC 4 |
|
#define | LINEAR_MULTID 5 |
|
#define | MP5 6 |
|
#define | LimO3 7 |
|
#define | WENO3 8 |
|
#define | SPLINE1 30 /* Used by Table2D interpolation */ |
|
#define | SPLINE2 31 /* Used by Table2D interpolation */ |
|
#define | WENO3_FD 103 |
|
#define | WENO5_FD 105 |
|
#define | WENOZ_FD 106 |
|
#define | WENO7_FD 107 |
|
#define | MP5_FD 125 |
|
#define | LIMO3_FD 300 |
|
#define | ONED 1 |
|
#define | MULTID 3 |
|
#define | FLAT_LIM 1 |
|
#define | MINMOD_LIM 2 |
|
#define | VANALBADA_LIM 3 |
|
#define | OSPRE_LIM 4 |
|
#define | UMIST_LIM 5 |
|
#define | VANLEER_LIM 6 |
|
#define | MC_LIM 7 |
|
#define | FOURTH_ORDER_LIM 8 |
|
#define | BACKGROUND_FIELD NO |
|
#define | CHAR_LIMITING NO |
|
#define | DUST NO |
|
#define | ENTROPY_SWITCH NO |
|
#define | EOS -1 |
|
#define | INCLUDE_PARTICLES NO |
|
#define | RECONSTRUCT_4VEL NO |
| When set to YES, reconstruct 4-velocity rather than 3-velocity (only for RHD and RMHD physics modules) More...
|
|
#define | RESISTIVITY NO |
|
#define | ROTATING_FRAME NO |
|
#define | THERMAL_CONDUCTION NO |
|
#define | UNIT_DENSITY (CONST_mp) |
| Unit density in gr/cm^3. More...
|
|
#define | UNIT_LENGTH (CONST_au) |
| Unit Length in cm. More...
|
|
#define | UNIT_VELOCITY (1.e5) |
| Unit velocity in cm/sec. More...
|
|
#define | UPDATE_VECTOR_POTENTIAL NO |
|
#define | VISCOSITY NO |
|
#define | HAVE_ENERGY NO |
|
#define | KELVIN (UNIT_VELOCITY*UNIT_VELOCITY*CONST_amu/CONST_kB) |
|
#define | CHECK_EIGENVECTORS NO |
|
#define | CHECK_CONSERVATIVE_VAR NO |
|
#define | CHECK_DIVB_CONDITION NO |
|
#define | GET_MAX_DT YES |
|
#define | PARABOLIC_FLUX (RESISTIVITY|THERMAL_CONDUCTION|VISCOSITY) |
|
#define | H_MASS_FRAC 0.7110 |
|
#define | He_MASS_FRAC 0.2741 |
|
#define | Z_MASS_FRAC (1.0 - H_MASS_FRAC - He_MASS_FRAC) |
|
#define | FRAC_He (He_MASS_FRAC/CONST_AHe*CONST_AH/H_MASS_FRAC) |
|
#define | FRAC_Z (Z_MASS_FRAC /CONST_AZ *CONST_AH/H_MASS_FRAC) |
|
#define | NIONS 0 |
|
#define | NSCL (NTRACER + NIONS + (ENTROPY_SWITCH != 0)) |
|
#define | NDUST 0 |
|
#define | NDUST_BEG (NFLX + NSCL) |
|
#define | NDUST_END (NDUST_BEG + NDUST - 1) |
|
#define | TRC (NFLX + NIONS) |
|
#define | NVAR (NFLX + NSCL + NDUST) |
|
#define | NFLX_LOOP(n) for ((n) = NFLX; (n)--; ) |
|
#define | NIONS_LOOP(n) for ((n) = NFLX; (n) < (NFLX+NIONS); (n)++) |
|
#define | NTRACER_LOOP(n) for ((n) = TRC; (n) < (TRC+NTRACER); (n)++) |
|
#define | NSCL_LOOP(n) for ((n) = NFLX; (n) < (NFLX+NSCL); (n)++) |
|
#define | NDUST_LOOP(n) for ((n) = NDUST_BEG; (n) <= NDUST_END; (n)++) |
|
#define | NVAR_LOOP(n) for ((n) = NVAR; (n)--; ) |
|
#define | IF_DUST(a) |
|
#define | IF_ENERGY(a) |
|
#define | IF_FARGO(a) |
|
#define | IF_ROTATING_FRAME(a) |
|
#define | NX1_MAX NX1_TOT |
|
#define | NX2_MAX NX2_TOT |
|
#define | NX3_MAX NX3_TOT |
|
|
These are useful in Boundary() and when setting RBox structures in different points of the code.
|
#define | X1_BEG 101 |
| Boundary region at X1 beg. More...
|
|
#define | X1_END 102 |
| Boundary region at X1 end. More...
|
|
#define | X2_BEG 103 |
| Boundary region at X2 beg. More...
|
|
#define | X2_END 104 |
| Boundary region at X2 end. More...
|
|
#define | X3_BEG 105 |
| Boundary region at X3 beg. More...
|
|
#define | X3_END 106 |
| Boundary region at X3 end. More...
|
|
#define | DOM 107 |
| Computational domain (interior) More...
|
|
#define | TOT 108 |
| Computational domain (total) More...
|
|
|
The following macros define the bits that can be turned on or off in an unsigned char (= 1 byte = 8 bits) variable. Different bit flags allow to enable or disable certain actions in a given cell at different points in the code, see also flag.c. The 3D unsigned char ***flag array is used for bookeeping, in each zone (i,j,k), which bits are actually switched on or off. A simple bitwise operation is used to enable a flag, e.g., flag[k][j][i] |= FLAG_XXX . For instance, by turning the FLAG_HLL bit on, we have flag = 00000100 , while by also enabling the FLAG_SPLIT_CELL one has flag = 00010100 and so on. Individual bits can also be turned off with the complement operator
Individual bits can also be turned off, e.g., flag &= ~FLAG_XXX;
|
#define | FLAG_MINMOD 1 |
| Reconstruct using MINMOD limiter. More...
|
|
#define | FLAG_FLAT 2 |
| Reconstruct using FLAT limiter. More...
|
|
#define | FLAG_HLL 4 |
| Use HLL Riemann solver. More...
|
|
#define | FLAG_ENTROPY 8 |
| Update pressure using entropy equation. More...
|
|
#define | FLAG_SPLIT_CELL 16 |
| Zone is covered by a finer level (AMR only). More...
|
|
#define | FLAG_INTERNAL_BOUNDARY 32 |
| Zone belongs to an internal boundary region and should be excluded from being updated in time. More...
|
|
#define | FLAG_CONS2PRIM_FAIL 64 |
|
#define | FLAG_BIT8 128 |
|
|
The following set of macros express some useful physical constants in c.g.s units (erg, cm and sec). Values have been taken from http://physic.nist.gov/cuu/Constants/index.html
|
#define | CONST_AH 1.008 |
|
#define | CONST_AHe 4.004 |
| Atomic weight of Helium. More...
|
|
#define | CONST_AZ 30.0 |
| Mean atomic weight of heavy elements. More...
|
|
#define | CONST_amu 1.66053886e-24 |
| Atomic mass unit. More...
|
|
#define | CONST_au 1.49597892e13 |
| Astronomical unit. More...
|
|
#define | CONST_c 2.99792458e10 |
| Speed of Light. More...
|
|
#define | CONST_eV 1.602176463158e-12 |
| Electron Volt in erg. More...
|
|
#define | CONST_G 6.6726e-8 |
| Gravitational Constant. More...
|
|
#define | CONST_h 6.62606876e-27 |
| Planck Constant. More...
|
|
#define | CONST_kB 1.3806505e-16 |
| Boltzmann constant. More...
|
|
#define | CONST_ly 0.9461e18 |
| Light year. More...
|
|
#define | CONST_mp 1.67262171e-24 |
| Proton mass. More...
|
|
#define | CONST_mn 1.67492728e-24 |
| Neutron mass. More...
|
|
#define | CONST_me 9.1093826e-28 |
| Electron mass. More...
|
|
#define | CONST_mH 1.6733e-24 |
| Hydrogen atom mass. More...
|
|
#define | CONST_Msun 2.e33 |
| Solar Mass. More...
|
|
#define | CONST_Mearth 5.9736e27 |
| Earth Mass. More...
|
|
#define | CONST_NA 6.0221367e23 |
| Avogadro Contant. More...
|
|
#define | CONST_pc 3.0856775807e18 |
| Parsec. More...
|
|
#define | CONST_PI 3.14159265358979 |
| . More...
|
|
#define | CONST_Rearth 6.378136e8 |
| Earth Radius. More...
|
|
#define | CONST_Rsun 6.96e10 |
| Solar Radius. More...
|
|
#define | CONST_sigma 5.67051e-5 |
| Stephan Boltmann constant. More...
|
|
#define | CONST_sigmaT 6.6524e-25 |
| Thomson Cross section. More...
|
|
|
int | SZ |
|
int | SZ_stagx |
|
int | SZ_stagy |
|
int | SZ_stagz |
|
int | SZ_char |
|
int | SZ_float |
|
int | SZ_Float_Vect |
|
int | SZ_rgb |
|
int | SZ_short |
|
int | prank |
| Processor rank. More...
|
|
long int | IBEG |
| Lower grid index of the computational domain in the the X1 direction for the local processor. More...
|
|
long int | IEND |
| Upper grid index of the computational domain in the the X1 direction for the local processor. More...
|
|
long int | JBEG |
| Lower grid index of the computational domain in the the X2 direction for the local processor. More...
|
|
long int | JEND |
| Upper grid index of the computational domain in the the X2 direction for the local processor. More...
|
|
long int | KBEG |
| Lower grid index of the computational domain in the the X3 direction for the local processor. More...
|
|
long int | KEND |
| Upper grid index of the computational domain in the the X3 direction for the local processor. More...
|
|
long int | NX1 |
| Number of interior zones in the X1 directions (boundaries excluded) for the local processor. More...
|
|
long int | NX2 |
| Number of interior zones in the X2 directions (boundaries excluded) for the local processor. More...
|
|
long int | NX3 |
| Number of interior zones in the X3 directions (boundaries excluded) for the local processor. More...
|
|
long int | NX1_TOT |
| Total number of zones in the X1 direction (boundaries included) for the local processor. More...
|
|
long int | NX2_TOT |
| Total number of zones in the X2 direction (boundaries included) for the local processor. More...
|
|
long int | NX3_TOT |
| Total number of zones in the X3 direction (boundaries included) for the local processor. More...
|
|
long int | NMAX_POINT |
| Maximum number of points among the three directions, boundaries excluded. More...
|
|
int | VXn |
|
int | VXt |
|
int | VXb |
|
int | MXn |
|
int | MXt |
|
int | MXb |
|
int | BXn |
|
int | BXt |
|
int | BXb |
|
int | g_i |
| x1 grid index when sweeping along the x2 or x3 direction. More...
|
|
int | g_j |
| x2 grid index when sweeping along the x1 or x3 direction. More...
|
|
int | g_k |
| x3 grid index when sweeping along the x1 or x2 direction. More...
|
|
int | g_dir |
| Specifies the current sweep or direction of integration. More...
|
|
int | g_maxRiemannIter |
| Maximum number of iterations for iterative Riemann Solver. More...
|
|
int | g_maxRootIter |
| Maximum number of iterations for root finder. More...
|
|
long int | g_usedMemory |
| Amount of used memory in bytes. More...
|
|
long int | g_stepNumber |
| Gives the current integration step number. More...
|
|
int | g_intStage |
| Gives the current integration stage of the time stepping method (predictor = 0, 1st corrector = 1, and so on). More...
|
|
int | g_operatorStep |
| Gives the current operator step. More...
|
|
double | g_maxCoolingRate |
| The maximum fractional variation due to cooling from one step to the next. More...
|
|
double | g_minCoolingTemp |
| The minimum temperature (in K) below which cooling is suppressed. More...
|
|
double | g_smallDensity |
| Small value for density fix. More...
|
|
double | g_smallPressure |
| Small value for pressure fix. More...
|
|
double | g_time |
| The current integration time. More...
|
|
double | g_dt |
| The current integration time step. More...
|
|
double | g_maxMach |
| The maximum Mach number computed during integration. More...
|
|
double | g_domBeg [3] |
| Lower limits of the computational domain. More...
|
|
double | g_domEnd [3] |
| Upper limits of the computational domain. More...
|
|
double | g_inputParam [32] |
| Array containing the user-defined parameters. More...
|
|
PLUTO main header file.
Contains basic macro definitions, structure definitions and global variable declarations used by the code.
- Author
- A. Mignone (migno.nosp@m.ne@p.nosp@m.h.uni.nosp@m.to.i.nosp@m.t)
- Date
- July 05, 2015
Definition in file pluto.h.