Skip to content

Couette profiles

These operators initialize the distribution functions at the equilibrium of a Couette velocity profile, to start a shear flow directly from its expected steady state. They are provided by the hippo_prepro plugin.

init_couette

Description

Initializes all distribution functions with the equilibrium of a linear velocity profile from U_inf (node index \(k = 0\) along dimension) to U_sup (node index \(k = L - 1\)):

\[ \mathbf{u}(k) = \mathbf{U}_{inf} + k\,\frac{\mathbf{U}_{sup} - \mathbf{U}_{inf}}{L - 1}, \qquad f_i = w_i\left(1 + 3(\mathbf{e}_i\cdot\mathbf{u}) + 4.5(\mathbf{e}_i\cdot\mathbf{u})^2 - 1.5\,\mathbf{u}\cdot\mathbf{u}\right) \]

with the velocities converted to lattice units.

YAML syntax

1
2
3
4
5
set_distributions:
  - init_couette:
     dimension: "Z"
     U_inf: [0.0, 0.0, 0.0]
     U_sup: [0.1, 0.0, 0.0]
Slot Type Default Description
U_inf Vec3d required velocity (m/s) at the lower boundary (\(k = 0\))
U_sup Vec3d required velocity (m/s) at the upper boundary (\(k = L - 1\))
dimension string required axis of the gradient: "X", "Y" or "Z"

init_double_couette

Description

Initializes the distribution functions for a symmetric (double) Couette flow: the velocity equals U at \(k = 0\), decreases linearly to zero at the midplane, and equals -U at \(k = L - 1\):

\[ \mathbf{u}(k) = \mathbf{U}\left(1 - \frac{2k}{L-1}\right). \]

YAML syntax

1
2
3
4
set_distributions:
  - init_double_couette:
     dimension: "Z"
     U: [0.001, 0.0, 0.0]
Slot Type Default Description
U Vec3d required velocity (m/s) at the lower boundary; -U is applied at the upper boundary
dimension string required axis of the gradient: "X", "Y" or "Z"

Usage example

Double Couette (lbm_prepro_double_couette)

set_distributions:
  - init_double_couette:
     U: [0.001,0,0]
     dimension: Z

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

See the Couette flow tutorial.