Skip to content

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_planes parameter in domain: declares which outer boundary planes receive a no-slip condition.
  • New add_bounce_back_bcs operator: re-applies the bounce-back configuration after a restart (read_dump).
  • pre_bounce_back, post_bounce_back and wall_bounce_back are 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 with set_dp_pressure. See set_dp_pressure_gradient.
  • set_dp_pressure: new inside slot (default true); with inside: false the 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.msp and regression tests regression_lbm_couette_mrt and regression_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_pressure and write_paraview_subbox: bounds are 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_quantities broadcasts its verdict to all ranks; log and print_domain only print on rank 0.
  • lbm_parameters: defining both tau and dt is now an error (it was a warning, and tau was 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 >= 0 is the id of an obstacle.
  • check_marco_quantities.cpp renamed check_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 via simulation_dump_freq in the global block.
  • read_dump: restores a simulation from a checkpoint. Replaces the do_domain block on restart.
  • check_dump: inspects and validates a checkpoint file without running any time steps.
  • New global option display_last_output: true to 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 from U_inf to U_sup along a chosen axis.
  • init_double_couette: symmetric shear initialization (U at the bottom, -U at 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 of bgk_couette_relax, replaces macro_variables.

🧭 Density / pressure boundary condition (#47)

  • rho operator: enforces a pressure/density boundary condition on any combination of the six domain boundary planes, driven by a pressure difference delta_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 domain operator accepts a tolerance parameter (default 1e-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_cavity operator together with its example (#14).
  • set_dp_pressure to 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_state and log.

📊 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).
  • neumann accepts a regions list (#16).
  • Compile-time lattice coefficients ex/ey/ez/w (#25).
  • SimulationState ported to GPU.
  • parallel_for moved to include/hippoLBM/core (#4).

♻️ Cleanup & naming conventions

  • clang-format applied to the whole codebase; member naming convention name_ (#33).

🔧 CI / Build

  • CUDA CI (#9), spack.yml (#11).
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 + transform options 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), generalizing cavity_z_0 / cavity_z_l.
  • Neumann BC extended: regions list.
  • 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 by log.
  • 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.