PLUTO  4.4-patch2
Variables
globals.h File Reference

Collects global variables definitions. More...

Go to the source code of this file.

Variables

int prank
 
long int IBEG
 
long int IEND
 
long int JBEG
 
long int JEND
 
long int KBEG
 
long int KEND
 
long int NX1
 
long int NX2
 
long int NX3
 
long int NX1_TOT
 
long int NX2_TOT
 
long int NX3_TOT
 
long int NMAX_POINT
 
int g_i
 
int g_j
 
int g_k
 
int g_dir
 
double g_dt
 
int g_intStage
 
double g_maxCoolingRate = 0.1
 
double g_minCoolingTemp = 50.0
 
int g_maxIMEXIter
 
int g_maxRiemannIter
 
int g_maxRootIter
 
int g_nprocs
 
double g_smallDensity = 1.e-12
 
double g_smallPressure = 1.e-12
 
long int g_stepNumber
 
double g_time
 
long int g_usedMemory
 
double g_maxMach
 
double g_domBeg [3]
 
double g_domEnd [3]
 
double g_inputParam [32]
 
int d_indent
 
int d_condition =1
 
Direction-dependent Vector Labels

Vector indices permuted during sweeps are used to distinguish between normal ("n"), tangent ("t") and binormal ("b") directions. In vector notations, $ \hvec{b} = \hvec{n} \times \hvec{t} $, they form a right-handed triad. Values are set in the SetIndex() function before commencing integration.

int VXn
 
int VXt
 
int VXb
 
int MXn
 
int MXt
 
int MXb
 
int BXn
 
int BXt
 
int BXb
 
int EXn
 
int EXt
 
int EXb
 
int VXn_D
 
int VXt_D
 
int VXb_D
 
int MXn_D
 
int MXt_D
 
int MXb_D
 

Detailed Description

This file contains definitions for all global variables (visible anywhere in the code) used by PLUTO. Global variables names, by convention, are prefixed with a "g_" unless they're used as constants throughout the code in which case they keep the full-capitalized notation typical of macros.

For modules, global variables are prefixed with the initial letters of the module name, e.g., sb_vy or glm_ch.

In the following "local" means "for the local processor". "Interior" means inside the computational domain.

Author
A. Mignone (migno.nosp@m.ne@t.nosp@m.o.inf.nosp@m.n.it)
Date
Dec 02, 2020

Variable Documentation

◆ d_condition

int d_condition =1

Enable/disable printLoging when a certain cond. is verified

◆ d_indent

int d_indent

Number of indentation space using during debug printLoging

◆ g_dir

int g_dir

Specifies the current sweep or direction of integration. Its value is set usually in the time stepping functions and can take the values

  • IDIR, for integration in the X1 dir;
  • JDIR, for integration in the X2 dir;
  • KDIR, for integration in the X3 dir;

◆ g_domBeg

double g_domBeg[3]

Lower limits of the computational domain.

◆ g_domEnd

double g_domEnd[3]

Upper limits of the computational domain.

◆ g_dt

double g_dt

The current integration time step.

◆ g_i

int g_i

x1 grid index when sweeping along the x2 or x3 direction.

◆ g_inputParam

double g_inputParam[32]

Array containing the user-defined parameters. The index names of this array are defined in definitions.h through the python interface.

◆ g_intStage

int g_intStage

Gives the current integration stage of the time stepping method (predictor = 0, 1st corrector = 1, and so on).

◆ g_j

int g_j

x2 grid index when sweeping along the x1 or x3 direction.

◆ g_k

int g_k

x3 grid index when sweeping along the x1 or x2 direction.

◆ g_maxCoolingRate

double g_maxCoolingRate = 0.1

The maximum fractional variation due to cooling from one step to the next.

◆ g_maxIMEXIter

int g_maxIMEXIter

Maximum number if iterations in IMEX scheme

◆ g_maxMach

double g_maxMach

The maximum Mach number computed during integration.

◆ g_maxRiemannIter

int g_maxRiemannIter

Maximum number of iterations for iterative Riemann Solver.

◆ g_maxRootIter

int g_maxRootIter

Maximum number of iterations for root finder

◆ g_minCoolingTemp

double g_minCoolingTemp = 50.0

The minimum temperature (in K) below which cooling is suppressed.

◆ g_nprocs

int g_nprocs

The total number of processors

◆ g_smallDensity

double g_smallDensity = 1.e-12

Small value for density fix.

◆ g_smallPressure

double g_smallPressure = 1.e-12

Small value for pressure fix.

◆ g_stepNumber

long int g_stepNumber

Gives the current integration step number.

◆ g_time

double g_time

The current integration time.

◆ g_usedMemory

long int g_usedMemory

Amount of used memory in bytes.

◆ IBEG

long int IBEG

Lower grid index of the computational domain in the the X1 direction for the local processor.

◆ IEND

long int IEND

Upper grid index of the computational domain in the the X1 direction for the local processor.

◆ JBEG

long int JBEG

Lower grid index of the computational domain in the the X2 direction for the local processor.

◆ JEND

long int JEND

Upper grid index of the computational domain in the the X2 direction for the local processor.

◆ KBEG

long int KBEG

Lower grid index of the computational domain in the the X3 direction for the local processor.

◆ KEND

long int KEND

Upper grid index of the computational domain in the the X3 direction for the local processor.

◆ NMAX_POINT

long int NMAX_POINT

Maximum number of points among the three directions, boundaries excluded.

◆ NX1

long int NX1

Number of interior zones in the X1 directions (boundaries excluded) for the local processor.

◆ NX1_TOT

long int NX1_TOT

Total number of zones in the X1 direction (boundaries included) for the local processor.

◆ NX2

long int NX2

Number of interior zones in the X2 directions (boundaries excluded) for the local processor.

◆ NX2_TOT

long int NX2_TOT

Total number of zones in the X2 direction (boundaries included) for the local processor.

◆ NX3

long int NX3

Number of interior zones in the X3 directions (boundaries excluded) for the local processor.

◆ NX3_TOT

long int NX3_TOT

Total number of zones in the X3 direction (boundaries included) for the local processor.

◆ prank

int prank

Processor rank. In serial mode it is defined to be 0.