Skip to content

Kármán vortex street

Karman

Flow past a sphere in a channel of 1.0 × 0.2 × 0.3 m (800 × 160 × 240 cells), periodic along X and Y, between two walls at rest along Z. A body force of 1.3 m/s² along X drives the flow (\(\nu\) = 10⁻³ m²/s, \(\tau\) = 0.65); the sphere of radius 3 cm is placed slightly off-center so that the wake becomes unsteady and sheds vortices.

Deck

do_domain:
  - domain:
     bounds: [[0,0,0],[1.0,0.2,0.3]]
     cell_dims: [ 800, 160, 240 ]
     periodic: [true, true, false]

set_lbm_parameters:
  - lbm_parameters:
     Fext: [1.3 ,0.000000e+00,0.000000e+00]
     nuth: 1e-3
     tau: 0.65

set_obstacles:
  - register_solid_ball:
     id: 0
     center: [0.1001, 0.1027, 0.15023]
     radius: 0.03

collision: bgk # default model

boundary_conditions:
  - neumann:
     U: [0,0,0]
     regions: [plan_xy_l]
  - neumann:
     U: [0,0,0]
     regions: [plan_xy_0]

pre_stream_bcs:
  - wall_bounce_back

global:
   simulation_paraview_freq: 10000
   simulation_end_iteration: 1000000
   simulation_print_log_freq: 100   
   output_directory: "KarmanVortexDir"

The deck has no bounce-back plane: it sets pre_stream_bcs to wall_bounce_back only, the obstacle bounce-back.

Run

./hippoLBM ../hippoLBM/example/lbm_karman_vortex.msp

This is a long run (10⁶ steps, 30 million nodes, ParaView outputs every 10,000 steps in KarmanVortexDir/): run it on a GPU or on several MPI processes.