Skip to content

Lid-driven cavity

Lid-driven cavity

The classical lid-driven cavity benchmark at Reynolds number 1000: a square cavity of side \(L\) = 1 cm (400 × 400 cells, 10 cells in the periodic direction Z) whose upper wall (Y = L, plan_xz_l) moves at \(U\) = 1 m/s along X, with \(\nu\) = 10⁻⁵ m²/s: \(Re = U L / \nu = 1000\).

Deck

do_domain:
  - domain:
     bounds:    [ [0 m, 0 m, 0 m],[0.01 m, 0.01 m,  0.00025 m] ]
     cell_dims: [ 400 , 400 , 10 ]
     periodic:  [ false, false, true ]

set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1e-5  # m2.s-1
     tau: 0.7

post_stream_bcs:
  - lid_driven_cavity:  ## need to be called after bounce back
     U: [1, 0.0, 0]  ## Re : 1000   
     regions: [plan_xz_l]
  - lid_driven_cavity:  ## need to be called after bounce back
     U: [0, 0.0, 0]  ## Re : 1000   
     regions: [plan_xz_0, plan_yz_0, plan_yz_l]


collision: bgk # or bgk

global:
   simulation_print_log_freq: 100
   simulation_paraview_freq: 1000
   simulation_end_iteration: 70000
   output_directory: "LidDrivenCavityDir"

All the walls use lid_driven_cavity in post_stream_bcs: the lid with \(U\) = 1 m/s, the three fixed walls with \(U = 0\). The deck has no bounce-back plane, so replacing post_stream_bcs is safe here.

Run

./hippoLBM ../hippoLBM/example/lbm_lid_driven_cavity.msp --omp_num_threads 8

The run lasts 70,000 steps, with ParaView outputs every 1,000 steps in LidDrivenCavityDir/.

Results

The flow develops a primary recirculating vortex and secondary corner vortices. Velocity field at steady state:

Lid-driven cavity

The centerline velocity profiles are compared with the reference data of Ghia et al. [5]:

Ghia comparison