diff --git a/nummeth-ws23/exercises/lbm-uebung.pdf b/nummeth-ws23/exercises/lbm-uebung.pdf new file mode 100644 index 0000000..878a09c Binary files /dev/null and b/nummeth-ws23/exercises/lbm-uebung.pdf differ diff --git a/nummeth-ws23/exercises/lbm.pdf b/nummeth-ws23/exercises/lbm.pdf new file mode 100644 index 0000000..2bec14f Binary files /dev/null and b/nummeth-ws23/exercises/lbm.pdf differ diff --git a/nummeth-ws23/exercises/uebung9.tex b/nummeth-ws23/exercises/uebung9.tex new file mode 100644 index 0000000..8c3010f --- /dev/null +++ b/nummeth-ws23/exercises/uebung9.tex @@ -0,0 +1,92 @@ +\documentclass[12pt,a4paper]{uebungen} +\usepackage{german} +\usepackage[utf8]{inputenc} +\usepackage{epsfig} +\usepackage[amssymb]{SIunits} +\usepackage{wrapfig} +\usepackage{graphics} +\usepackage{amsfonts} +\usepackage{amssymb} +\usepackage{amsmath} +\usepackage{url} +\usepackage{pgf} +\usepackage{listings} +\lstset{language=[ANSI]C++,basicstyle=\ttfamily,commentstyle=\itshape, + keywordstyle=\bfseries,extendedchars=true,backgroundcolor=\color{gray}} + +%------------------------------------------------------------------------------ +%\graphicspath{{../../../GALLERY/}} +%------------------------------------------------------------------------------ +\setlength{\topmargin}{-2.5cm} +\setlength{\textheight}{26.0cm} +\setlength{\textwidth}{17cm} +\setlength{\oddsidemargin}{-0.5cm} +\setlength{\evensidemargin}{-0.5cm} +\setlength{\parskip}{0pt} +\setlength{\parindent}{0pt} +\pagestyle{empty} +%------------------------------------------------------------------------------ +\newcommand{\vt}[1]{\vec{#1}} +\newcommand{\mt}[1]{\underline{\underline{#1}}} +\newcommand{\dt}[1]{\left\vert\underline{\underline{#1}}\right\vert} +\newcommand{\mo}{\!\!\!\!\!-1} +%------------------------------------------------------------------------------ +\def\bbbr{{\rm I\!R}} +%------------------------------------------------------------------------------ +\begin{document} +%------------------------------------------------------------------------------ +\thispagestyle{myheadings} +\begin{center} +{\bf \underline{\Large Exercises in ``Numerical Methods in Plasma Astrophysics''}}\\ +%\hfill\\ +%{\bf \large }\\ +\hfill\\ +{\bf \large Winter 2023/24 \hfill Exercise 9}\\ +\end{center} +\noindent +% +\section*{\large Exercise 9: Lattice-Boltzmann simulations}\vspace*{-0.0cm} +% +After all the physically correctly derived and numerically unimaginable impractical methods of hydrodynamic simulation, now something easy to implement and actually works properly: a Lattice-Boltzmann method in 2D. + +Given is a 2-dimensional fluid volume (periodic boundary conditions in horizontal, reflecting edges in vertical direction), which is moving with a constant velocity $\vec{u} = 0.3 c_s \cdot \vec{e_x}$ flowing to the right. This flow meets a (one-dimensional, line-shaped, reflecting) obstacle. + +\begin{center} + \includegraphics[height=6cm]{lbm-uebung.pdf} + \includegraphics[height=6cm]{lbm.pdf} +\end{center} + +The distribution function of the liquid is divided by the ``D2Q9-method'' in into 9 discrete parts at each point, each of which is subjected to a movement into the +respective neighbouring cell (and itself). + +A time step consists of only three substeps: +\begin{itemize} + \item Finding the equilibrium distribution function $f^\text{eq}$ of each cell. + \item Relaxation of the phase space fractions to this distribution function: + + \begin{equation} + f_i^{'t}(\vec{x}) = f_i^{t}(\vec{x}) + \frac{1}{\tau} \cdot \left( f_i^{eq}(\vec{x}) - f_i^t(\vec{x}) \right)\nonumber + \end{equation} + + \item Propagation of flows + \begin{equation} + f_i^{t+1}(\vec{x} + \vec{e}_i) = f_i^{'t}(\vec{x}) + \end{equation} +\end{itemize} + + + +\bigskip +\textbf{a)} Simulate the flow behaviour around the obstacle. Does a vortex street form if you place the obstacle exactly in the middle of the flow? +of the flow? How about if you move the obstacle up or down? + +Sensible values for $\tau$ are around 2, in order to still recognise a structure of vortices even at low resolution. Also compare the behaviour at higher and lower values of $\tau$. + +\textbf{b)} Add a gravity term. How does the flow now behave with a symmetrically placed obstacle? + +\bigskip + +\textbf{Bonus:} Anyone simulating the flow around a more or less realistic rubber duck shape will be awarded a rubber duck! + +\end{document} +%------------------------------------------------------------------------------