Partial Differential Equations 7.3 Hyperbolic Equations: 7.3-1 The Vibrating String Problem
Partial Differential Equations 7.3 Hyperbolic Equations: 7.3-1 The Vibrating String Problem
A
0 L x 0 x x + x x
Figure 7.3-1 The shape of the string and the forces acting on a small portion of it.
Figure 7.3-1 shows the transverse displacement u(x,t) of a string stretched along the x-axis
between x = 0 and x = L. The string is free to vibrate in a fixed plane through the x-axis. The
displacement u(x,t) might be obtained from the solution of a PDE that describes the motion
of the string as a function of time. The PDE in this case is formulated from the physical law
that is the conservation of momentum or force balance. The following assumptions are made
to simplify the model
Let denotes the magnitude of the string tension that is assumed to be constant throughout
the motion since the change in the length of the string is negligible during its motion.
Consider a small portion of the string between 2 points A and B located at x and x + x as
shown in Figure 7.3-1. Let 1 and 2 be the tensions at the points A and B then |1| = |2| = .
Making a force balance in the vertical direction with positive pointing upward, we obtain
Fy = may
2u
sin + sin = may = x
t 2
u u
sin tan = (x, t) and sin tan = (x + x, t)
x x
21
u u 2u
(x, t) + (x + x, t) = x 2
x x t
u u
( x x , t ) ( x, t ) 2 u
x x =
x t 2
As x 0
2u 2u
x 2
=
t 2
The expression is known as the wave velocity and will be denoted as c, therefore the
hyperbolic equation that describes the string vibration is
2u 2 u
2
= c
t 2 x 2
An explicit finite difference equation using a second order central differencing for both the
space and time derivatives is known as the midpoint Leapfrog method
where the subscript i indicates x value and the superscript n indicate t value.
G r id p o in t in v o lv e d in s p a c e d iff e r e n c e
n
t
G r id p o in t in v o lv e d in t im e d iffe r e n c e
tn+1
x i- 1 xi x i+ 1
Figure 7.3-2 A computational diagram for the midpoint Leapfrog method.
t
The expression c is known as the Courant number and will be denoted as Co, hence
x
uin 1 = Co2( uin1 + uin1 ) + 2(1 Co2) uin uin 1
22
Since the best solution is obtained for the value of Co equal to one, we choose x and t so
t
that c = 1. Hence
x
A banjo string is 80-cm long with a mass of 1.0 gm. It is stretched with a tension of
3.8580107 dyne (gmcm/s2). At a point 20 cm from one end it is pulled 0.6 cm from the
equilibrium position and then released. Find the displacements along the string as a function
of time. Use x = 10 cm. How long does it take to complete one cycle of motion? From this,
compute the frequency of the vibration.
Solution
2u 2 u
2
= c
t 2 x 2
3.8587
where c = = = 5.5556104 cm/s
1 / 80
Since the best solution is obtained for the value of Co equal to one, we choose t so that c
t
= 1. Hence
x
1
and t = x = 10/5.5556104 = 1.810-4 sec
c
We need the values of u from the previous two times step to evaluate uin 1 . Therefore the
u
first time step requires the initial velocity, , of the string so that we can apply the central
t
difference approximation
ui1 ui1 u
=
2 t t
23
For this problem, the string is released from rest. Hence
u
= 0 ui1 = ui1
t
For t = 0 (n = 0)
ui1 = ui01 + ui01 ui1 = ui01 + ui01 ui1 ui1 = 0.5( ui01 + ui01 )
Table 7.4-1 lists the MATLAB program and the computational results that show the cyclic
nature of the wave equation as shown in Figure 7.4-1. The original displacements are
reproduces every 16 time steps. The frequency of the vibration is then
1 1
f= = = 347.2 cycles/sec
16 t 16 1.8 4
Table 7.4-1 An example of the explicit method for hyperbolic equation ---------------
%
% Example 7.4-1, wave equation with Midpoint Leapfrog method
%
un=[0 0.3 0.6 0.5 0.4 0.3 0.2 0.1 0];
unp1=un;ix=length(un);ix1=ix-1;
for i=2:ix1
unp1(i)=.5*(un(i-1)+un(i+1));
end
for n=0:20
fprintf('%3.0f %5.2f %5.2f %5.2f %5.2f %5.2f %5.2f %5.2f %5.2f %5.2f\n',n,un)
unm1=un;un=unp1;
for i=2:ix1
unp1(i)=un(i+1)+un(i-1)-unm1(i);
end
end
>> ex7d4d1
0 0.00 0.30 0.60 0.50 0.40 0.30 0.20 0.10 0.00
1 0.00 0.30 0.40 0.50 0.40 0.30 0.20 0.10 0.00
2 0.00 0.10 0.20 0.30 0.40 0.30 0.20 0.10 0.00
3 0.00 -0.10 0.00 0.10 0.20 0.30 0.20 0.10 0.00
4 0.00 -0.10 -0.20 -0.10 0.00 0.10 0.20 0.10 0.00
5 0.00 -0.10 -0.20 -0.30 -0.20 -0.10 0.00 0.10 0.00
6 0.00 -0.10 -0.20 -0.30 -0.40 -0.30 -0.20 -0.10 0.00
7 0.00 -0.10 -0.20 -0.30 -0.40 -0.50 -0.40 -0.30 0.00
8 0.00 -0.10 -0.20 -0.30 -0.40 -0.50 -0.60 -0.30 0.00
24
9 0.00 -0.10 -0.20 -0.30 -0.40 -0.50 -0.40 -0.30 0.00
10 0.00 -0.10 -0.20 -0.30 -0.40 -0.30 -0.20 -0.10 0.00
11 0.00 -0.10 -0.20 -0.30 -0.20 -0.10 0.00 0.10 0.00
12 0.00 -0.10 -0.20 -0.10 0.00 0.10 0.20 0.10 0.00
13 0.00 -0.10 -0.00 0.10 0.20 0.30 0.20 0.10 0.00
14 0.00 0.10 0.20 0.30 0.40 0.30 0.20 0.10 0.00
15 0.00 0.30 0.40 0.50 0.40 0.30 0.20 0.10 0.00
16 0.00 0.30 0.60 0.50 0.40 0.30 0.20 0.10 0.00
17 0.00 0.30 0.40 0.50 0.40 0.30 0.20 0.10 0.00
18 0.00 0.10 0.20 0.30 0.40 0.30 0.20 0.10 0.00
19 0.00 -0.10 -0.00 0.10 0.20 0.30 0.20 0.10 0.00
20 0.00 -0.10 -0.20 -0.10 -0.00 0.10 0.20 0.10 0.00
__________________________________________________________________________
0 .6 t= 0 , 1 6 t 0 .6 t= 2 t, 1 4 t
u u
0
40 80
x 0
40 80
x
-0 .6 -0 .6
0 .6 0 .6
t= 4 t, 1 2 t t= 6 t
u u
0
40 80
x 0
40 80
x
-0 .6 -0 .6
0 .6 0 .6
t= 8 t t= 1 0 t
u u
0
40
x 0
40 80
x
80
-0 .6 -0 .6
Figure 7.3-3 The string displacements are reproduced every 16 time steps.
25