Skip to content

Commit c92a3c1

Browse files
author
sveinlin
committed
fixed typos in diffu chapter
1 parent ddaae66 commit c92a3c1

41 files changed

Lines changed: 2837 additions & 1883 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

doc/.src/chapters/diffu/diffu_analysis.do.txt

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
======= Analysis of schemes for the diffusion equation =======
33
label{diffu:pde1:analysis}
44

5+
idx{noise! sawtooth-like}
6+
57
The numerical experiments in Sections
68
ref{diffu:pde1:FE:experiments} and ref{diffu:pde1:theta:experiments}
79
reveal that there are some
@@ -25,6 +27,9 @@ Figures ref{diffu:pde1:FE:fig:F=0.5}-ref{diffu:pde1:CN:fig:F=10}.
2527
===== Properties of the solution =====
2628
label{diffu:pde1:analysis:uex}
2729

30+
idx{error function (erf)!} idx{step function}
31+
idx{error function (erf)! complementary}
32+
2833
A particular characteristic of diffusive processes, governed
2934
by an equation like
3035

@@ -102,11 +107,13 @@ label{diffu:analysis:pde1:p1:erf:uR}
102107
\tp
103108
\end{align}
104109
!et
105-
For small enough $t$, $u(0,t)\approx 1$ and $u(1,t)\approx 1$, but as
110+
For small enough $t$, $u(0,t)\approx 1$ and $u(1,t)\approx 0$, but as
106111
$t\rightarrow\infty$, $u(x,t)\rightarrow 1/2$ on $[0,1]$.
107112

108113
=== Solution for a Gaussian pulse ===
109114

115+
idx{Dirac delta function}
116+
110117
The standard diffusion equation $u_t = \dfc u_{xx}$ admits a
111118
Gaussian function as solution:
112119

@@ -132,6 +139,8 @@ the pulse diffuse and flatten out.
132139

133140
=== Solution for a sine component ===
134141

142+
idx{smoothing} idx{noise! removing} idx{signal processing}
143+
135144
Also, (ref{diffu:pde1:eq}) admits a solution of the form
136145

137146
!bt
@@ -150,8 +159,7 @@ inserting (ref{diffu:pde1:sol1}) in (ref{diffu:pde1:eq}) gives the constraint
150159
\end{equation*}
151160
!et
152161

153-
154-
A very important feature is that the initial shape $I(x)=Q\sin kx$
162+
A very important feature is that the initial shape $I(x)=Q\sin\left( kx\right)$
155163
undergoes a damping $\exp{(-\dfc k^2t)}$, meaning that
156164
rapid oscillations in space, corresponding to large $k$, are very much
157165
faster dampened than slow oscillations in space, corresponding to small
@@ -273,6 +281,8 @@ denotes $u$ at time $t_n$.
273281

274282
=== Stability ===
275283

284+
idx{stability}
285+
276286
The exact amplification factor is $\Aex=\exp{(-\dfc^2 k^2\Delta t)}$.
277287
We should therefore require $|A| < 1$ to have a decaying numerical
278288
solution as well. If
@@ -284,6 +294,8 @@ idx{amplification factor}
284294

285295
=== Accuracy ===
286296

297+
idx{accuracy}
298+
287299
To determine how accurately a finite difference scheme treats one
288300
wave component (ref{diffu:pde1:analysis:uni}), we see that the basic
289301
deviation from the exact solution is reflected in how well
@@ -297,6 +309,8 @@ make Taylor expansions of $A/\Aex$ to see the error more analytically.
297309

298310
=== Truncation error ===
299311

312+
idx{diffusion equation! truncation error}
313+
300314
As an alternative to examining the accuracy of the damping of a wave
301315
component, we can perform a general truncation error analysis as
302316
explained in ref[Appendix ref{ch:trunc}][ in
@@ -312,6 +326,8 @@ verifying codes based on empirical estimation of convergence rates.
312326
===== Analysis of the Forward Euler scheme =====
313327
label{diffu:pde1:analysis:FE}
314328

329+
idx{diffusion equation! numerical Fourier number}
330+
315331
# 2DO: refer to vib and wave
316332

317333

@@ -402,6 +418,8 @@ The method hence becomes very expensive for fine spatial meshes.
402418

403419
=== Accuracy ===
404420

421+
idx{Taylor series}
422+
405423
Since $A$ is expressed in terms of $F$ and the parameter we now call
406424
$p=k\Delta x/2$, we should also express $\Aex$ by $F$ and $p$. The exponent
407425
in $\Aex$ is $-\dfc k^2\Delta t$, which equals $-F k^2\Delta x^2=-F4p^2$.
@@ -578,7 +596,7 @@ The exact numerical solution is hence
578596

579597
!bt
580598
\begin{equation}
581-
u^n_q = \left(\frac{ 1 - 2F\sin^2p}{1 + 2F\sin^2p}\right)^ne^{ikp\Delta x}
599+
u^n_q = \left(\frac{ 1 - 2F\sin^2p}{1 + 2F\sin^2p}\right)^ne^{ikq\Delta x}
582600
\tp
583601
\end{equation}
584602
!et
@@ -605,21 +623,23 @@ cite{Langtangen_deqbook_trunc}]:
605623
===== Analysis of the Leapfrog scheme =====
606624
label{diffu:pde1:analysis:leapfrog}
607625

626+
idx{Leapfrog scheme}
627+
608628
An attractive feature of the Forward Euler scheme is the explicit
609629
time stepping and no need for solving linear systems. However, the
610630
accuracy in time is only $\Oof{\Delta t}$. We can get an explicit
611631
*second-order* scheme in time by using the Leapfrog method:
612632

613633
!bt
614-
\[ [D_{2t} u = \dfc D_xDx u + f]^n_i\tp\]
634+
\[ [D_{2t} u = \dfc D_xDx u + f]^n_q\tp\]
615635
!et
616636
Written out,
617637

618638
!bt
619-
\[ u^{n+1} = u^{n-1} + \frac{2\dfc\Delta t}{\Delta x^2}
620-
(u^{n}_{i+1} - 2u^n_i + u^n_{i-1}) + f(x_i,t_n)\tp\]
639+
\[ u_q^{n+1} = u_q^{n-1} + \frac{2\dfc\Delta t}{\Delta x^2}
640+
(u^{n}_{q+1} - 2u^n_q + u^n_{q-1}) + f(x_q,t_n)\tp\]
621641
!et
622-
We need some formula for the first step, $u^1_i$, but for that we can use
642+
We need some formula for the first step, $u^1_q$, but for that we can use
623643
a Forward Euler step.
624644

625645
Unfortunately, the Leapfrog scheme is always unstable for the
@@ -690,7 +710,8 @@ respectively, and we see how short waves pollute the overall solution.
690710
===== Analysis of the 2D diffusion equation =====
691711
label{diffu:2D:analysis}
692712

693-
We first consider the 2D diffusion equation
713+
Diffusion in several dimensions is treated later, but it is appropriate to
714+
include the analysis here. We first consider the 2D diffusion equation
694715

695716
!bt
696717
\[ u_{t} = \dfc(u_{xx} + u_{yy}),\]
@@ -711,7 +732,7 @@ and the schemes have discrete versions of this Fourier component:
711732
For the Forward Euler discretization,
712733

713734
!bt
714-
\[ [D_t^+u = \dfc(D_xD_x u + D_yD_y u)]_{i,j}^n,\]
735+
\[ [D_t^+u = \dfc(D_xD_x u + D_yD_y u)]_{q,r}^n,\]
715736
!et
716737
we get
717738

@@ -752,7 +773,7 @@ The complete numerical solution for a wave component is
752773
!bt
753774
\begin{equation}
754775
u^{n}_{q,r} = A(1 - 4F_x\sin^2 p_x - 4F_y\sin^2 p_y)^n
755-
e^{i(k_xp\Delta x + k_yq\Delta y)}\tp
776+
e^{i(k_xq\Delta x + k_yr\Delta y)}\tp
756777
label{diffu:2D:analysis:FE:numexact}
757778
\end{equation}
758779
!et
@@ -781,7 +802,7 @@ where $d$ is the number of space dimensions: $d=1,2,3$.
781802
The Backward Euler method,
782803

783804
!bt
784-
\[ [D_t^-u = \dfc(D_xD_x u + D_yD_y u)]_{i,j}^n,\]
805+
\[ [D_t^-u = \dfc(D_xD_x u + D_yD_y u)]_{q,r}^n,\]
785806
!et
786807
results in
787808

@@ -809,9 +830,9 @@ label{diffu:2D:analysis:BN:numexact}
809830
With a Crank-Nicolson discretization,
810831

811832
!bt
812-
\[ [D_tu]^{n+\half}_{i,j} =
813-
\half [\dfc(D_xD_x u + D_yD_y u)]_{i,j}^{n+1} +
814-
\half [\dfc(D_xD_x u + D_yD_y u)]_{i,j}^n,\]
833+
\[ [D_tu]^{n+\half}_{q,r} =
834+
\half [\dfc(D_xD_x u + D_yD_y u)]_{q,r}^{n+1} +
835+
\half [\dfc(D_xD_x u + D_yD_y u)]_{q,r}^n,\]
815836
!et
816837
we have, after some algebra,
817838

@@ -853,8 +874,8 @@ label{diffu:2D:analysis:CN:numexact}
853874

854875
The behavior of the solution generated by Forward Euler discretization in time (and centered
855876
differences in space) is summarized at the end of
856-
Section ref{diffu:pde1:FE:experiments}. Can we from the analysis
857-
above explain the behavior?
877+
Section ref{diffu:pde1:FE:experiments}. Can we, from the analysis
878+
above, explain the behavior?
858879

859880
We may start by looking at Figure ref{diffu:pde1:FE:fig:F=0.51}
860881
where $F=0.51$. The figure shows that the solution is unstable and

doc/.src/chapters/diffu/diffu_app.do.txt

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ and heat conduction (include Robin/cooling).]
88
===== Diffusion of a substance =====
99
label{diffu:app:substance}
1010

11+
idx{Fick's law}
12+
1113
The first process to be considered is a substance that gets
1214
transported through a fluid at rest by pure diffusion. We consider an
1315
arbitrary volume $V$ of this fluid, containing the substance with
@@ -124,6 +126,9 @@ label{diffu:app:substance:PDE}
124126
===== Heat conduction =====
125127
label{diffu:app:heat}
126128

129+
idx{internal energy} idx{radioactive rock} idx{equation of state}
130+
idx{heat capacity} idx{Fourier's law}
131+
127132
Heat conduction is a well-known diffusion process. The governing PDE
128133
is in this case based on the first law of thermodynamics: the increase
129134
in energy of a system is equal to the work done on the system, plus
@@ -252,7 +257,7 @@ c_v\partial T/\partial t$ in the PDE gives
252257
!et
253258
We still have four unknown scalar fields ($T$ and $\q$). To close the
254259
system, we need a relation between the heat flux $\q$ and the temperature $T$
255-
called Fourier's law:
260+
called *Fourier's law*:
256261

257262
!bt
258263
\[ \q = -k\nabla T,\]
@@ -265,7 +270,10 @@ $k$ is constant. The value of $k$ reflects how easy heat is
265270
conducted through the medium, and $k$ is named the *coefficient of
266271
heat conduction*.
267272

268-
We have now one scalar PDE for the unknown temperature field $T(\x,t)$:
273+
idx{heat conduction! coefficient of} idx{mass balance}
274+
idx{incompressible fluid}
275+
276+
We now have one scalar PDE for the unknown temperature field $T(\x,t)$:
269277

270278
!bt
271279
\begin{equation}
@@ -277,6 +285,8 @@ label{diffu:app:heat:PDE}
277285
===== Porous media flow =====
278286
label{diffu:app:porous}
279287

288+
idx{Darcy's law} idx{dynamic viscosity}
289+
280290
The requirement of mass balance for
281291
flow of a single, incompressible fluid through a deformable (elastic) porous
282292
medium leads to the equation
@@ -292,7 +302,7 @@ coefficient of the medium (related to the compressibility of the
292302
fluid and the material in the medium), and $\alpha$ is another coefficient.
293303
In many circumstances, the last term with $\u$ can be neglected,
294304
an assumption that decouples the equation above from a model for
295-
the deformation of the medium. The famous Darcy's law relates
305+
the deformation of the medium. The famous *Darcy's law* relates
296306
$\q$ to $p$:
297307

298308
!bt
@@ -309,11 +319,13 @@ S\frac{\partial p}{\partial t} = \mu^{-1}\nabla(K\nabla p) + \frac{\varrho g}{\m
309319
label{diffu:app:porous:PDE}
310320
\end{equation}
311321
!et
312-
Boundary conditions consist of specifying $p$ or $\q\cdot\normalvec$ at
313-
(normal velocity) each point of the boundary.
322+
Boundary conditions consist of specifying $p$ or $\q\cdot\normalvec$ (i.e., normal velocity) at
323+
each point of the boundary.
314324

315325
===== Potential fluid flow =====
316326

327+
idx{viscous effects}
328+
317329
Let $\v$ be the velocity of a fluid. The condition $\nabla\times\v =0$
318330
is relevant for many flows, especially in geophysics when viscous effects
319331
are negligible. From vector calculus it is known
@@ -341,6 +353,8 @@ $\phi$ at a point.
341353

342354
===== Streamlines for 2D fluid flow =====
343355

356+
idx{stationary fluid flow} idx{stream function}
357+
344358
The streamlines in a two-dimensional
345359
stationary fluid flow are lines tangential to the flow.
346360
The "stream function": "https://en.wikipedia.org/wiki/Stream_function"
@@ -413,6 +427,8 @@ equation in that case (anisotropic conduction?). Can you figure it out?]
413427
===== Development of flow between two flat plates =====
414428
label{diffu:app:Couette}
415429

430+
idx{Navier-Stokes equations}
431+
416432
Diffusion equations may also arise as simplified versions of other
417433
mathematical models, especially in fluid flow. Consider a fluid
418434
flowing between two flat, parallel plates. The velocity is
@@ -460,7 +476,7 @@ a very standard one-dimensional diffusion equation:
460476
!bt
461477
\[
462478
\varrho\frac{\partial u}{\partial t} =
463-
\mu\frac{\partial^2 u}{\partial z^2} + \beta(t) + \varrho\gamma g,\quad
479+
\mu\frac{\partial^2 u}{\partial x^2} + \beta(t) + \varrho\gamma g,\quad
464480
x\in [0,L],\ t\in (0,T]\tp
465481
\]
466482
!et
@@ -490,6 +506,8 @@ the adjusted boundary condition
490506
===== Flow in a straight tube =====
491507
label{diffu:app:pipeflow}
492508

509+
idx{cylindrical coordinates}
510+
493511
Now we consider viscous fluid flow in a straight tube with radius $R$
494512
and rigid walls.
495513
The governing equations are the Navier-Stokes equations, but as
@@ -515,6 +533,8 @@ the tube. The associated boundary condition is $u(R,t)=0$.
515533

516534
===== Tribology: thin film fluid flow =====
517535

536+
idx{friction}
537+
518538
Thin fluid films are extremely important inside machinery to reduce friction
519539
between gliding surfaces. The mathematical model for the fluid motion takes
520540
the form of a diffusion problem and is quickly derived here.
@@ -554,7 +574,7 @@ The idea is to use this expression locally
554574
also when the surfaces are not flat,
555575
but slowly varying, and if $U$, $V$, or $p$ varies in time, provided the
556576
time variation is sufficiently slow. This is a common quasi-static
557-
approximation much used in mathematical modeling.
577+
approximation, much used in mathematical modeling.
558578

559579
Inserting the expression for $\q$ via $p$, $U$, and $V$ in the
560580
equation $\nabla\q = 0$ gives a diffusion PDE for $p$:
@@ -572,6 +592,8 @@ The boundary conditions must involve $p$ or $\q$ at the boundary.
572592

573593
===== Propagation of electrical signals in the brain =====
574594

595+
idx{neuronal fibers} idx{cable equation}
596+
575597
# http://icwww.epfl.ch/~gerstner/SPNM/node17.html
576598
# http://www.uio.no/studier/emner/matnat/ifi/INF5610/h09/Lecture04.pdf
577599
# http://people.mbi.ohio-state.edu/schwemmer.2/Publications/Schwemmer_Dissertation_Final.pdf

0 commit comments

Comments
 (0)