Code evolution¶
Versioning¶
hippoLBM releases are tagged on GitHub (vX.Y.Z). The current release is v1.0.2; the version is set by
project(hippoLBM VERSION ...) in CMakeLists.txt.
Compatibility with onika¶
| hippoLBM | onika | Spack |
|---|---|---|
| v1.0.0 - v1.0.2 | v1.1.0 | v1.1.0 |
Release notes¶
v1.0.2
🧱 Bounce-back boundary conditions rework (#60)
The no-slip boundary condition API has been simplified. Domain-wall bounce-back is now declared once in the
domain operator (via bounce_back_planes) and runs automatically — no manual pre_bounce_back /
post_bounce_back entries are needed in pre_stream_bcs / post_stream_bcs. Obstacle-surface bounce-back is
also part of the default pre_stream_bcs. See Bounce-back.
- New
bounce_back_planesparameter indomain: declares which outer boundary planes receive a no-slip condition. - New
add_bounce_back_bcsoperator: re-applies the bounce-back configuration after a restart (read_dump). pre_bounce_back,post_bounce_backandwall_bounce_backare no longer user-facing operators.
✨ New features
set_dp_pressure_gradient: initializes a linear pressure ramp between two values along X, Y or Z inside a box, typically to smooth a pressure discontinuity set withset_dp_pressure. See set_dp_pressure_gradient.set_dp_pressure: newinsideslot (defaulttrue); withinside: falsethe region outside the quadric is initialized.mrt: the relaxation rates of the non-hydrodynamic moments are now user-defined (s_e,s_eps,s_q,s_pi,s_m, default D'Humières et al. 2002) and the equilibrium moments are those of the BGK equilibrium: with all rates equal to \(1/\tau\), MRT is exactly BGK (#64). See Collision.- New example
lbm_couette_mrt.mspand regression testsregression_lbm_couette_mrtandregression_lbm_couette_mrt_bgk_equiv.
🐛 Fixes
- ParaView outputs: grid coordinates now include the origin of the domain (domains not starting at
[0,0,0]) (#61). set_distribution,set_dp_pressureandwrite_paraview_subbox:boundsare projected on the grid with the domain origin (project_to_grid) (#61).- MPI robustness (#62): every fatal error now calls
MPI_Abort(no more hanging ranks);check_macro_quantitiesbroadcasts its verdict to all ranks;logandprint_domainonly print on rank 0. lbm_parameters: defining bothtauanddtis now an error (it was a warning, andtauwas silently ignored).lid_driven_cavity: skips the subdomains without any node on the selected planes.
♻️ Cleanup
- Obstacle field sentinels renamed:
FLUID_CELL = -1(fluid node),WALL_CELL = -2(static wall); any value>= 0is the id of an obstacle. check_marco_quantities.cpprenamedcheck_macro_quantities.cpp.
v1.0.1
💾 Checkpoint / Restart (#48)
A full checkpoint/restart capability is now available. The simulation state (distribution functions, obstacles, LBM parameters, timestep, physical time, domain geometry) can be saved to a compressed binary file and reloaded to continue a run. See Checkpoint / Restart.
write_dump: writes a checkpoint file. Controlled viasimulation_dump_freqin theglobalblock.read_dump: restores a simulation from a checkpoint. Replaces thedo_domainblock on restart.check_dump: inspects and validates a checkpoint file without running any time steps.- New global option
display_last_output: trueto write a final checkpoint and ParaView file at the end of the run.
🌊 Couette operators (#55, #57, #58)
init_couette: initializes the distribution functions with the equilibrium profile of a linear velocity gradient fromU_inftoU_supalong a chosen axis.init_double_couette: symmetric shear initialization (Uat the bottom,-Uat the top, zero at the midplane).bgk_couette_relax: BGK collision with a position-dependent relaxation force that drives the flow toward a target linear Couette profile along Z.macro_variables_couette_relax: companion ofbgk_couette_relax, replacesmacro_variables.
🧭 Density / pressure boundary condition (#47)
rhooperator: enforces a pressure/density boundary condition on any combination of the six domain boundary planes, driven by a pressure differencedelta_p(in Pa) converted internally to an LBM density.
📦 ParaView sub-box output (#50)
write_paraview_subbox: writes a ParaView output restricted to a physical-space bounding box.
📏 Domain consistency check
- The
domainoperator accepts atoleranceparameter (default1e-6) for the consistency check between the prescribed bounds, resolution and grid size.
v1.0.0 — First major release
This major release consolidates all changes made to hippoLBM since v0.1.0 (versions 0.2.0, 0.3.0, 0.3.1, 0.3.2 and 1.0.0). It marks the stabilization of the API, the GPU memory model, the physical operators, and the post-processing tooling.
✨ New features
Geometry & initial/boundary conditions
- STL mesh projection onto the LBM grid (
register_rshape, #36). - Quadric support in
set_distribution(#38). - Quadric obstacles (
register_quadrics, #27).
Physical operators
lid_driven_cavityoperator together with its example (#14).set_dp_pressureto impose a pressure jump, with a test of a sphere at +1 MPa (#44).- MRT collision model (@guibar64).
Post-processing
- Plot-over-line (
plot_line_velocity, #31).
🛠️ Tooling & visualization
- Vorticity visualization script (
script/vorticity/script.py, #35). - Improved runtime logs: total density, maximum and minimum velocity via
simulation_stateandlog.
📊 Examples & analysis
- Eiffel Tower example (#40).
- Couette flow profile analysis (#18) and updated Couette example (#20).
- Lid-driven cavity example at Re 1000 (#22).
- Vortex example (#23).
⚡ Refactoring & performance
- Simplification of the executable and its environment (#42).
neumannaccepts aregionslist (#16).- Compile-time lattice coefficients
ex/ey/ez/w(#25). SimulationStateported to GPU.parallel_formoved toinclude/hippoLBM/core(#4).
♻️ Cleanup & naming conventions
clang-formatapplied to the whole codebase; member naming conventionname_(#33).
🔧 CI / Build
v0.3.2
- STL mesh obstacles (
register_rshape): arbitrary solid geometries imported from a binary or ASCII STL file and projected onto the LBM grid, with scale, rotation (quaternion), translation and Minkowski rounding. - Quadrics in
set_distribution:quadrics+transformoptions to restrict the initialization to a quadric-defined region. - Line velocity profile (
plot_line_velocity).
v0.3.1
- Quadric obstacles (
register_quadrics). - Lid-driven cavity BC (
lid_driven_cavity), generalizingcavity_z_0/cavity_z_l. - Neumann BC extended:
regionslist. - Plane velocity profile (
plane_velocity_profile). - New examples: Couette flow, lid-driven cavity at Re 1000, decaying vortex.
v0.3.0
- Macroscopic quantity checker (
check_macro_quantities). - GPU/CPU build compatibility improvements.
v0.2.0
- Log operator (
log) with MLUPS throughput, physical time, total density and min/max velocity norm. - Simulation state (
simulation_state): MPI-reduced global statistics consumed bylog. - Initial support for symmetric Couette flow via
init_double_couette.
v0.1.0 — Initial release
- D3Q19 LBM scheme with BGK collision model.
- Hybrid MPI + OpenMP parallelism with optional CUDA acceleration.
- Poiseuille and Couette flow examples.
- Neumann (Zou-He) and bounce-back boundary conditions.
- ParaView output (
write_paraview). - Spack package for user installation.