Skip to content

Tutorials

The tutorials are the example decks of the hippoLBM repository (example/*.msp). Most of them have a short version run by ctest (see Tests).

Running an example

From the build directory:

./hippoLBM ../hippoLBM/example/lbm_poiseuille.msp --omp_num_threads 4                 # full run
./hippoLBM ../hippoLBM/example/lbm_poiseuille.msp --set-global-simulation_end_iteration 100   # a few steps

Outputs are written in the directory given by output_directory in each deck, under the current directory. The Eiffel Tower decks read stl_files/toureiffel.stl: run them from the example/ directory, or copy stl_files/ to the run directory.

Examples

Tutorial Deck(s) Features
Poiseuille flow lbm_poiseuille.msp, lbm_poiseuille_rho.msp body force Fext, pressure BC rho, line profiles
Couette flow lbm_couette.msp, lbm_couette_mrt.msp, lbm_prepro_couette.msp, lbm_prepro_double_couette.msp moving walls, BGK / MRT, Couette operators
Lid-driven cavity lbm_lid_driven_cavity.msp lid_driven_cavity, Re = 1000 benchmark
Cavity flow lbm_cavity.msp, lbm_cavite_wall.msp bounce-back planes, cavity_z_l, wall obstacle
Kármán vortex street lbm_karman_vortex.msp sphere obstacle
Parametric shapes lbm_quadrics.msp quadric obstacles
Pressure-driven flows lbm_diff_pressure.msp, lbm_diff_pressure_complex_test.msp internal walls, density initialization
Pressurized sphere in water lbm_pressure_sphere_water.msp set_dp_pressure, acoustic wave, MRT
Eiffel Tower lbm_tour_eiffel_bcs_*.msp STL obstacle, three boundary setups