NumMeth-22: Mehr Lattice Boltzmann

This commit is contained in:
2023-01-09 11:26:41 +01:00
parent dadb133dcc
commit 020d291e1e
2 changed files with 79 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

+79 -4
View File
@@ -6316,6 +6316,14 @@ While this technique is rarely used for large scale astrophysical plasma, it is
\begin{minipage}[t]{0.49\textwidth} \begin{minipage}[t]{0.49\textwidth}
The Boltzmann equation is discretized in order to solve it. A grid in position space is introduced, as well as in velocity space. A two-dimensional space could be discretized using the D2Q9 as shown in this example (details are given in the next section). In the figure the points are position space points, while the arrows represent the probabilities of velocities that are associated with the fluid particle at the grid position. The Boltzmann equation is discretized in order to solve it. A grid in position space is introduced, as well as in velocity space. A two-dimensional space could be discretized using the D2Q9 as shown in this example (details are given in the next section). In the figure the points are position space points, while the arrows represent the probabilities of velocities that are associated with the fluid particle at the grid position.
A fluid particle can move within one time step into an adjacent cell of the square grid or stay where it is. This means it can have nine possible velocities $\vec {c}}_{i}$ where the index $i=0,\dots,8$ marks the direction.
The algorithm can be split into two steps, with fixed but arbitrary sequence:
\begin{itemize}
\item Collision step: The distribution of particles is changed by collisions (towards a Maxwellian)
\item Streaming step: Particles move with their respective velocity
\end{itemize}
\end{minipage}% \end{minipage}%
\hfill \hfill
\begin{minipage}{0.49\textwidth} \begin{minipage}{0.49\textwidth}
@@ -6326,12 +6334,79 @@ The Boltzmann equation is discretized in order to solve it. A grid in position s
\end{minipage} \end{minipage}
Um die Boltzmanngleichung zu lösen, wird sie diskretisiert. Die Diskretisierung erfolgt durch Einführung eines Gitters im Ortsraum, wodurch auch die Geschwindigkeitsrichtungen diskretisiert werden. Somit ist der ganze Phasenraum diskretisiert. Ein zweidimensionaler Raum lässt sich beispielsweise mit dem hier gezeigten D2Q9-Modell diskretisieren. In der Abbildung stellen die Punkte Punkte im Ortsraum dar, während die Pfeile darstellen, wie wahrscheinlich die Geschwindigkeit der Teilchen, die einem Punkt zugeordnet sind in die Richtung des Pfeiles am jeweiligen Punkt auftritt. Ein Fluidpartikel kann pro Zeitschritt an gleicher Stelle bleiben oder sich in den jeweils angrenzenden Zellen des quadratischen Gitters bewegen. Er besitzt daher neun mögliche Geschwindigkeiten c → i {\displaystyle {\vec {c}}_{i}}, wobei der Index i = 0 , … , 8 {\displaystyle i=0,\ldots ,8} die Richtung kennzeichnet. \section{Boltzmann transport equation}
Der Algorithmus lässt sich in zwei Teilschritte einteilen, deren Reihenfolge fest, aber beliebig ist: The BTE describes the time evolution of the probability density $f(\vec v,\vec r,t)$ for finding a molecule with mass $m$ and velocity $\vec v$ at position $\vec r$ as a funtion of time $t$. The moments of this probability density define the mass density $\rho(\vec r,t)$, the momentum density $\vec j(\vec r,t)$ and the temperature $T(\vec r, t)$ in $D$-dimensional space
\begin{align}
\rho(\vec r,t) &= \int \dd^D v f(\vec v,\vec r, t)\\
\vec j(\vec r,t) &= \rho(\vec r,t)\vec u(\vec r,t) = m\int\dd^D v \vec v f(\vec v,\vec r, t)\\
k_B T(\vec r,t) &= \frac{m^2}{D \rho(\vec r,t)} \int \dd^D v (\vec v - \vec u(\vec r,t)) f(\vec v,\vec r, t)
\end{align}
where we have defined the average velocity $\vec u(\vec r, t)$ at position $\vec r$. We have assumed a monoatomic system with molecules of mass $m$.
The BTE describes the total time-rate of change of this probability distribution, $\dd f/\dd t$. We know that for large times $t$ it must relax towards statistical equilibrium, given by the Maxwell velocity distribution function
\begin{align}
f^\text{eq}(\vec v, \rho, \vec u, T) = \frac{\rho}{m}\left( \frac{m}{2\pi k_B T} \right)^{D/2}\exp\left( -\frac{m(\vec v - \vec u)^2}{2 k_B T} \right)
\end{align}
A common approximation is to assume relaxation of $f$ towards $f^\text{eq}$ with a single
characteristic time $\tau$ , as suggested by Bhatnagar, Gross, and Krook (BGK) in 1954
\begin{align}
\diff{f(\vec v,\vec r, t)}{t} = -\frac{f(\vec v,\vec r, t) - f^\text{eq}(\vec v, \rho(\vec r,t), \vec u(\vec r,t), T(\vec r,t))}{\tau}\label{eq:lbm5}
\end{align}
Eq. \eqref{eq:lbm5} is the BGK-Boltzmann equation. Note that the total differential of $f$ is
\begin{align}
\diff{f}{t} &= \frac{\vec F(\vec r)}{m} \diffp{f(\vec v,\vec r, t)}{\vec v} + \vec v\diffp{f(\vec v,\vec r, t)}{\vec r} + \diffp{f(\vec v,\vec r, t)}{t}
\end{align}
where $\vec F(\vec r)$ is an external force acting on the molecules.
We will remain within the context of this single (BGK) relaxation time approximation, but modern developments of the method aim at introducing multiple relaxation times, for example by relaxing the cumulants of $f$ individually.
\subsection{The Lattice Boltzmann Method in two dimensions}
The BTE is discretized in space, velocity and time. Discretizing Eq. \eqref{eq:lbm5} on a regular
(square) lattice in space is straightforward. However, we also require a suitable
discretization of velocity space and the time step. Both are chosen such that the
distance between interpolation points in velocity space multiplied by the time step
equals the distance between points on the spatial lattice; in other words, a molecule
traveling on the spatial lattice travels between integer number of lattice points
during one time step.
The particular realization of the velocities used by us is shown in Fig. 1a. The
velocity set contains 9 directions. Each direction is assigned the index shown in
Fig. \ref{fig:lbm1}. Direction 0 zero hence describes the population of molecules at rest. This
specific discretization in two-dimensional space ($D = 2$) with nine directions is
commonly denoted by D2Q9.
\begin{figure}
\begin{center}
\pgfimage[width=.8\textwidth]{fig_chapter9/lbm1}
\end{center}
\caption{Discretization of the BTE. (a) Discretization of velocity space into
nine directions. The numbers uniquely identify the direction. (b) Regular twodimensional
lattice used for the spatial discretization}
\label{fig:lbm1}
\end{figure}
The discrete velocities are therefore given by the directions to the eight neighbors
divided by the time step. We have nine velocity vectors $c_i$, with $i = 0,\dots,8$ for each
direction $i$. We now also require the occupation numbers for these nine directions.
The probability distribution $f(\vec r, \vec v)$ is hence represented by nine discrete $f_i(\vec{x}_j , t)$ where $\vec{x}_j$ is the discrete lattice point and $i$ denotes the direction. Note that the moments of the probability density become
\begin{align}
\rho(\vec{x}_j,t) &= \sum_i f_i(\vec{x}_j,t)\\
\vec{u}(\vec{x}_j,t) &= \frac{1}{\rho(\vec{x}_j,t)} \sum_i \vec{c}_i f_i(\vec{x}_j,t)
\end{align}
where $\rho(\vec{x}_j,t)$ is now the number density, i.e. we assume unit molecular mass.
The discretized BGK-Boltzmann equation then reads
\begin{align}
f_i(\vec{x}_j + \vec{c}_i\cdot \Delta t, t+\Delta t) = f_i(\vec{x}_j,t) - \omega(f_(\vec{x}_j,t) - f_i^\text{eq}(\vec{x}_j,t)
\end{align}
% https://publikationen.uni-tuebingen.de/xmlui/bitstream/handle/10900/87663/bwHPC2018-25-Pastewka-Lattice_Boltzmann_with_Python.pdf?sequence=1&isAllowed=y
\section{Numerical algorithm}
Kollisionsschritt
Strömungsschritt
\bibliographystyle{natdin} \bibliographystyle{natdin}