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 forceFext;
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.
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-3boundary_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:Zglobal:simulation_paraview_freq:100simulation_end_iteration:3000simulation_print_log_freq:10simulation_analysis_freq:300output_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.
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).
\]
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))\).