Commit a439d0f7 authored by s.zitz's avatar s.zitz
Browse files

Some theory on equilibria

parent 8fd05fd3
Pipeline #22718 failed with stage
in 4 minutes and 55 seconds
......@@ -3,6 +3,19 @@
Computes the equilibrium distribution `dists.feq` of a given macroscopic state `mom`.
# Theory
One of the reasons why the lattice Boltzmann method became so widely spread is due to its simple assumptions.
Among them is that any system simulated with lattice Boltzmann is a system close to equilibrium.
For an ideal gas one knows that the momentum distribution is given by a maxwellian distribution with temperature T,
`` f^{eq} = \\frac{\\rho}{2\\pi T}^{D/2}\\exp{-\\frac{(\\mathbf{c}-\\mathbf{u})^2}{2T}}. ``
A similar approach can be found for the shallow water system where `` f^{eq} `` is given by
`` f^{eq} = \\frac{\\rho}{\\pi g \\rho}^{D/2}\\exp{-\\frac{(\\mathbf{c}-\\mathbf{u})^2}{g\\rnho}}. ``
Above it is assumed that `` T = \\frac{1}{2}g\\rho``, with equation of state `` P(\\rho) = \\frac{1}{2}g\\rho^2 ``.
# Arguments
- `dists::distributions`: container for the three distribution functions.
- `mom::moments`: struct that contains a macroscopic state, e.g. height and velocity.
......@@ -52,6 +65,9 @@ julia> dists.feq[:, :, 2] # Here (ci . u) = 0.0
# References
Paul Dellar and Rick Salmon did a lot of work for the shallow water lattice Boltzmann method, bellow are two of the best references
- [The lattice Boltzmann method as a basis for ocean circulation modeling](
- [Nonhydrodynamic modes and a priori construction of shallow water lattice Boltzmann equations](
See also: [`moments`](@ref), [`velocity`](@ref), [`params`](@ref)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment