Domain¶
The domain operator, called in the do_domain hook, creates the LBM lattice: a regular grid of nodes with a
uniform spacing \(\Delta x\), split into MPI subdomains.
Parameters' description
| Property | Type | Description |
|---|---|---|
bounds |
AABB |
[[xmin,ymin,zmin],[xmax,ymax,zmax]], physical bounds of the domain (units allowed: 0.1 m) |
cell_dims |
[int;3] |
number of cells along each axis; the grid has cell_dims + 1 nodes per axis along non-periodic axes |
periodic |
[bool;3] |
periodicity along X, Y, Z |
bounce_back_planes |
[string] |
domain planes with a no-slip (bounce-back) wall, see Boundary conditions |
tolerance |
float |
relative tolerance of the consistency check between bounds, cells and spacing (default 1e-6) |
The spacing \(\Delta x = (x_{max} - x_{min}) / n_x\) must be the same along the three axes: domain aborts
otherwise.
At startup, print_domain prints a summary of the domain (bounds, spacing, number of nodes, MPI decomposition).
The six boundary planes are named after the plane they lie in:
| Plane | Position |
|---|---|
plan_yz_0 / plan_yz_l |
X = xmin / X = xmax |
plan_xz_0 / plan_xz_l |
Y = ymin / Y = ymax |
plan_xy_0 / plan_xy_l |
Z = zmin / Z = zmax |
See Domain & Data Structures for the internal representation.