Skip to content

Pressure-driven flows

Two closed boxes in which a high-density region, initialized on the left with set_distribution (value: 1.5), drives the flow through internal walls (register_solid_wall). All the domain planes are bounce-back walls (except the periodic Y planes of the second deck).

Warning

value: 1.5 is a 50 % over-density in lattice units, i.e. a very sharp pressure jump. For a physical pressure perturbation, use set_dp_pressure and, to smooth the jump, set_dp_pressure_gradient.

Opening in a wall (lbm_diff_pressure)

A 0.1 m cube (100 cells per axis, \(\nu\) = 10⁻⁴ m²/s) split at X = 0.05 m by four walls that leave a 2 × 2 cm opening at the center.

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

set_obstacles:
  - register_solid_wall:
     id: 0
     bounds: [[0.048,0,0.06],[0.052,0.1,0.1]]
  - register_solid_wall:
     id: 1
     bounds: [[0.048,0,0],[0.052,0.1,0.04]]
  - register_solid_wall:
     id: 2
     bounds: [[0.048,0.06, 0],[0.052,0.1,0.1]]
  - register_solid_wall:
     id: 3
     bounds: [[0.048,0,0],[0.052,0.04, 0.1]]

set_distributions:
  - set_distribution:
     value: 1.5
     bounds: [[0,0,0], [0.048,1,1]]

global:
   simulation_paraview_freq: 100
   simulation_end_iteration: 1000
   simulation_print_log_freq: 10
   output_directory: "GradientPressureTestDir"
./hippoLBM ../hippoLBM/example/lbm_diff_pressure.msp --omp_num_threads 8
P step 200
Pressure in the plane Y = 0.05 m, step 200
U step 1000
Velocity magnitude in the plane Y = 0.05 m, step 1000: jet through the opening

(hippoLBM v1.0.2, CPU run.) Earlier visualizations of the same case:

pressure

pressure

Complex geometry (lbm_diff_pressure_complex_test)

A finer grid (400 cells per axis, 64 million nodes), periodic along Y, with eight walls creating narrow channels and mixing zones along X.

do_domain:
  - domain:
     bounds:    [ [0,0,0],[0.1,0.1,0.1] ]
     cell_dims: [ 400, 400, 400 ]
     periodic:  [ false, true, false ]
     bounce_back_planes: [plan_yz_0, plan_yz_l, plan_xy_0, plan_xy_l]


set_lbm_parameters:
  - lbm_parameters:
     Fext: [0,0,0]
     nuth: 1e-4

set_obstacles:
  - register_solid_wall:
     id: 0
     bounds: [[0.024,0,0.06],[0.026,0.1,0.1]]
  - register_solid_wall:
     id: 1
     bounds: [[0.024,0,0],[0.026,0.1,0.04]]
  - register_solid_wall:
     id: 2
     bounds: [[0.034,0,0.025],[0.036,0.1,0.075]]
  - register_solid_wall:
     id: 3
     bounds: [[0.049,0,0.06],[0.051,0.1,0.1]]
  - register_solid_wall:
     id: 4
     bounds: [[0.049,0,0],[0.051,0.1,0.04]]
  - register_solid_wall:
     id: 5
     bounds: [[0.068,0,0.0355],[0.072,0.1,0.065]]
  - register_solid_wall:
     id: 6
     bounds: [[0.085,0,0.02],[0.1,0.1,0.03]]
  - register_solid_wall:
     id: 7
     bounds: [[0.085,0,0.07],[0.1,0.1,0.08]]

set_distributions:
  - set_distribution:
     value: 1.5
     bounds: [[0,0,0], [0.024,1,1]]

global:
   simulation_paraview_freq: 2500
   simulation_end_iteration: 25000
   simulation_print_log_freq: 100   
   output_directory: "TestDiffPressurWithWallsDir"   
./hippoLBM ../hippoLBM/example/lbm_diff_pressure_complex_test.msp

The run lasts 25,000 steps, with ParaView outputs every 2,500 steps: run it on a GPU or on several MPI processes.

complex geometry