Lec10 Hyperbolic
Lec10 Hyperbolic
o verify the general analytical solution of (1). Hint: See Problem 15.1.3.
Wave Equation (Hyperbolic Equation)
olic Problems @ 2
u
2
ve Equation Model Problem r u= 2
@t
wave equation with one space variable
∂ 2u ∂ 2u
Model problem in2one= dimension (1)
∂t ∂x2
ns the8vibration
2
of a string (transverse
2
vibration in a plane) or the vibration in a rod
@ @
>
tudinal
> vibration).
2 u(x,It t)
is an example
= @t2ofu(x,a second-order
t) linear differential equation of the
bolic>
@x
>
<type. If Equation (1) is used to model the vibrating string, then u(x, t) represents 1
flection at time t of a point on the string whose coordinate is x when theu(x, stringt)is = 2 [f (x + t) + f (x t)]
.
u(0, t) = u(1, t) = 0
>
>
>
o pose
: a definite model problem, we suppose that the points on the string have
>
inates x in theu(x, 0) 0 !=x ! 1f(see
interval (x)Figure 15.7). Let us suppose that at time t = 0,
flections satisfy equations u(x, 0) = f (x) and u t (x, 0) = 0. Assume also that the
of the string remain fixed. Then u(0, t) = u(1, t) = 0. A fully defined boundary-value
u 1
ut (x, 0) = 2 [f 0 (x) f 0 (x)] = 0
u(x, t)
x
0 x 1
Thursday, 6 February 20
Numerical Solution
@2 @2
@x2 u(x, t) = @t2 u(x, t) 15.2 Hyperbolic Pro
FIGURE 15.10
Wave equation:
Problem: when Explicit
t=0, how stencil last
to manage term on RHS (x, t " k)
Thursday, 6 February 20
The boundary conditions in Problem (2) can be written as
Problem: when t=0, how to manage last term on RHS ?
Solution: At t=0,
1
[u(x, k) u(x, k)] = 0
2k
Eliminating u(x,-k),
1 (because u(x, 0) = f (x))
u(x, k) = ⇢ [f (x + h) + f (x h)] + (1 ⇢)f (x)
2
Thursday, 6 February 20
! Hyperbolic pde problem solved by discretization (f)
program hyperbolic
integer, parameter :: n = 10, m = 20
real, parameter :: h = 0.1, k = 0.05
real, dimension(0:n) ! :: u,v,w
integer! ! ! ! :: i,j
real! ! ! ! ! :: t, rho, x