Skip to content

Couette Driving Force

The optional hippo_couette plugin provides a body-force alternative to drive a Couette (linear shear) flow along Z: a position-dependent relaxation force pulls the local velocity towards the target linear profile in the whole bulk, instead of imposing it only at the boundary planes. It is built by default; disable it with -DONIKA_BUILD_hippo_couette=OFF.

At node index \(k\) along Z (\(L_z\) nodes), the force is:

\[ \mathbf{F}_{ext}(k) = \frac{\mathbf{u}_{target}(k) - \mathbf{u}_{local}}{\tau}, \qquad \mathbf{u}_{target}(k) = \mathbf{U}_{inf} + k\,\frac{\mathbf{U}_{sup} - \mathbf{U}_{inf}}{L_z - 1}. \]

Two operators must be used together, with the same U_inf / U_sup:

  • bgk_couette_relax replaces bgk in the collision hook;
  • macro_variables_couette_relax replaces macro_variables in the compute_macro_variables hook (half-force correction of the velocity).

YAML syntax

1
2
3
4
5
6
7
8
9
compute_macro_variables:
  - macro_variables_couette_relax:
     U_inf: [0.0, 0.0, 0.0]
     U_sup: [0.001, 0.0, 0.0]

collision:
  - bgk_couette_relax:
     U_inf: [0.0, 0.0, 0.0]
     U_sup: [0.001, 0.0, 0.0]
Slot Type Default Description
U_inf Vec3d required target velocity (m/s) at the lower boundary (\(k = 0\))
U_sup Vec3d required target velocity (m/s) at the upper boundary (\(k = L_z - 1\))

Note

bgk_couette_relax always acts along Z. It is a BGK collision: it cannot be combined with mrt.

Usage example

lbm_prepro_couette

do_domain:
  - domain:
     bounds:    [ [0,0,0],[0.1,0.1,0.1] ]
     cell_dims: [ 100 , 100 , 100 ]
     periodic:  [ true, true, false ]

#set_distributions:
#  - init_couette:
#     U_inf: [0,0,0]
#     U_sup: [0.001,0,0]
#     dimension: Z

set_lbm_parameters:
  - lbm_parameters:
     nuth: 1e-2
     celerity: 1.0

compute_macro_variables:
  - macro_variables_couette_relax:
     U_inf: [0,0,0]
     U_sup: [0.001,0,0]

collision:
  - bgk_couette_relax:
     U_inf: [0,0,0]
     U_sup: [0.001,0,0]

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

global:
   simulation_paraview_freq: 10
   simulation_end_iteration: 200
   simulation_print_log_freq: 1
   output_directory: "PreProCouetteDir"

See the Couette flow tutorial.

To start a Couette flow from its steady state rather than from rest, see init_couette and init_double_couette.