Skip to content

Commit 5fd8878

Browse files
committed
Fix DocOnce artifacts causing PDF formatting issues
- Replace DocOnce-style quotes (``text'') with standard quotes - Remove URL incorrectly used as section heading (diffu_fd2.qmd) - Remove leftover Mako conditionals (vib_undamped.qmd) - Remove DocOnce author comments appearing as headings - Fix truncation error appendix reference
1 parent 9b75b1c commit 5fd8878

17 files changed

Lines changed: 49 additions & 67 deletions

chapters/advec/advec.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ numerical solutions.
764764
## Leapfrog in time, centered differences in space
765765
### Method {#sec-advec-1D-leapfrog}
766766
767-
Another explicit scheme is to do a ``leapfrog'' jump over $2\Delta t$ in
767+
Another explicit scheme is to do a "leapfrog" jump over $2\Delta t$ in
768768
time and combine it with central differences in space:
769769
$$
770770
[D_{2t} u + vD_{2x} u = 0]_i^n,
@@ -1458,7 +1458,7 @@ signals to the left and the right. The value $u(0)=0$ is transported
14581458
through the domain if $\epsilon$ is small, and $u\approx 0$ except in
14591459
the vicinity of $x=1$, where $u(1)=1$ and the diffusion transports
14601460
some information about $u(1)=1$ to the left. For large $\epsilon$,
1461-
diffusion dominates and the $u$ takes on the ``average'' value, i.e.,
1461+
diffusion dominates and the $u$ takes on the "average" value, i.e.,
14621462
$u$ gets a linear variation from 0 to 1 throughout the domain.
14631463
14641464
It turns out that we can find an exact solution to the differential

chapters/appendices/softeng2/softeng2.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,11 +2174,11 @@ Simulate for $C=1, 0.9, 0.75$ and make an animation comparing the
21742174
three curves (use the `animate_archives.py` program to combine the
21752175
curves and make animations on the screen and video files). Perform
21762176
the investigations for different types of initial profiles: a Gaussian
2177-
pulse, a ``cosine hat'' pulse, half a``cosine hat'' pulse, and a plug
2177+
pulse, a "cosine hat" pulse, half a"cosine hat" pulse, and a plug
21782178
pulse.
21792179
21802180
!bsol
2181-
We make a little Python script for running one ``pulse'' simulation:
2181+
We make a little Python script for running one "pulse" simulation:
21822182
21832183
```python
21842184
```

chapters/diffu/diffu_analysis.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ the $u_x=0$ condition from the previous subexercise that is
790790
qualitatively wrong for large $t$.)
791791
Develop a diffusion problem for the error in the solution using
792792
(@eq-diffu-pde1-Gaussian-xL-cooling) as boundary condition.
793-
Assume one can take $u_S=0$ ``outside the domain'' since
793+
Assume one can take $u_S=0$ "outside the domain" since
794794
$\uex\rightarrow 0$ as $x\rightarrow\infty$.
795795
Find a function $q=q(t)$ such that the exact solution
796796
obeys the condition (@eq-diffu-pde1-Gaussian-xL-cooling).

chapters/diffu/diffu_exer.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ energy of the system. A mathematical tradition has introduced the
6060
notion *energy* in this context.
6161
6262
The estimate (@eq-diffu-exer-estimates-p1-result) says that the
63-
``size of $u$'' never exceeds that of the initial condition,
63+
"size of $u$" never exceeds that of the initial condition,
6464
or more precisely, it says that the area under the $u$ curve decreases
6565
with time.
6666
@@ -260,7 +260,7 @@ The surface temperature is set as
260260
$$
261261
T(0,t) = T_m + A\sin(\omega t)\tp
262262
$$
263-
With only one ``active'' spatial coordinate we get the initial-boundary
263+
With only one "active" spatial coordinate we get the initial-boundary
264264
value problem
265265
266266
\begin{alignat*}{2}
@@ -329,7 +329,7 @@ Inserting $u(\bar x, \bar t)=e^{-\bar x}\sin (\bar t - \bar x)$ in the
329329
PDE shows that this is a solution. It also obeys
330330
the boundary condition $\bar u(0,\bar t)=sin(\bar t)$. As
331331
$\bar t\rightarrow\infty$, the initial condition has no longer impact
332-
on the solution and is ``forgotten'' and of no interest.
332+
on the solution and is "forgotten" and of no interest.
333333
The boundary condition at $\bar x=\bar L$ is never compatible with the
334334
given solution unless $\bar u$ is damped to zero, which happens
335335
mathematically as $\bar L\rightarrow\infty$. For a numerical solution,

chapters/diffu/diffu_fd1.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ which written out reads
11701170
$$
11711171
\frac{u^{n}_i-u^{n-1}**i}{\Delta t} = \dfc\frac{u^{n}**{i+1} - 2u^n_i + u^n_{i-1}}{\Delta x^2} + f_i^n\tp
11721172
$$ {#eq-diffu-pde1-step3bBE}
1173-
Now we assume $u^{n-1}_i$ is already computed, but that all quantities at the ``new''
1173+
Now we assume $u^{n-1}_i$ is already computed, but that all quantities at the "new"
11741174
time level $n$ are unknown. This time it is not possible to solve
11751175
with respect to $u_i^{n}$ because this value couples to its neighbors
11761176
in space, $u^n_{i-1}$ and $u^n_{i+1}$, which are also unknown.

chapters/diffu/diffu_fd2.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ shows the result.
270270
271271
![Solution of the stationary diffusion equation corresponding to a *smoothed* piecewise constant diffusion coefficient.](fig/flow_in_layers_case1_eps){#fig-diffu-fd2-pde-st-sol-pc-fig2 width="400px"}
272272
273-
## Axi-symmetric diffusion
274-
## http://www.ewp.rpi.edu/hartford/~ernesto/S2004/CHT/Notes/s06.pdf {#sec-diffu-fd2-radial}
273+
## Axi-symmetric diffusion {#sec-diffu-fd2-radial}
275274
276275
Suppose we have a diffusion process taking place in a straight tube
277276
with radius $R$. We assume axi-symmetry such that $u$ is just a
@@ -453,7 +452,7 @@ $$
453452
$$
454453
For $\alpha$ constant we immediately realize that we can reuse a
455454
solver in Cartesian coordinates to compute $v$. With variable $\alpha$,
456-
a ``reaction'' term $v/r$ needs to be added to the Cartesian solver.
455+
a "reaction" term $v/r$ needs to be added to the Cartesian solver.
457456
The boundary condition $\partial u/\partial r=0$ at $r=0$, implied
458457
by symmetry, forces $v(0,t)=0$, because
459458
$$

chapters/diffu/diffu_fd3.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ to $p$:
141141
(2,3)\rightarrow 11\tp
142142
\end{align*}
143143
That is, we number the points along the $x$ axis, starting with $y=0$,
144-
and then progress one ``horizontal'' mesh line at a time.
144+
and then progress one "horizontal" mesh line at a time.
145145
In Figure @fig-diffu-2D-fig-mesh3x2 you can see that the $(i,j)$ and the
146146
corresponding single index ($p$) are listed for each mesh point.
147147
@@ -912,7 +912,7 @@ for n in It[0:-1]:
912912
The most tricky part of this code snippet is the loading of values from
913913
the one-dimensional array `c`
914914
into the two-dimensional array `u`. With our numbering of unknowns
915-
from left to right along ``horizontal'' mesh lines, the correct
915+
from left to right along "horizontal" mesh lines, the correct
916916
reordering of the one-dimensional array `c` as a two-dimensional array
917917
requires first a reshaping to an `(Ny+1,Nx+1)` two-dimensional
918918
array and then taking the transpose. The result is an `(Nx+1,Ny+1)`
@@ -1597,7 +1597,7 @@ i = slice(1, None, 2); j = slice(2, None, 2)
15971597
That is, we need four sets of slices. The simplest way of implementing
15981598
the algorithm is to make a function with variables for the slices
15991599
representing $i$, $i-1$, $i+1$, $j$, $j-1$, and $j+1$, here called
1600-
`ic` (``i center''), `im1` (``i minus 1'', `ip1` (``i plus 1''), `jc`, `jm1`,
1600+
`ic` ("i center"), `im1` ("i minus 1", `ip1` ("i plus 1"), `jc`, `jm1`,
16011601
and `jp1`, respectively.
16021602
16031603
```python

chapters/diffu/diffu_rw.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ point in a small time interval and small spatial volume.
1313

1414
Random walk is a principally different kind of modeling procedure
1515
compared to the reasoning behind partial differential equations. The
16-
idea in random walk is to have a large number of ``particles'' that
16+
idea in random walk is to have a large number of "particles" that
1717
undergo random movements. Averaging can then be used afterwards to
18-
compute macroscopic quantities like concentration. The``particles''
18+
compute macroscopic quantities like concentration. The"particles"
1919
and their random movement represent a very simplified microscopic
2020
behavior of molecules, much simpler and computationally much more
2121
efficient than direct [molecular simulation](https://en.wikipedia.org/wiki/Molecular_dynamics), yet the random
@@ -98,7 +98,7 @@ $$
9898
\left(\frac{1}{W}\sum_{j=0}^{W-1} \bar x_{j,k}\right)^2\tp
9999
$$
100100
That is, we take the statistics for a given $K$ across the ensemble
101-
of random walks (``vertically'' in
101+
of random walks ("vertically" in
102102
Figure @fig-diffu-randomwalk-1D-fig-ensemble). The key quantities
103103
to record are $\sum_i \bar x_{i,k}$ and $\sum_i \bar x_{i,k}^2$.
104104

chapters/nonlin/nonlin_exer.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ numerical answers should be identical.
183183
Implement unit tests that check the asymptotic limit of the solutions:
184184
$u\rightarrow M$ as $t\rightarrow\infty$.
185185
186-
:::{.callout-tip title="You need to experiment to find what ``infinite time'' is"}
186+
:::{.callout-tip title="You need to experiment to find what "infinite time" is"}
187187
(increases substantially with $p$) and what the
188188
appropriate tolerance is for testing the asymptotic limit.
189189
:::

chapters/nonlin/nonlin_ode.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ approach in science and technology, but with some limitations if
368368
$\Delta t$ is not sufficiently small (as will be illustrated later).
369369
370370
:::{.callout-note title="Equation (@eq-nonlin-timediscrete-logistic-BE-Picard-1it) does not"}
371-
correspond to a ``pure'' finite difference method where the equation
371+
correspond to a "pure" finite difference method where the equation
372372
is sampled at a point and derivatives replaced by differences (because
373373
the $u^{n-1}$ term on the right-hand side must then be $u^n$). The
374374
best interpretation of the scheme
@@ -535,7 +535,7 @@ notation used in the literature.
535535
One iteration in Newton's method or
536536
Picard iteration consists of solving a linear problem $\hat F(u)=0$.
537537
Sometimes convergence problems arise because the new solution $u$
538-
of $\hat F(u)=0$ is ``too far away'' from the previously computed
538+
of $\hat F(u)=0$ is "too far away" from the previously computed
539539
solution $u^{-}$. A remedy is to introduce a relaxation, meaning that
540540
we first solve $\hat F(u^*)=0$ for a suggested value $u^*$ and
541541
then we take $u$ as a weighted mean of what we had, $u^{-}$, and
@@ -772,16 +772,16 @@ until a stopping criterion is fulfilled.
772772
Evaluating $f$ for a known $u^{-}$ is referred to as *explicit* treatment of
773773
$f$, while if $f(u,t)$ has some structure, say $f(u,t) = u^3$, parts of
774774
$f$ can involve the unknown $u$, as in the manual linearization
775-
$(u^{-})^2u$, and then the treatment of $f$ is ``more implicit''
776-
and ``less explicit''. This terminology is inspired by time discretization
775+
$(u^{-})^2u$, and then the treatment of $f$ is "more implicit"
776+
and "less explicit". This terminology is inspired by time discretization
777777
of $u^{\prime}=f(u,t)$, where evaluating $f$ for known $u$ values gives
778778
explicit schemes, while treating $f$ or parts of $f$ implicitly,
779779
makes $f$ contribute to the unknown terms in the equation at the new
780780
time level.
781781
782782
Explicit treatment of $f$ usually means stricter conditions on
783783
$\Delta t$ to achieve stability of time discretization schemes. The same
784-
applies to iteration techniques for nonlinear algebraic equations: the ``less''
784+
applies to iteration techniques for nonlinear algebraic equations: the "less"
785785
we linearize $f$ (i.e., the more we keep of $u$ in the original formula),
786786
the faster the convergence may be.
787787
@@ -1002,7 +1002,7 @@ Given $A(u)u=b(u)$ and an initial guess $u^{-}$, iterate until convergence:
10021002
1. $u^{-}\ \leftarrow\ u$
10031003
:::
10041004
1005-
``Until convergence'' means that the iteration is stopped when the
1005+
"Until convergence" means that the iteration is stopped when the
10061006
change in the unknown, $||u - u^{-}||$, or the residual $||A(u)u-b||$,
10071007
is sufficiently small, see Section @sec-nonlin-systems-alg-terminate for
10081008
more details.

0 commit comments

Comments
 (0)