Lattice Boltzmann

Introduction

Lattice Boltzmann

Every process occurring in nature proceeds in the sense in which the sum of the entropies of all bodies taking part in the process is increased
Second Law of Thermodynamics

But!

Boltzmann looked at the microscopic world...

Boltzmanns assumes

Most important microscopic interactions are

ideal / reversible / fully elastic

But...

That contradicts the 2nd law of Thermodynamics

Why?

Boltzmanns theory is accomplished!

Macro-irreversibility

Boltzmann's problem
macroscopic irreversibility
based on
microscopic reversibility

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Reversibility example

Quiet a deal breaker!

We believe the macroscopic world to follow the
Rules of Thermodynamics

Loschmidt's paradox

This problem is called Loschmidt's paradox, but Boltzmann "solved" it.

It's all about probability

1. There are many microstates leading to one macrostate

It's all about probability

2. A lot of microstates have high entropy

It's all about probability

3. Very few of microstates have low entropy

It's all about probability

4. A lot of them lead to higher entropy

It's all about probability

5. Very few of them lead to lower entropy

Every process occurring in nature proceeds in the sense in which the sum of the entropies [...] is nearly always increased
Boltzmann's Second Law of Thermodynamics

What's right?

Boltzmann grounds his assumptions on molecular chaos

Contraposition

Loschmidt et al.:
chaos assumption is wrong
there is order on microscale

Boltzmann advantages

Ergodicity

Inspect one particle for a long time
$$\Leftrightarrow$$
Inspect multiple particles for a short time

Lattice Boltzmann

Lattice Boltzmann

Simulation of Microstructure

Microstructure
=
Particle Movement...

Particle Movement...

With microscale laws

No! Macroscopic Model

Smoothed Particle Hydrodynamics (SPH)

Particles

Smoothed Particle Hydrodynamics (SPH)

Particles
Kernel / Neighborhood

Smoothed Particle Hydrodynamics (SPH)

Particles
Kernel / Neighborhood
Macroscopic Model

Smoothed Particle Hydrodynamics (SPH)

Particles
Kernel / Neighborhood
Macroscopic Model
Fluid / Gas

Smoothed Particle Hydrodynamics (SPH)

Particles
Kernel / Neighborhood
Macroscopic Model
Fluid / Gas

Lattice Gas

Works differently...

( Lattice Gas = Lattice Boltzmann prototype )

No Free Movement

Lattice Gas discretizes position and velocity drastically

The Lattices

2D Rectangular Lattice (D2Q4)
2D Hex Lattice (D2Q6)
3D Lattice (D2Q26)
3D Neighbors

Discret Velocities

There are only a few possible velocities

2D Lattice Velocities

Exactly 4 velocities possible!

HPP Method (1973)

The first Lattice Gas prototype

Pauli Principle

HPP uses a kind of exclusion principle like for electrons in atoms

1 Particle per Direction

$$\Leftrightarrow$$

Simple Propagation



    

Propagation Operator


$\mathcal{P}($$)$=$\ldots$

Collisions

Collision Operator


$\mathcal{C}($$)$=, $\mathcal{C}($$)$=

Collision remark

It is unclear which particle is which after a collision.
But we assume Ergodicity!

The Whole HPP

$$S_{t+1} = E S_t = \mathcal{P}\mathcal{C} S_t$$

E = time evolution Operator
St = Lattice State at time t

"Mean" Process

Waves in HPP

HPP Problems

HPP Improvements

Several methods try to solve the diseases of HPP

FHP Method (1986)

Very similar to HPP but with a hex grid

FHP Hexgrid

6 different velocities

FHP Propagation

$\mathcal{P}($$)$=$\ldots$

FHP Collision


$\;\;\mathcal{C}($$)$=

FHP Collision


$\;\;\mathcal{C}($$)$=

FHP Collision


$Pr(\mathcal{C}($$)$=$) = 0.5$ 

FHP Collision


$Pr(\mathcal{C}($$)$=$) = 0.5$, $Pr(\mathcal{C}($$)$=$) = 0.5$

Diseases of Lattice Gas

All LG have diseases like

The worst

Collisions Operator determines macroscropic model

The worst

Finite (very limited!) number of possible collision Operators

The worst

Finite set of possible Macroscopic models

The worst

In General:
No possibility to simulate fluid with given viscosity

Lattice Boltzmann

Lattice Boltzmann

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Discrete "Master"-Equation for all Lattice methods

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Lattice Boltzmann Equation (LBE)


$$n_i(\mathbf{x} + \mathbf{c}_i \Delta t, t_0+\Delta t) = n_i(\mathbf{x},t_0) + \Delta_i$$

Advection ?

Advection

$$\frac{\partial f}{\partial t} + \mathbf v \nabla f = 0$$

Advection

$$\frac{\partial f}{\partial t} = - \mathbf v \nabla f$$
Function change over time
=
Function change in (–) velocity direction.

Advection

Advection

Directional Derivative = change of function in $\mathbf v$ direction.

Boltzmann Equation

$$\frac{\partial f}{\partial t} + \mathbf v \nabla f = Q = \left. \frac{\partial f}{\partial t} \right|_{Stoss}$$

Results in Navier-Stokes for certain Q

Lattice Boltzmann equation $$\approx$$ Discretization of
Boltzmann equation

Stoßzahlansatz

Boltzmann used the Stoßzahlansatz in his work for the collisions

Twoards Equilibrium

Equilibrium is the state in which all actions equal out

Stoßzahl Equilibrium

$$\left. \frac {\partial f} {\partial t} \right|_{Stoss} = 0$$

Collisions have no net effect!

Maxwell distribution

The maximum entropy equilibrium...

Collision term approximation

Usually $\left. \frac {\partial f} {\partial t} \right|_{Stoss}$ is aproximated

Important collisions

Navier-Stokes via LB requires a lot of collisions scenarios!

Collision Frequency will determine viscosity

Lattice Boltzmann method

At last a fully working LBM method without "diseases"

3 Parts of LBM

D2Q9

One cell with 9 velicoty types with continuous values

D2Q9

One cell with 9 velicoty types with continuous values
The middle one has zero speed

D2Q9

Continuous values are indicated by $F_i$

Marcoscopic Properties

LBM Propagation

$\mathcal P($ $)$ = , $\ldots$

Conserves mass and momentum

LBM Collision

$\mathcal C($ $)$ =

Conserves mass and momentum

LBM Collision

$\mathcal C($ $)$ =

Conserves mass and momentum

LBM Collision

$\mathcal C($ $)$ =

Conserves mass and momentum

LBM Collision

$\mathcal C($ $)$ =

Conserves mass and momentum

LBM Collision

$\mathcal C($ $)$ =

Conserves mass and momentum

That's bad!

That's bad!

Infinite choices!

No, that's good

Viscosity and macroscopic model can define collision Operator

D2Q9 in equilibrium

$$F_i(\mathbf x,t) = F_j(\mathbf x,t), \forall i,j \quad \text{?}$$

Nope!

Nope!

We have a multispeed discretisation

Nope!

We want a Maxwell-Distribution, globally!

Nope!

We want a Maxwell-Distribution, globally!

Equilibrium Goal

Find local "equilibrium" "near"

$F_i(x,t)$

Near Equilibrium assumption

$$F_i(x,t) = W_i + f_i(x,t)$$
We are usually near a global equilibrium $W_i$
$$f_i(x,t) << W_i$$

Collisions $$\downarrow$$ Local Equilibrium

Transport + Collision $$\downarrow$$ Global Equilibrium

3 Steps

1. Calculate $W_i$

3 Steps

2. Calculate "Best" Local equilibrium

3 Steps

3. Use Collision approximation to reach global equilibrium

Global Equilibrium

Find discrete set of $W_i$ that are of Maxwell distribution

$W_i$ idea

Use velocity moments to create discrete version of Maxwell distribution

$$W_i \sim \rho_0 M$$

M is a Maxwell distribution with density function $m(\mathbf v)$

Zeroth Moment

$$\sum_i W_i = \rho_0$$

First Moment

$$\sum_i W_i c_j = 0$$

Second Moment

$$\sum_i W_i c_j c_k = \int \rho_0 m_B(\mathbf v) \mathbf v_j \mathbf v_k \; d\mathbf v$$

Second Moment

Fourth Moment

...

Global Equilibrium

\begin{align} W_0 &= \frac{4}{9} \rho_0 \\ W_{1,3,5,7} &= \frac{1}{9} \rho_0 \\ W_{2,4,6,8} &= \frac{1}{36} \rho_0 \\ \end{align}

Global Equilibrium


Local Equilibrium

Simply $W_i$ for other values of $\rho$ and $\mathbf v$?

No!

Local Equilibrium $\neq$ Maxwellian Distribution

Local Maximum Entropy

Maxwellian = global maximum entropy

Local Equilibrium should tend to global Equilbirium

Best Local Equilibrium


Best Local Equilibrium


Best Local Equilibrium


Best Local Equilibrium


4 Steps

1. Define Line of local Equilibria

4 Steps

2. Define Distance Function

(In Terms of Entropy)

4 Steps

3. Merge those two into one

4 Steps

4. Find Optimum

BGK approximation

The collisions... at last

BGK idea

1. Calculate distance to equilibrium

$$F_i^{(0)}(\mathbf x,t) - F_i(\mathbf x,t)$$

BGK idea

2. Estimate collision time \(\tau\)

BGK idea

3. Calculate collision frequency \(\omega = \frac{\Delta t}{\tau}\)

BGK idea

4. Change is proportional to frequency and distance

BGK approximation

$$\left. \frac{\partial f}{\partial t} \right|_{Stoss} \approx \omega \left[ F_i^{(0)}(\mathbf x,t) - F_i(\mathbf x,t)\right]$$

Full FBM (given $\rho, \mathbf v$ for every cell)

  1. Initialize Cells with $F_i^{(0)}(\rho,\mathbf v)$
  2. Handle collisions with BGK
  3. Propagate
  4. Calculate new $F_i^{(0)}$ values and go to 2.

How good is it?

Very good!

How good is it?

Very good!

Always conserves energy!

How good is it?

Very good!

Always conserves energy!
(no fake energy loss like macroscopic models)

Navier Stokes?

Yes!

Champan Enskog Multiscale analysis.

LBM with immersed boundary method

Thank you for your attention!

Questions?

Stoßzahlansatz

\begin{align*} \left.{\frac {\partial f}{\partial t}}\right|_{{\mathrm {Stoss}}}=&\int W({\mathbf {v}}_{1},{\mathbf {v}}_{2},{\mathbf {v}}_{3},{\mathbf {v}}) \\& \left\{f({\mathbf {x}},{\mathbf {v}}_{1},t)f({\mathbf {x}},{\mathbf {v}}_{2},t) \right. - \\ & \left . f({\mathbf {x}},{\mathbf {v}}_{3},t)f({\mathbf {x}},{\mathbf {v}},t)\right\}{\text{d}}{\mathbf {v}}_{1}{\text{d}}{\mathbf {v}}_{2}{\text{d}}{\mathbf {v}}_{3} \end{align*}

Stoßzahlansatz

Stoßzahlansatz

Stoßzahlansatz with HPP

We simply get

Stoßzahlansatz with HPP

We simply get

Stoßzahlansatz with HPP

We simply get

Stoßzahlansatz with HPP

We simply get

Stoßzahlansatz with FHP

We simply get

Further Reading

Local Equilibrium

\begin{align} F_i^{(0)} =& \frac{W_i}{\rho_0}\left (\rho + \frac{m}{k_B T} \mathbf c_i \mathbf j + \right. \\ &\left.\frac{m}{2 \rho k_B T} \left[ \frac{m}{k_B T} (\mathbf c_i \mathbf j)^2 - \mathbf j^2 \right]\right) \end{align}

Viscosity

$$\nu = \frac{c^2}{3}\left(\tau - \frac{\Delta t}{2} \right)$$

BE with External Forces

$$\frac{\partial f}{\partial t} + v \nabla f + \frac{\mathbf K}{m}\frac{\partial f}{\partial \mathbf v} = Q$$

Comparison with Spectral Method

Comparison with Spectral Method

Comparison with Spectral Method

Comparison with Spectral Method