Skip to content

Commit 435302e

Browse files
author
sveinlin
committed
some typos and index list extension, vib Ch
1 parent 8a0a81b commit 435302e

46 files changed

Lines changed: 276 additions & 183 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/vib/vib_app.do.txt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Finally, we have the external environmental force $\F_e = F(t)\ii$.
142142
Newton's second law of motion now involves three forces:
143143

144144
!bt
145-
\[ F(t)\ii + f(\dot u)\ii - s(u)\ii = m\ddot u \ii\tp\]
145+
\[ F(t)\ii - f(\dot u)\ii - s(u)\ii = m\ddot u \ii\tp\]
146146
!et
147147
The common mathematical form of the ODE problem is
148148

@@ -261,7 +261,7 @@ label{vib:app:washmach}
261261

262262
A washing machine is placed on four springs with efficient dampers.
263263
If the machine contains just a few clothes, the circular motion of
264-
the machine induces a sinusoidal external force and the machine will
264+
the machine induces a sinusoidal external force from the floor and the machine will
265265
jump up and down if the frequency of the external force is close to
266266
the natural frequency of the machine and its spring-damper system.
267267

@@ -274,8 +274,10 @@ label{vib:app:pendulum}
274274

275275
=== Simple pendulum ===
276276

277+
idx{pendulum! simple}
278+
277279
A classical problem in mechanics is the motion of a pendulum. We first
278-
consider a "simple pendulum" :
280+
consider a "simplified pendulum" :
279281
"https://en.wikipedia.org/wiki/Pendulum" (sometimes also called a
280282
mathematical pendulum): a small body of mass $m$ is
281283
attached to a massless wire and can oscillate back and forth in the
@@ -379,6 +381,8 @@ and carry out specific simulations with this model.
379381

380382
=== Physical pendulum ===
381383

384+
idx{pendulum! physical}
385+
382386
The motion of a compound or physical pendulum where the wire is a rod with
383387
mass, can be modeled very similarly. The governing equation is
384388
$I\acc = \bm{T}$ where $I$ is the moment of inertia of the entire body about
@@ -404,6 +408,8 @@ label{vib:app:pendulum:thetaeq_physical}
404408
===== Dynamic free body diagram during pendulum motion =====
405409
label{vib:app:pendulum_bodydia}
406410

411+
idx{free body diagram! dynamic} idx{free body diagram! animated} idx{`Pysketcher`}
412+
407413
Usually one plots the mathematical quantities as functions of time to
408414
visualize the solution of ODE models. Exercise
409415
ref{vib:exer:pendulum_simple} asks you to do this for the motion of a
@@ -534,6 +540,8 @@ listed below.
534540
===== Motion of an elastic pendulum =====
535541
label{vib:app:pendulum_elastic}
536542

543+
idx{pendulum! elastic} idx{differential-algebraic equation} idx{constrained motion}
544+
537545
Consider a pendulum as in Figure ref{vib:app:pendulum:fig_problem}, but
538546
this time the wire is elastic. The length of the wire when it is not
539547
stretched is $L_0$, while $L(t)$ is the stretched
@@ -712,6 +720,8 @@ label{vib:app:pendulum_elastic:vy0}
712720

713721
=== Scaling ===
714722

723+
idx{round-off error} idx{scaling}
724+
715725
The elastic pendulum model can be used to study both an elastic pendulum
716726
and a classic, non-elastic pendulum. The latter problem is obtained
717727
by letting $k\rightarrow\infty$. Unfortunately,

doc/.src/chapters/vib/vib_gen.do.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mu^{\prime\prime} + f(u^{\prime}) + s(u) = F(t),\quad u(0)=I,\ u^{\prime}(0)=V,\
1717
label{vib:ode2}
1818
\end{equation}
1919
!et
20-
We have also included a possibly nonzero initial value of $u^{\prime}(0)$.
20+
We have also included a possibly nonzero initial value for $u^{\prime}(0)$.
2121
The parameters $m$, $f(u^{\prime})$, $s(u)$, $F(t)$, $I$, $V$, and $T$ are
2222
input data.
2323

@@ -231,7 +231,7 @@ mathematics,
231231
label{vib:ode2:nonlin:fbdiff}
232232
\end{equation}
233233
!et
234-
The forward and backward differences have both an error proportional
234+
The forward and backward differences both have an error proportional
235235
to $\Delta t$ so one may think the discretization above leads to
236236
a first-order scheme.
237237
However, by looking at the formulas, we realize that the forward-backward
@@ -328,20 +328,20 @@ machine precision).
328328
=== Catching bugs ===
329329

330330
How good are the constant and quadratic solutions at catching
331-
bugs in the implementation?
331+
bugs in the implementation? Let us check that by introducing some bugs.
332332

333-
* Use `m` instead of `2*m` in the denominator of `u[1]`: constant
334-
works, while quadratic fails.
333+
* Use `m` instead of `2*m` in the denominator of `u[1]`: code works for constant
334+
solution, but fails (as it should) for a quadratic one.
335335
* Use `b*dt` instead of `b*dt/2` in the updating formula for `u[n+1]`
336-
in case of linear damping: constant and quadratic fail.
336+
in case of linear damping: constant and quadratic both fail.
337337
* Use `F[n+1]` instead of `F[n]` in case of linear or quadratic damping:
338338
constant solution works, quadratic fails.
339339

340-
We realize that the constant solution is very useful to catch bugs because
340+
We realize that the constant solution is very useful for catching certain bugs because
341341
of its simplicity (easy to predict what the different terms in the
342-
formula should evaluate to), while it seems the quadratic solution is
343-
capable of detecting all other types of typos in the scheme (?).
344-
This results demonstrates why we focus so much on exact, simple polynomial
342+
formula should evaluate to), while the quadratic solution seems
343+
capable of detecting all (?) other kinds of typos in the scheme.
344+
These results demonstrate why we focus so much on exact, simple polynomial
345345
solutions of the numerical schemes in these writings.
346346

347347
# More: classes, cases with pendulum approx u vs sin(u),
@@ -448,7 +448,7 @@ u^{\prime} &= v\tp
448448
label{vib:ode2:EulerCromer:ueq}
449449
\end{align}
450450
!et
451-
The idea is to step (ref{vib:ode2:EulerCromer:veq}) forward using
451+
Again, the idea is to step (ref{vib:ode2:EulerCromer:veq}) forward using
452452
a standard Forward Euler method, while we update $u$ from
453453
(ref{vib:ode2:EulerCromer:ueq}) with a Backward Euler method,
454454
utilizing the recent, computed $v^{n+1}$ value. In detail,
@@ -617,7 +617,7 @@ periods. Define
617617
!bt
618618
\[ g(u,v) = \frac{1}{m}(F(t)-s(u)-f(v))\tp\]
619619
!et
620-
The algorithm is explicit and features these simple steps:
620+
The algorithm is explicit and features these steps:
621621

622622
!bt
623623
\begin{align}

doc/.src/chapters/vib/vib_undamped.do.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,15 +2799,15 @@ in operator notation as
27992799
!bt
28002800
\begin{align}
28012801
\lbrack D_t u &= v\rbrack^{n+\half},\\
2802-
\lbrack D_t v &= -\omega u\rbrack^{n+1}
2802+
\lbrack D_t v &= -\omega^2 u\rbrack^{n+1}
28032803
\tp
28042804
\end{align}
28052805
!et
28062806
or if we switch the sequence of the equations:
28072807

28082808
!bt
28092809
\begin{align}
2810-
\lbrack D_t v &= -\omega u\rbrack^{n},\\
2810+
\lbrack D_t v &= -\omega^2 u\rbrack^{n},\\
28112811
\lbrack D_t u &= v\rbrack^{n+\half}
28122812
\tp
28132813
\end{align}

doc/Trash/vib/html/._vib-sol000.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
99
<meta name="description" content="Finite Difference Computing for Oscillatory Phenomena">
10-
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),resonance">
10+
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),pendulum simple,pendulum physical,free body diagram dynamic,free body diagram animated,pendulum elastic,differential-algebraic equation,constrained motion,round-off error,scaling,resonance">
1111

1212
<title>Finite Difference Computing for Oscillatory Phenomena</title>
1313

@@ -662,7 +662,7 @@
662662
<center>[3] <b>Department of Process, Energy and Environmental Technology, University College of Southeast Norway</b></center>
663663
<br>
664664
<p>
665-
<center><h4>Dec 1, 2016</h4></center> <!-- date -->
665+
<center><h4>Dec 2, 2016</h4></center> <!-- date -->
666666
<br>
667667
<p>
668668
<!-- Externaldocuments: ../../../../../decay-book/doc/.src/book/book -->

doc/Trash/vib/html/._vib-sol001.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
99
<meta name="description" content="Finite Difference Computing for Oscillatory Phenomena">
10-
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),resonance">
10+
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),pendulum simple,pendulum physical,free body diagram dynamic,free body diagram animated,pendulum elastic,differential-algebraic equation,constrained motion,round-off error,scaling,resonance">
1111

1212
<title>Finite Difference Computing for Oscillatory Phenomena</title>
1313

doc/Trash/vib/html/._vib-sol002.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
88
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
99
<meta name="description" content="Finite Difference Computing for Oscillatory Phenomena">
10-
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),resonance">
10+
<meta name="keywords" content="vibration ODE,oscillations,mechanical vibrations,angular frequency,period (of oscillations),frequency (of oscillations),Hz (unit),mesh finite differences,mesh function,discretization of domain,centered difference,finite differences centered,Verlet integration,Stoermer's method,Leapfrog method,FD operator notation,vectorization,test function,pytest,nose,verification hand calculations,unit testing,zeros,verification polynomial solutions,assert,verification convergence rates,error norm,slope marker (in convergence plots),SciTools,making movies,animation,WebM (video format),Ogg (video format),MP4 (video format),Flash (video format),video formats,HTML5 video tag,ImageMagic,Bokeh,sympy,error mesh function,error global,error norm,norm,stability criterion,1st-order ODE,2nd-order ODE,Odespy,phase plane plot,mechanical energy,energy principle,kinetic energy,potential energy,spring constant,stiffness,Newton's 2nd law,error norm,forward-backward scheme,Euler-Cromer scheme,semi-implicit Euler,semi-explicit Euler,symplectic scheme,verification convergence rates,Stoermer-Verlet algorithm,staggered mesh,staggered Euler-Cromer scheme,alternating mesh,nonlinear restoring force,nonlinear spring,forced vibrations,geometric mean,averaging geometric,DOF (degree of freedom),pendulum simple,pendulum physical,free body diagram dynamic,free body diagram animated,pendulum elastic,differential-algebraic equation,constrained motion,round-off error,scaling,resonance">
1111

1212
<title>Finite Difference Computing for Oscillatory Phenomena</title>
1313

@@ -3758,7 +3758,7 @@ <h2 id="vib:model2x2:staggered">The Euler-Cromer scheme on a staggered mesh</h2>
37583758
\begin{align}
37593759
\lbrack D_t u &= v\rbrack^{n+\half},
37603760
\tag{63}\\
3761-
\lbrack D_t v &= -\omega u\rbrack^{n+1}
3761+
\lbrack D_t v &= -\omega^2 u\rbrack^{n+1}
37623762
\tp
37633763
\tag{64}
37643764
\end{align}
@@ -3768,7 +3768,7 @@ <h2 id="vib:model2x2:staggered">The Euler-Cromer scheme on a staggered mesh</h2>
37683768

37693769
$$
37703770
\begin{align}
3771-
\lbrack D_t v &= -\omega u\rbrack^{n},
3771+
\lbrack D_t v &= -\omega^2 u\rbrack^{n},
37723772
\tag{65}\\
37733773
\lbrack D_t u &= v\rbrack^{n+\half}
37743774
\tp

0 commit comments

Comments
 (0)