Cavity flow
Two closed cavities (0.1 m cube, 100 cells per axis) with bounce-back walls on all faces, driven by a moving lid on
the top plane (Z = 0.1 m) imposed with cavity_z_l .
Decks
lbm_cavity.msp lbm_cavite_wall.msp
Lid moving at 0.1 m/s along Y, \(\nu\) = 10⁻³ m²/s (Re = 10), MRT collision.
do_domain :
- domain :
bounds : [ [ 0 m , 0 m , 0 m ],[ 0.1 m , 0.1 m , 0.1 m ] ]
cell_dims : [ 100 , 100 , 100 ]
periodic : [ false , false , false ]
bounce_back_planes : [ plan_yz_0 , plan_yz_l , plan_xz_0 , plan_xz_l , plan_xy_0 , plan_xy_l ]
set_lbm_parameters :
- lbm_parameters :
Fext : [ 0 , 0 , 0 ]
nuth : 1e-3 # m2.s-1
+pre_stream_bcs :
- cavity_z_l :
U : [ 0.0 , 0.1 , 0 ]
collision : mrt # default model
global :
simulation_print_log_freq : 10
simulation_paraview_freq : 100
simulation_end_iteration : 1000
output_directory : "CavityDir"
Lid moving at 0.1 m/s along X, \(\nu\) = 10⁻⁴ m²/s (Re = 100), with a thin vertical wall obstacle at the center of
the cavity, 8 cm high.
do_domain :
- domain :
bounds : [ [ 0 , 0 , 0 ] , [ 0.1 , 0.1 , 0.1 ] ]
cell_dims : [ 100 , 100 , 100 ]
periodic : [ false , false , false ]
bounce_back_planes : [ plan_yz_0 , plan_yz_l , plan_xz_0 , plan_xz_l , plan_xy_0 , plan_xy_l ]
set_lbm_parameters :
- lbm_parameters :
Fext : [ 0 , 0 , 0 ]
nuth : 1e-4
+pre_stream_bcs :
- cavity_z_l :
U : [ 0.1 , 0.0 , 0 ]
set_obstacles :
- register_solid_wall :
id : 0
bounds : [ [ 0.048 , 0 , 0 ] , [ 0.052 , 0.1 , 0.08 ] ]
global :
simulation_paraview_freq : 25
simulation_end_iteration : 1000
simulation_print_log_freq : 10
output_directory : "CavityWithWallDir"
Note
The lid is appended to the default pre_stream_bcs with +pre_stream_bcs:, so that the bounce-back on the
domain walls (and on the obstacle) is kept.
Run
./hippoLBM ../hippoLBM/example/lbm_cavity.msp --omp_num_threads 8
./hippoLBM ../hippoLBM/example/lbm_cavite_wall.msp --omp_num_threads 8
Both runs last 1,000 steps (1 s and 0.1 s), with outputs in CavityDir/ and CavityWithWallDir/.
Results
lbm_cavity: velocity magnitude and streamlines in the plane X = 0.05 m, step 1000
lbm_cavite_wall: velocity magnitude in the plane Y = 0.05 m, step 1000 (wall in grey)
At Re = 10 the main vortex is almost symmetric. With the internal wall, the lid drives two recirculations, one on
each side of the wall, and the fluid below the top of the wall stays almost at rest: