Main Features¶
-
YAML-based input
The whole simulation — setup, time loop, outputs — is a graph of operators described in YAML (
.mspfiles). A user deck only overrides the blocks it needs from the default configuration. -
MPI x OpenMP x GPU
Cartesian MPI domain decomposition with ghost layers, OpenMP threads, and CUDA kernels (CUDA-aware MPI) written once for CPU and GPU.
-
D3Q19 lattice
Regular grid of nodes with a uniform spacing \(\Delta x\), physical units converted to lattice units by
lbm_parameters. -
Collision models
- BGK (single relaxation time, default)
- MRT (multiple relaxation times, user-defined rates, BGK-consistent equilibrium)
- Body force
Fext
-
Boundary conditions
- Bounce-back (no-slip) on domain planes, declared in
domain - Neumann / Zou-He velocity conditions
- Pressure (density) conditions
rho - Moving walls
lid_driven_cavity,cavity_z_0/l
- Bounce-back (no-slip) on domain planes, declared in
-
Obstacles
Boxes, spheres, quadric surfaces (cylinders, ellipsoids, cones) and STL meshes, with automatic bounce-back on their surfaces.
-
Initial conditions
Uniform or local distributions, pressure perturbations
set_dp_pressure, linear pressure rampsset_dp_pressure_gradient, Couette profiles. -
Outputs & analysis
ParaView files (full domain or sub-box), a log line with global quantities and throughput, line and plane velocity profiles, regression checkers.
-
Checkpoint / Restart
Compressed, self-contained binary dumps of the simulation state, restart with the same or new parameters.