Skip to content

Neumann (Zou-He velocity)

Description

The neumann operator imposes a velocity \(\mathbf{U} = (u_x, u_y, u_z)\) on one or several boundary planes with the Zou-He method: the unknown distribution functions entering the fluid are reconstructed from the known ones and the prescribed velocity, the density being deduced from mass conservation. With \(U = 0\), it is a fixed no-slip wall; with \(U \neq 0\), a moving wall (Couette flows).

It is applied after streaming, in the boundary_conditions block. The same velocity is enforced on every plane listed in regions.

Formulas on the Z planes

Z = 0 (plan_xy_0):

\[ \rho = \frac{f_{0} + f_{1} + f_{2} + f_{3} + f_{4} + f_{7} + f_{9} + f_{10} + f_{8} + 2 (f_{6} + f_{13} + f_{12} + f_{17} + f_{16})}{1 - u_z} \]
\[ n_{xz} = \frac{1}{2} (f_{1} + f_{7} + f_{9} - (f_{2} + f_{10} + f_{8})) - \frac{1}{3} \rho u_x, \qquad n_{yz} = \frac{1}{2} (f_{3} + f_{7} + f_{10} - (f_{4} + f_{9} + f_{8})) - \frac{1}{3} \rho u_y \]
\[ f_{5} = f_{6} + \frac{1}{3} \rho u_z, \quad f_{11} = f_{12} + \frac{1}{6} \rho (u_z + u_x) - n_{xz}, \quad f_{14} = f_{13} + \frac{1}{6} \rho (u_z - u_x) + n_{xz} \]
\[ f_{15} = f_{16} + \frac{1}{6} \rho (u_z + u_y) - n_{yz}, \quad f_{18} = f_{17} + \frac{1}{6} \rho (u_z - u_y) + n_{yz} \]

Z = lz (plan_xy_l):

\[ \rho = \frac{f_{0} + f_{1} + f_{2} + f_{3} + f_{4} + f_{7} + f_{9} + f_{10} + f_{8} + 2 (f_{5} + f_{11} + f_{14} + f_{15} + f_{18})}{1 + u_z} \]
\[ f_{6} = f_{5} - \frac{1}{3} \rho u_z, \quad f_{13} = f_{14} + \frac{1}{6} \rho (-u_z + u_x) - n_{xz}, \quad f_{12} = f_{11} + \frac{1}{6} \rho (-u_z - u_x) + n_{xz} \]
\[ f_{17} = f_{18} + \frac{1}{6} \rho (-u_z + u_y) - n_{yz}, \quad f_{16} = f_{15} + \frac{1}{6} \rho (-u_z - u_y) + n_{yz} \]

with the same \(n_{xz}\) and \(n_{yz}\). The X and Y planes use the same reconstruction, permuted.

YAML syntax

1
2
3
4
5
6
7
boundary_conditions:
  - neumann:
     U: [0.001, 0, 0]
     regions: [plan_xy_l]
  - neumann:
     U: [0, 0, 0]
     regions: [plan_xy_0]
Slot Type Default Description
U Vec3d required prescribed velocity (m/s)
regions [string] required planes: plan_xy_0, plan_xy_l, plan_yz_0, plan_yz_l, plan_xz_0, plan_xz_l

Usage example

Couette flow (lbm_couette)

Upper wall moving at 1 mm/s, lower wall at rest:

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

See the Couette flow tutorial.