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_relaxreplacesbgkin thecollisionhook;macro_variables_couette_relaxreplacesmacro_variablesin thecompute_macro_variableshook (half-force correction of the velocity).
YAML syntax¶
| 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
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.