NumMeth 22: Exercise 2
This commit is contained in:
@@ -0,0 +1,88 @@
|
||||
\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{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 2022/23 \hfill Exercise 2}\\
|
||||
\end{center}
|
||||
\noindent
|
||||
%
|
||||
\section*{\large Exercise 2: Thermal conduction}\vspace*{-0.0cm}
|
||||
%
|
||||
|
||||
\emph{Previous experience tells me that a tree-code exercise is too excessive\dots we just look at the Poisson equation instead.}
|
||||
|
||||
|
||||
|
||||
\medskip
|
||||
We return to the 2-dimensional Cartesian rubber duck ocean. The mad scientist
|
||||
and villain Dr. Xilef has the diabolic to to seize world domination world domination, has placed point-shaped immersion heaters in the ocean at several immersion heaters into the ocean, which heat it up with $T=1000K$. The rubber ducks, fearing for their habitat, have then set up refrigerators around the ocean, so that the edge is kept at a comfortable $T_\text{edge}= 300 K$.
|
||||
|
||||
The ocean is slowly heating up according to the thermal conduction equation
|
||||
|
||||
\begin{equation}
|
||||
\frac{\partial}{\partial t} T(\vec{x}) = a \Delta T(\vec{x})
|
||||
\end{equation}
|
||||
|
||||
until it reaches an equilibrium ($\frac{\partial}{\partial
|
||||
t}T = 0$).
|
||||
|
||||
\bigskip
|
||||
|
||||
\textbf{a)} Solve the Poisson equation with given boundary conditions for the temperature distribution in the rubber duck ocean.
|
||||
|
||||
\medskip
|
||||
Use a simple Jacobi iteration
|
||||
|
||||
\bigskip
|
||||
\textbf{b)} Use an advanced - faster - method (multigrid or FFT). Compare the convergence rate by plotting the average temperature to the last step over the run time.
|
||||
|
||||
Since the FFT method has not been discussed in great detail in the lecture here a short discussion:
|
||||
|
||||
For the Poisson equation
|
||||
$$\nabla^2 \varphi(x,y) = f(x,y)$$
|
||||
on a grid with periodic boundary conditions the Fourier transform yields
|
||||
$$-(k_x^2+k_y^2) \hat\varphi(k_x,k_y) = \hat f(k_x,k_y)$$
|
||||
which can readily be solved and transformed back. Dirichlet or von Neumann boundary conditions can be achieved when using only $\sin$ or $\cos$ (in case of Dirichlet: $\sin$ is 0 on the boundary, the solution is known up to a constant value). Discreste sine/cosine transform are readily available.
|
||||
|
||||
|
||||
|
||||
\end{document}
|
||||
%------------------------------------------------------------------------------
|
||||
Reference in New Issue
Block a user