Skip to content

Poiseuille flow

Poiseuille

A plane Poiseuille flow between two walls at rest (Z = 0 and Z = 0.1 m), in a 0.1 m cube discretized with 30 cells per axis (\(\nu\) = 10⁻³ m²/s). Two equivalent setups are provided, differing only in how the flow is driven along X:

  • lbm_poiseuille.msp: periodic in X and Y, driven by a uniform body force Fext;
  • lbm_poiseuille_rho.msp: open in X, driven by a pressure difference imposed with the rho condition on the inlet/outlet planes.

For celerity = 1 (\(\Delta t = \Delta x\)), a body force \(F_x\) over a channel of length \(L_x\) corresponds to a pressure drop \(\Delta p = \rho_{ref} F_x L_x\), split symmetrically around the reference state: \(\pm 4.756243 \times 10^{-3}\) Pa here.

Decks

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"
do_domain:
  - domain:
     bounds:    [ [0,0,0],[0.1,0.1,0.1]]
     cell_dims: [ 30 , 30 , 30 ]
     periodic:  [ false, true, false]

set_lbm_parameters:
  - lbm_parameters:
     nuth: 1e-3

boundary_conditions:
  - neumann:
     U: [0.0,0,0]
     regions: [plan_xy_0, plan_xy_l]
  - rho:
     U: [0.0,0,0]
     regions: [plan_yz_0, plan_yz_l]
     delta_p: [4.756243e-03 kg/m/s^2, -4.756243e-03 kg/m/s^2]  # in Pascal (Pa = kg.m^-1.s^-2)

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: "PoiseuilleRhoTestDir"

The walls are imposed by a Neumann (Zou-He) condition with zero velocity. plot_line_velocity samples the velocity along a vertical line at the center of the channel every 300 steps (Profile/line_*.csv), and plane_velocity_profile writes the average profile along Z at the end.

Run

1
2
3
./hippoLBM ../hippoLBM/example/lbm_poiseuille.msp --omp_num_threads 4
./hippoLBM ../hippoLBM/example/lbm_poiseuille_rho.msp --omp_num_threads 4
python3 ../hippoLBM/script/profile/plot_line_poiseuille.py PoiseuilleTestDir/Profile

Both runs last 3,000 steps (10 s), with ParaView outputs every 100 steps in PoiseuilleTestDir/ and PoiseuilleRhoTestDir/.

Results

The velocity profile along Z is compared with the transient analytical solution (started from rest):

\[ u_x(z, t) = \frac{4 F L^2}{\nu \pi^3} \sum_{k \ge 0} \frac{\sin\left((2k+1)\pi z / L\right)}{(2k+1)^3} \left(1 - e^{-\nu (2k+1)^2 \pi^2 t / L^2}\right) \;\xrightarrow[t \to \infty]{}\; \frac{F}{2\nu}\, z (L - z). \]
Poiseuille profiles
Velocity profiles at the center of the channel (hippoLBM v1.0.2, CPU run)

The pressure-driven flow (rho) follows the analytical solution.

Body-force run (v1.0.2)

With hippoLBM v1.0.2, the body-force run gives a velocity \(1 + 1/(2\tau) \approx 1.36\) times larger than the analytical solution (\(\tau = 1.4\) here), while v1.0.0 matched it. The half-force correction of the velocity in macro_variables (introduced in v1.0.1) is not compensated by a \((1 - 1/(2\tau))\) factor in the forcing term of the collision, so the effective body force is \(F\,(1 + 1/(2\tau))\).