declarations.tex 5.08 KB
Newer Older
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
\usepackage{amsmath}
\usepackage[bbgreekl]{mathbbol}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{mathtools}
\usepackage[table]{xcolor}
\usepackage{wrapfig}
\usepackage{relsize}
\usepackage{hyperref}
\usepackage{enumerate}
\usepackage{algorithm}
\usepackage{listings}
\usepackage{minted}
\usepackage[noend]{algpseudocode}

\DeclareSymbolFontAlphabet{\mathbb}{AMSb}
\DeclareSymbolFontAlphabet{\mathbbl}{bbold}

\newcommand{\Du}{\mathbf{D}(\mathbf{u})}
\newcommand{\eqdef}{\ensuremath{\overset{\text{def}}{=}}}
\newcommand{\rrho}{\Bar{\Bar{\varrho}}}
\newcommand{\kbt}{{k_\textup{B}{T}}}

%\newcommand{\Eins}{\mathbf{1}}%
%\newcommand{\Null}{\mathbf{0}}%
\newcommand{\Diag}{\operatorname{diag}}%
\newcommand{\esp}{\,\hat{=}\,}%
\newcommand{\ii}{\mathrm{i}}%
\newcommand{\Tr}{\operatorname{Tr}}%
\newcommand{\Div}{\operatorname{div}}%
\newcommand{\abs}[1]{\lvert#1\rvert}%
\newcommand{\norm}[1]{\lVert#1\rVert}%
\newcommand{\ie}{i.\,e.}%
\newcommand{\eg}{e.\,g.}%
\newcommand{\etal}{et\,al.}%
\newcommand{\ZT}[1]{\textquotedblleft#1\textquotedblright}%
\newcommand{\modulo}{\texttt{\%}}%
\newcommand{\sign}{\operatorname{sign}}

\newcommand{\R}{\mathbb{R}}%
\newcommand{\C}{\mathbb{C}}%

% dimensionless numbers
\newcommand{\RE}{\textup{Re}}%
\newcommand{\PE}{\textup{Pe}}%
\newcommand{\CA}{\textup{Ca}}%
\newcommand{\SC}{\textup{Sc}}%

\newcommand{\xb}{\mathbf{x}}%
\newcommand{\rb}{\mathbf{r}}%
\newcommand{\ub}{\mathbf{u}}%
\newcommand{\vb}{\mathbf{v}}%
\newcommand{\pb}{\mathbf{p}}%
\newcommand{\qb}{\mathbf{q}}%
\newcommand{\nb}{\mathbf{n}}%
\newcommand{\director}{\hat{\nb}}

\newcommand{\Laplace}{\Delta}%
\newcommand{\iDelta}{\mathlarger{\blacktriangle}}%
\newcommand{\vecDelta}{\vec{\mathlarger{\Delta}}}%
\newcommand{\vecLaplace}{\boldsymbol{\Delta}}%

\newcommand{\Nabla}{\vec{\nabla}}%
\newcommand{\inabla}{\mathlarger{\blacktriangledown}}%
\newcommand{\iNabla}{\vec{\mathlarger{\blacktriangledown}}}%

\newcommand{\Boundary}{\Sigma}

\newcommand{\reflect}[1]{\text{\reflectbox{$#1$}}}

\newcommand{\dif}{\textup{d}}%											d
\newcommand{\tdif}[2]{\frac{\dif#1}{\dif#2}}%							du / dx
\newcommand{\pdif}[2]{\frac{\partial#1}{\partial#2}}%					du / dx
\newcommand{\ppdif}[2]{\frac{\partial^{2}{#1}}{\partial{#2}^{2}}}%	d^2 u / dx^2

\newcommand{\ds}{\,\dif{s}}%                      dr
\newcommand{\dr}{\,\dif\rb}%											dr
\newcommand{\dx}{\,\dif\xb}%											dx
\newcommand{\dxhat}{\,\dif\hat{\xb}}%											dx
\newcommand{\dt}{\partial_t}%											d_t

\newcommand{\Poly}[1]{\mathbb{P}_{#1}}%								P_p
\newcommand{\Triang}{\mathcal{T}_{h}}%									T_h

\newcommand{\fdif}{\operatorname{\delta}\!}%							d
\newcommand{\Fdif}[2]{\frac{\fdif{#1}}{\fdif{#2}}}%				dF / du	
\newcommand{\FFdif}[3]{\frac{\fdif^2{#1}}{\fdif{#2}\fdif{#3}}}%			d^2F / dudv	

\newcommand{\drho}{\fdif\varrho}
\newcommand{\phase}{{\phi}}

\newcommand{\dotprod}[2]{\ensuremath{\langle{#1},\,{#2}\rangle}}
\newcommand{\twoNorm}[1]{\ensuremath{\|{#1}\|}}

% notation of energies
\newcommand{\FF}{{F}}
\newcommand{\F}[1]{\FF_\textup{#1}}
\newcommand{\dotF}[1]{\dot{\FF}_\textup{#1}}
\newcommand{\hatF}[1]{\hat{\FF}_\textup{#1}}
\newcommand{\barF}[1]{\bar{\FF}_\textup{#1}}
\newcommand{\Fourier}{\mathcal{F}}

\newcommand{\ff}{\mathbbl{f}}

%\theoremstyle{plain}
\newtheorem{lem}{Lemma}
\newtheorem{thm}{Theorem}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{rem}{Remark}
\newtheorem{exmp}{Example}[chapter]

%\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}

\newcommand*{\End}{\hfill\ensuremath{\vartriangleleft}}%
\newcommand*{\END}{\hfill\ensuremath{\blacktriangleleft}}%

% abstracts at the begin of chapters
\newenvironment{abstract}{\itshape}{}


\newcommand{\algostep}[1]{{\tt {#1}:\newline}}

\definecolor{hellgrau}{rgb}{0.9, 0.9, 0.9} 
\definecolor{bgcolor}{rgb}{0.9, 0.9, 0.8} 
\definecolor{framecolor}{rgb}{0.6, 0.6, 0.5} 
\definecolor{dunkelgruen}{rgb}{0, 0.5, 0.0} 
\definecolor{grau}{rgb}{0.4, 0.4, 0.4} 
\definecolor{dunkelblau}{rgb}{0.3, 0.3, 0.5} 
\definecolor{lightblue}{rgb}{0.93,0.95,1.0}

\lstset{language=C++,
        basicstyle=\ttfamily,
        keywordstyle=\color{blue}\ttfamily,
        directivestyle=\color{dunkelgruen}\bfseries\ttfamily,
        stringstyle=\color{red}\ttfamily,
        commentstyle=\color{grau}\ttfamily,
        morecomment=[l][\color{dunkelblau}]{///},
        morecomment=[s][\color{dunkelblau}]{/**}{*/},
        morecomment=[s][\color{dunkelblau}]{/*!}{*/},
        backgroundcolor=\color{bgcolor},
        rulecolor=\color{framecolor},
        frame=lines,
        framerule=0.5pt,
        numbers=left,
        numbersep=1em,
        numberstyle={\tiny\ttfamily},
        showspaces=false,
        showstringspaces=false,
        xleftmargin=1cm,
        title={C++ -- Code}
}


\setminted[c++]{mathescape,
		linenos,
		numbersep=5pt,
		frame=lines,
		framesep=2mm,
		breaklines=true}

\newcommand{\cpp}{\mintinline{c++}}
\newcommand{\cppline}{\mint[frame=none,linenos=false,breaklines=true]{c++}}
		
% These are the default sizes for titles. Customize them if you wish:
%\let\TitleSize=\huge
%\let\SubtitleSize=\LARGE
%\def\TitleStretch{1.4}