-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path_quarto.yml
More file actions
266 lines (251 loc) · 9.04 KB
/
_quarto.yml
File metadata and controls
266 lines (251 loc) · 9.04 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
project:
type: book
output-dir: _book
book:
title: "Finite Difference Computing with PDEs"
subtitle: "A Devito Approach"
author:
- name: Gerard J. Gorman
affiliation: Imperial College London
date: today
chapters:
- index.qmd
- chapters/preface/index.qmd
# Note: chapters/vib/ exists on disk but is excluded from the build.
# The vibration ODE content from the original Langtangen & Linge text
# has not yet been ported to the Devito approach. Readers interested
# in vibration ODEs can refer to Langtangen_deqbook_vib in the bibliography.
- part: "Main Chapters"
chapters:
- chapters/devito_intro/index.qmd
- chapters/wave/index.qmd
- chapters/diffu/index.qmd
- chapters/advec/index.qmd
- chapters/nonlin/index.qmd
- chapters/elliptic/index.qmd
- chapters/systems/index.qmd
- part: "Applications"
chapters:
- chapters/applications/electromagnetics/index.qmd
- part: "Appendices"
chapters:
- chapters/appendices/formulas/index.qmd
- chapters/appendices/trunc/index.qmd
- chapters/appendices/softeng2/index.qmd
repo-url: https://github.com/devitocodes/devito_book
site-url: https://devitocodes.github.io/devito_book
bibliography: references.bib
format:
html:
theme: cosmo
css: styles/draft.css
code-fold: false
toc: true
number-sections: true
number-depth: 3
crossref:
chapters: true
include-in-header:
text: |
<script>
MathJax = {
tex: {
macros: {
half: "\\frac{1}{2}",
halfi: "{1/2}",
tp: "\\thinspace .",
Ddt: ["\\frac{D #1}{dt}", 1],
E: ["\\text{E}\\lbrack #1 \\rbrack", 1],
Var: ["\\text{Var}\\lbrack #1 \\rbrack", 1],
Std: ["\\text{Std}\\lbrack #1 \\rbrack", 1],
xpoint: "\\boldsymbol{x}",
normalvec: "\\boldsymbol{n}",
Oof: ["\\mathcal{O}(#1)", 1],
x: "\\boldsymbol{x}",
X: "\\boldsymbol{X}",
uu: "\\boldsymbol{u}",
vv: "\\boldsymbol{v}",
w: "\\boldsymbol{w}",
acc: "\\boldsymbol{a}",
rpos: "\\boldsymbol{r}",
V: "\\boldsymbol{V}",
e: "\\boldsymbol{e}",
f: "\\boldsymbol{f}",
F: "\\boldsymbol{F}",
stress: "\\boldsymbol{\\sigma}",
strain: "\\boldsymbol{\\varepsilon}",
stressc: "{\\sigma}",
strainc: "{\\varepsilon}",
I: "\\boldsymbol{I}",
T: "\\boldsymbol{T}",
U: "\\boldsymbol{U}",
q: "\\boldsymbol{q}",
g: "\\boldsymbol{g}",
dfc: "\\alpha",
ii: "\\boldsymbol{i}",
jj: "\\boldsymbol{j}",
kk: "\\boldsymbol{k}",
ir: "\\boldsymbol{i}_r",
ith: "\\boldsymbol{i}_{\\theta}",
iz: "\\boldsymbol{i}_z",
Ix: "\\mathcal{I}_x",
It: "\\mathcal{I}_y",
Iz: "\\mathcal{I}_z",
It: "\\mathcal{I}_t",
If: "\\mathcal{I}_s",
Ifd: "{I_d}",
Ifb: "{I_b}",
setb: ["#1^0", 1],
sete: ["#1^{-1}", 1],
setl: ["#1^-", 1],
setr: ["#1^+", 1],
seti: ["#1^i", 1],
sequencei: ["\\left\\{ {#1}_i \\right\\}_{i\\in\\If}", 1],
sequencej: ["\\left\\{ {#1}_j \\right\\}_{j\\in\\If}", 1],
stepzero: "*",
stephalf: "***",
stepone: "**",
basphi: "\\varphi",
baspsi: "\\psi",
refphi: "\\tilde\\basphi",
psib: "\\boldsymbol{\\psi}",
sinL: ["\\sin\\left((#1+1)\\pi\\frac{x}{L}\\right)", 1],
xno: ["x_{#1}", 1],
Xno: ["X_{(#1)}", 1],
yno: ["y_{#1}", 1],
Yno: ["Y_{(#1)}", 1],
xdno: ["\\boldsymbol{x}_{#1}", 1],
dX: "\\, \\mathrm{d}X",
dx: "\\, \\mathrm{d}x",
ds: "\\, \\mathrm{d}s",
Real: "\\mathbb{R}",
Integerp: "\\mathbb{N}",
Integer: "\\mathbb{Z}"
}
}
};
</script>
pdf:
documentclass: scrbook
classoption:
- oneside
- open=any
papersize: letter
toc: true
number-sections: true
number-depth: 3
colorlinks: true
default-image-extension: png
pdf-engine: pdflatex
keep-tex: true
geometry:
- margin=1in
include-in-header:
text: |
% Draft watermark
\usepackage{draftwatermark}
\SetWatermarkText{DRAFT}
\SetWatermarkScale{1}
\SetWatermarkColor[gray]{0.9}
% Required packages
\usepackage[T1]{fontenc} % Proper glyph support for accents and symbols
\usepackage{textcomp} % Additional text symbols
\usepackage{bm} % For bold math symbols
% Custom LaTeX macros from the book
\newcommand{\half}{\frac{1}{2}}
\newcommand{\halfi}{{1/2}}
\newcommand{\tp}{\thinspace .}
% Operators
\newcommand{\Ddt}[1]{\frac{D #1}{dt}}
\newcommand{\E}[1]{\text{E}\lbrack #1 \rbrack}
\newcommand{\Var}[1]{\text{Var}\lbrack #1 \rbrack}
\newcommand{\Std}[1]{\text{Std}\lbrack #1 \rbrack}
\newcommand{\xpoint}{\bm{x}}
\newcommand{\normalvec}{\bm{n}}
\newcommand{\Oof}[1]{\mathcal{O}(#1)}
% Boldface vectors/tensors
\newcommand{\x}{\bm{x}}
\newcommand{\X}{\bm{X}}
\newcommand{\uu}{\bm{u}}
\newcommand{\vv}{\bm{v}}
\newcommand{\w}{\bm{w}}
\newcommand{\acc}{\bm{a}}
\newcommand{\rpos}{\bm{r}}
\newcommand{\V}{\bm{V}}
\newcommand{\e}{\bm{e}}
\newcommand{\f}{\bm{f}}
\newcommand{\F}{\bm{F}}
\newcommand{\stress}{\bm{\sigma}}
\newcommand{\strain}{\bm{\varepsilon}}
\newcommand{\stressc}{{\sigma}}
\newcommand{\strainc}{{\varepsilon}}
\newcommand{\I}{\bm{I}}
\newcommand{\T}{\bm{T}}
\newcommand{\U}{\bm{U}}
\newcommand{\q}{\bm{q}}
\newcommand{\g}{\bm{g}}
\newcommand{\dfc}{\alpha}
% Unit vectors
\newcommand{\ii}{\bm{i}}
\newcommand{\jj}{\bm{j}}
\newcommand{\kk}{\bm{k}}
\newcommand{\ir}{\bm{i}_r}
\newcommand{\ith}{\bm{i}_{\theta}}
\newcommand{\iz}{\bm{i}_z}
% Index sets
\newcommand{\Ix}{\mathcal{I}_x}
\newcommand{\Iy}{\mathcal{I}_y}
\newcommand{\Iz}{\mathcal{I}_z}
\newcommand{\It}{\mathcal{I}_t}
\newcommand{\If}{\mathcal{I}_s}
\newcommand{\Ifd}{{I_d}}
\newcommand{\Ifb}{{I_b}}
\newcommand{\setb}[1]{#1^0}
\newcommand{\sete}[1]{#1^{-1}}
\newcommand{\setl}[1]{#1^-}
\newcommand{\setr}[1]{#1^+}
\newcommand{\seti}[1]{#1^i}
\newcommand{\sequencei}[1]{\left\{ {#1}_i \right\}_{i\in\If}}
\newcommand{\sequencej}[1]{\left\{ {#1}_j \right\}_{j\in\If}}
% Superscripts for intermediate solutions
\newcommand{\stepzero}{*}
\newcommand{\stephalf}{***}
\newcommand{\stepone}{**}
% Finite elements
\newcommand{\basphi}{\varphi}
\newcommand{\baspsi}{\psi}
\newcommand{\refphi}{\tilde\basphi}
\newcommand{\psib}{\bm{\psi}}
\newcommand{\sinL}[1]{\sin\left((#1+1)\pi\frac{x}{L}\right)}
\newcommand{\xno}[1]{x_{#1}}
\newcommand{\Xno}[1]{X_{(#1)}}
\newcommand{\yno}[1]{y_{#1}}
\newcommand{\Yno}[1]{Y_{(#1)}}
\newcommand{\xdno}[1]{\bm{x}_{#1}}
% FEniCS commands
\newcommand{\dX}{\, \mathrm{d}X}
\newcommand{\dx}{\, \mathrm{d}x}
\newcommand{\ds}{\, \mathrm{d}s}
\newcommand{\Real}{\mathbb{R}}
\newcommand{\Integerp}{\mathbb{N}}
\newcommand{\Integer}{\mathbb{Z}}
# Quarto variables
# These can be referenced as {{< var name >}} in documents
src: "https://github.com/devitocodes/devito_book/tree/devito/src"
src_vib: "https://github.com/devitocodes/devito_book/tree/devito/src/vib"
src_wave: "https://github.com/devitocodes/devito_book/tree/devito/src/wave"
src_diffu: "https://github.com/devitocodes/devito_book/tree/devito/src/diffu"
src_nonlin: "https://github.com/devitocodes/devito_book/tree/devito/src/nonlin"
src_trunc: "https://github.com/devitocodes/devito_book/tree/devito/src/trunc"
src_advec: "https://github.com/devitocodes/devito_book/tree/devito/src/advec"
src_elliptic: "https://github.com/devitocodes/devito_book/tree/devito/src/elliptic"
src_systems: "https://github.com/devitocodes/devito_book/tree/devito/src/systems"
src_formulas: "https://github.com/devitocodes/devito_book/tree/devito/src/formulas"
src_softeng2: "https://github.com/devitocodes/devito_book/tree/devito/src/softeng2"
src_em: "https://github.com/devitocodes/devito_book/tree/devito/src/em"
crossref:
eq-prefix: ""
fig-prefix: "Figure"
tbl-prefix: "Table"
sec-prefix: "Section"
chapters: true