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
*/
3
macro
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
20
NOT_UNUSED
(
y
);
21
#if dimension > 2
22
double
z
= ((
_kg
+ 1)/2. +
_K
)*
Delta
+
Z0
;
23
#else
24
double
z
= 0.;
25
#endif
26
NOT_UNUSED
(
z
);
27
/* we need this to avoid compiler warnings */
28
NOT_UNUSED
(
Delta
);
29
NOT_UNUSED
(
Delta_x
);
30
#if dimension > 1
31
NOT_UNUSED
(
Delta_y
);
32
#endif
33
#if dimension > 2
34
NOT_UNUSED
(
Delta_z
);
35
#endif
36
/* and this when catching FPEs */
37
_CATCH
;
38
}
_ig
static int _ig[]
Definition
cartesian1D.h:64
_jg
def is_boundary() _jg[]
Definition
cartesian.h:152
_I
#define _I
Definition
cartesian.h:15
_DELTA
#define _DELTA
Definition
cartesian.h:17
_J
#define _J
Definition
cartesian.h:16
y
int y
Definition
common.h:76
x
int x
Definition
common.h:76
z
int z
Definition
common.h:76
Z0
double Z0
Definition
common.h:34
L0
double L0
Definition
common.h:36
X0
double X0
Definition
common.h:34
Y0
double Y0
Definition
common.h:34
point
Point point
Definition
conserving.h:86
macro
macro
We also redefine the "per field" (inner) traversal.
Definition
layers.h:18
_K
#define _K
Definition
multigrid.h:29
Point
Definition
linear.h:21
VARIABLES
macro VARIABLES(Point point=point, int _ig=ig, int _jg=jg, int _kg=kg)
Definition
variables.h:3
grid
variables.h
Generated by
1.9.8