Working Example
The complete deck gathers all the blocks of the previous pages. It is example/lbm_poiseuille.msp: a plane
Poiseuille flow driven by a body force between two walls at rest.
| do_domain:
- domain:
bounds: [ [0,0,0],[0.1,0.1,0.1]]
cell_dims: [ 30 , 30 , 30 ]
periodic: [ true, true, false]
set_lbm_parameters:
- lbm_parameters:
Fext: [9.512485e-05,0.000000e+00,0.000000e+00]
nuth: 1e-3
boundary_conditions:
- neumann:
U: [0.0,0,0]
regions: [plan_xy_0, plan_xy_l]
analysis:
- plot_line_velocity:
line: [[0.05,0.05,0],[0.05,0.05,0.1]]
checker:
- plane_velocity_profile:
dimension: Z
global:
simulation_paraview_freq: 100
simulation_end_iteration: 3000
simulation_print_log_freq: 10
simulation_analysis_freq: 300
output_directory: "PoiseuilleTestDir"
|
Run it from the build directory:
| ./hippoLBM ../hippoLBM/example/lbm_poiseuille.msp --omp_num_threads 4
# or a short test run
./hippoLBM ../hippoLBM/example/lbm_poiseuille.msp --set-global-simulation_end_iteration 100
|
Then open PoiseuilleTestDir/ParaviewOutput/*.pvtr in ParaView, and compare the velocity profiles of
PoiseuilleTestDir/Profile/ with the analytical solution:
| python3 ../hippoLBM/script/profile/plot_line_poiseuille.py PoiseuilleTestDir/Profile
|
The tutorial discusses the results.