LBM Parameters¶
The lbm_parameters operator, called in the set_lbm_parameters hook, converts the physical parameters into lattice
units.
Parameters' description
| Property | Type | Default | Description |
|---|---|---|---|
nuth |
float |
1e-4 |
kinematic viscosity (m²/s) |
avg_rho |
float |
1000.0 |
reference density (kg/m³), \(\rho_{LBM} = 1\) |
Fext |
Vec3d |
[0, 0, 0] |
body force per unit mass (m/s²) |
celerity |
float |
1.0 |
lattice celerity \(c = \Delta x / \Delta t\) (m/s), used when neither tau nor dt is given |
tau |
float |
— | relaxation time (exclusive with dt) |
dt |
float |
— | time step (s) (exclusive with tau) |
The time step \(\Delta t\), the lattice viscosity \(\nu_{LBM}\) and the relaxation time \(\tau\) are linked by
One of the three quantities tau, dt or celerity fixes the others:
\(\Delta t = \Delta x^2 (\tau - 1/2) / (3\nu)\). Recommended: \(\tau\) directly controls the numerical stability.
\(\Delta t = \Delta x / c\), then \(\tau = 3 \nu_{LBM} + 1/2\).
\(\tau = 3 \nu \Delta t / \Delta x^2 + 1/2\). Possible, but not recommended.
Warning
tau and dt are mutually exclusive: lbm_parameters aborts if both are given. Keep \(\tau\) above \(1/2\)
(and preferably not too close): the BGK scheme becomes unstable when \(\tau \to 1/2\).
The computed parameters are printed at startup (physical and lattice values of Fext, celerity, dtLB, nu,
tau).
The collision model is chosen with the collision hook (BGK by default):
See Numerical Scheme.