-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadm-bssn-plots.tex
64 lines (58 loc) · 2.14 KB
/
adm-bssn-plots.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
\def\Date{2 Jun 2024}
\documentclass[12pt]{article}
\usepackage[papersize={297mm,210mm},hmargin=2cm,tmargin=1.0cm,bmargin=1.5cm]{geometry}
\usepackage{cdblatex}% only needed if using cdblatex macros
\usepackage{pgfplots}
\usepackage{adm-bssn-plots}
\begin{document}
% =======================================================================================
\section*{Kasner evolution}
\pgfplotsset{compat=newest}
\pgfplotsset{width=0.45\textwidth,height=0.30\textwidth}
\begin{tabular}{cc}
\begin{tikzpicture}
\begin{axis}
[xmin= 0.5, xmax=11.5,
title={\bf Metric components},
xlabel=$t$, ylabel={$g_{xx}, \> g_{zz}$},
grid=major, grid style={dashed,gray!30},
legend entries = {$g_{xx}$, $g_{zz}$},
legend pos = north west]
\addplot[blue] table [x index=0, y index=1]{adm/code/results/history.txt};
\addplot[red] table [x index=0, y index=3]{adm/code/results/history.txt};
\end{axis}
\end{tikzpicture}
&
\begin{tikzpicture}
\begin{axis}
[xmin= 0.5, xmax=11.5,
title={\bf Extrinsic curvatures},
xlabel=$t$, ylabel={$K_{xx}, \> K_{zz}$},
grid=major, grid style={dashed,gray!30},
legend entries = {$K_{xx}$, $K_{zz}$}]
\addplot[blue] table [x index=0, y index=4]{adm/code/results/history.txt};
\addplot[red] table [x index=0, y index=6]{adm/code/results/history.txt};
\end{axis}
\end{tikzpicture}\\
\begin{tikzpicture}
\begin{axis}
[xmin= 0.5, xmax=11.5,
title={\bf Hamiltonian},
xlabel=$t$, ylabel={$\cal H$},
grid=major, grid style={dashed,gray!30},
legend entries = {ADM, BSSN}]
\addplot[red] table [x index=0, y index=7]{adm/code/results/history.txt};
\addplot[blue] table [x index=0, y index=7]{bssn/code/results/history.txt};
\end{axis}
\end{tikzpicture}
&
\hskip 1cm
\begin{minipage}[b]{0.35\textwidth}
These plots show the evolution for basic ADM and BSSN data. The Kasner parameters
were $p_1=p_2=2/3$ and $p_3=-1/3$. The only noticeable difference between the
ADM and BSSN results are for the Hamiltonian.
\vskip 4cm
\hrule height 0pt
\end{minipage}
\end{tabular}
\end{document}