|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Data Structures | |
| struct | Cartesian |
| struct | _Point |
Macros | |
| #define | GRIDNAME "Cartesian 1D" |
| #define | dimension 1 |
| #define | GHOSTS 1 |
| #define | _I (point.i - 1) |
| #define | _DELTA (1./point.n) |
| #define | cartesian ((Cartesian *)grid) |
Typedefs | |
| typedef double | real |
Functions | |
| define | data (k, l, m)((double *) &((Cartesian *) grid) -> d[(point.i+k) *datasize]) @define allocated(...) true macro POINT_VARIABLES(Point point=point) |
| macro2 | foreach (char flags=0, Reduce reductions=None) |
| macro2 | foreach_face_generic (char flags=0, Reduce reductions=None, const char *order="xyz") |
| macro1 | is_face_x () |
| static void | box_boundary_level_normal (const Boundary *b, scalar *list, int l) |
| static double | periodic_bc (Point point, Point neighbor, scalar s, bool *data) |
| static void | box_boundary_level (const Boundary *b, scalar *list, int l) |
| static void | periodic_boundary_level_x (const Boundary *b, scalar *list, int l) |
| void | free_grid (void) |
| if TRASH undef trash define | trash (list) reset(list |
| if TRASH undef trash define undefined endif void | reset (void *alist, double val) |
| void | init_grid (int n) |
| void | realloc_scalar (int size) |
| Point | locate (double xp=0, double yp=0, double zp=0) |
| macro2 | for (int _i=0;_i< _N;_i++) |
| void | cartesian1D_methods () |
Variables | |
| static Point | last_point |
| static int | _ig [] = {1,-1} |
Definition at line 10 of file cartesian1D.h.
Definition at line 9 of file cartesian1D.h.
Definition at line 23 of file cartesian1D.h.
| #define dimension 1 |
Definition at line 6 of file cartesian1D.h.
| #define GHOSTS 1 |
Definition at line 7 of file cartesian1D.h.
Definition at line 5 of file cartesian1D.h.
Definition at line 3 of file cartesian1D.h.
Definition at line 89 of file cartesian1D.h.
References _ig, b, box_boundary_level_normal(), cartesian, d, free(), GHOSTS, Point::i, l, list_add(), neighbor(), normal, periodic_bc(), point, right, s, val(), and x.
Referenced by init_grid().
| void cartesian1D_methods | ( | ) |
Definition at line 237 of file cartesian1D.h.
References cartesian_methods().
| define data | ( | k | , |
| l | , | ||
| m | |||
| ) | & -> d[(point.i + k)*datasize]) @define allocated(...) true macro POINT_VARIABLES (Point point = point) |
Definition at line 25 of file cartesian1D.h.
References VARIABLES().
| macro2 for | ( | ) |
Definition at line 229 of file cartesian1D.h.
References flags, foreach_face_generic(), reductions, and x.
Definition at line 30 of file cartesian1D.h.
References _k, cartesian, Point::i, OMP_PARALLEL(), point, reductions, and x.
| macro2 foreach_face_generic | ( | char | flags = 0, |
| Reduce | reductions = None, |
||
| const char * | order = "xyz" |
||
| ) |
Definition at line 45 of file cartesian1D.h.
References _k, cartesian, Point::i, OMP_PARALLEL(), point, reductions, and x.
Referenced by for().
Definition at line 146 of file cartesian1D.h.
References cartesian, free(), free_boundaries(), grid, and x.
Referenced by init_grid().
Definition at line 173 of file cartesian1D.h.
References add_boundary(), all, b, box(), box_boundary_level(), cartesian, d, datasize, free_grid(), grid, i, _Boundary::level, Grid::n, N, n, p, periodic_boundary_level_x(), qcalloc, qmalloc, reset, Grid::tn, undefined(), v, and x.
| macro1 is_face_x | ( | ) |
Definition at line 61 of file cartesian1D.h.
References x.
Definition at line 216 of file cartesian1D.h.
References a, cartesian, Point::i, L0, Point::level, point, x, and X0.
Referenced by box_boundary_level(), and periodic_boundary_level_x().
Definition at line 125 of file cartesian1D.h.
References free(), GHOSTS, grid, i, Point::i, list_add(), N, periodic_bc(), point, right, s, and x.
Referenced by init_grid().
|
static |
Definition at line 64 of file cartesian1D.h.
Referenced by box_boundary_level(), box_boundary_level(), box_boundary_level_normal(), box_boundary_level_normal(), box_boundary_level_tangent(), and VARIABLES().
|
static |
Definition at line 21 of file cartesian1D.h.