Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
variables.h
Go to the documentation of this file.
1/** @file variables.h
2 */
3macro VARIABLES (Point point = point, int _ig = ig, int _jg = jg, int _kg = kg)
4{
5 double Delta = L0*_DELTA; /* cell size */
6 double Delta_x = Delta; /* cell size (with mapping) */
7#if dimension > 1
8 double Delta_y = Delta; /* cell size (with mapping) */
9#endif
10#if dimension > 2
11 double Delta_z = Delta; /* cell size (with mapping) */
12#endif
13 /* cell/face center coordinates */
14 double x = ((_ig + 1)/2. + _I)*Delta + X0; NOT_UNUSED(x);
15#if dimension > 1
16 double y = ((_jg + 1)/2. + _J)*Delta + Y0;
17#else
18 double y = 0.;
19#endif
21#if dimension > 2
22 double z = ((_kg + 1)/2. + _K)*Delta + Z0;
23#else
24 double z = 0.;
25#endif
27 /* we need this to avoid compiler warnings */
30#if dimension > 1
32#endif
33#if dimension > 2
35#endif
36 /* and this when catching FPEs */
37 _CATCH;
38}
static int _ig[]
Definition cartesian1D.h:64
def is_boundary() _jg[]
Definition cartesian.h:152
#define _I
Definition cartesian.h:15
#define _DELTA
Definition cartesian.h:17
#define _J
Definition cartesian.h:16
int y
Definition common.h:76
int x
Definition common.h:76
int z
Definition common.h:76
double Z0
Definition common.h:34
double L0
Definition common.h:36
double X0
Definition common.h:34
double Y0
Definition common.h:34
Point point
Definition conserving.h:86
macro
We also redefine the "per field" (inner) traversal.
Definition layers.h:18
#define _K
Definition multigrid.h:29
Definition linear.h:21
macro VARIABLES(Point point=point, int _ig=ig, int _jg=jg, int _kg=kg)
Definition variables.h:3