
Appendix
C.
Solutions
to
odd-numbered
exercises
567
Figure
C.24.
The
computed
solution
of the
wave equation
in
Exercise
7.3.1.
Shown
are 30
snapshots,
plus
the
initial
displacement. Twenty subintervals
in
space
and 60
time
steps were used.
(b)
The
IBVP
is
with
c = 400 and 7
given
in the
statement
of the
exercise.
(c)
Using
piecewise
linear
finite
elements
and the RK4
method (with
h =
50/80
and
At
= 6 •
10~
4
),
we
computed
the
solution over
the
interval
0
<
t
<
0.06.
Four
snapshots
are
shown
in
Figure
C.25,
which shows
that
it
does take 0.06
seconds
for the
wave
to
reach
the
boundary. (The reader should notice
the
spurious
"wiggles"
in the
computed solution; these
are due to the
fact
that
the
true solution
is not
smooth.)
5.
It is not
possible
to
obtain
a
reasonable numerical solution using
finite
elements.
In
Figure
C.26,
we
display
the
result obtained using
h —
2.5-10~
3
and
At
=
3.75-10~
4
.
Three snapshots
are
shown.
7.
(a) The
weak
form
is
Appendix
C.
Solutions
to
odd-numbered exercises
'E
Q)
E
g
Ci
<IJ
'6
O
.
2
r-------~-------,--------~------~------~
-
0
.
2
~------~--------~------~--------~------~
o 0.2 0.4 0.6 0.8
x
567
Figure
C.24.
The computed solution
of
the wave equation in Exercise
7.3.1. Shown
are
30 snapshots, plus the initial displacement. Twenty subintervals
in space and
60
time steps were used.
(b)
The
IBVP
is
a
2
u 2 a
2
u
at
2
-
c ax
2
=
0,
0 < x <
50,
t >
0,
u(x,O) =
0,
0 < x <
50,
au
at
(x,O)
=
,(x),
0 < x <
50,
u(O,
t) = 0, t > 0,
u(50, t) =
0,
t >
0,
with c = 400
and
, given in
the
statement
of
the
exercise.
(c) Using piecewise linear finite elements
and
the
RK4
method
(with h = 50/80
and
.6.t
= 6 .
10-
4
),
we
computed
the
solution over
the
interval 0
~
t
~
0.06.
Four snapshots are shown in Figure
C.25, which shows
that
it does take 0.06
seconds for
the
wave
to
reach
the
boundary. (The reader should notice
the
spurious "wiggles" in
the
computed solution; these are due
to
the
fact
that
the
true
solution is not smooth.)
5.
It
is not possible
to
obtain a reasonable numerical solution using finite elements.
In
Figure C.26,
we
display
the
result obtained using h =
2.5.10-
3
and
.6.t
=
3.75.10-
4
•
Three snapshots are shown.
7.
(a)
The
weak form is
1
£
{a
2
u
au
dV}
It
o p(x)
(Jt2
(x, t)v(x) + k(x) ax (x, t)
dx
(x)
dx
= 0
f(x,
t)v(x)
dx