16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

278 CHAPTER 6. LINEAR PDE MODELS. PART 2<br />

To see Russell's animated di®usion equation solution, you will have to execute<br />

the program and use the animation tool bar.<br />

PROBLEMS:<br />

Problem 6-23: Numerical Instability<br />

In the text recipe, con¯rm that the solution becomes numerically unstable for<br />

r>0:5. Numerical instability is signaled by the appearance of increasingly<br />

wild oscillations in the solution as time increases.<br />

Problem 6-24: Comparison with exact solution<br />

Explore the change in the percentage error in the numerical mesh values at the<br />

endoftheruncomparedwiththeexactvaluesasM is increased.<br />

Problem 6-25: A di®erent pro¯le<br />

Modify the text recipe to produce an animated numerical solution for the initial<br />

temperature pro¯le T (x; 0) = 25 sin(¼x). Compare the numerical solution in<br />

the center of the rod with the exact solution as a function of time. At what<br />

time is the temperature in the middle equal to one-quarter of the initial value?<br />

6.3.2 Enjoy the Klein{Gordon Vibes<br />

The world is never quiet, even its silence eternally resounds with the<br />

same notes, in vibrations which escape our ears.<br />

Albert Camus, French-Algerian philosopher, writer (1913{1960)<br />

After tackling the Excalibur heat-di®usion example, Russell decides to numerically<br />

investigate the small transverse oscillations of a light stretched horizontal<br />

string embedded in a stretched vertical elastic membrane. In the absence of<br />

the membrane, the instantaneous displacement Ã(x; t) of the string satis¯es the<br />

one-dimensional wave equation. The e®ect of the membrane is to add an additional<br />

Hooke's law restoring force, proportional to Ã, on the string, which tends<br />

to speed up the vibrations. The relevant transverse wave equation, called the<br />

Klein{Gordon equation (KGE), then is<br />

@2Ã @x2 ¡ @2Ã = aÃ; (6.21)<br />

@t2 where a is the elastic coe±cient of the membrane and the wave speed has been<br />

set equal to unity.<br />

If the string is of unit length and ¯xed at both ends, the boundary conditions<br />

are Ã(0;t)=Ã(1;t)=0fort ¸ 0. Supposing that the string has the initial<br />

transverse pro¯le f ´ Ã(x; 0) = x (1 ¡ x) 5 and velocity g ´ _ Ã(x; 0) = x 3 (1¡ x),<br />

Russell wishes to numerically solve the KGE and animate the oscillations.<br />

At the internal mesh points, he uses the standard CDAs for the second<br />

derivatives and approximates the inhomogeneous term with aÃi;j. Thenumer-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!