16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

214 CHAPTER 5. LINEAR PDE MODELS. PART 1<br />

solution isn't too bad, but not great either. Increasing the n value, Vectoria<br />

observes an increasingly better ¯t. The reader should be the judge of how many<br />

terms su±ce to give a good ¯t for the parameters chosen.<br />

Although reasonably satis¯ed that the quoted Fourier series expansion is<br />

correct, Vectoria still isn't entirely happy until the actual motion predicted<br />

by the formula is observed. After all, it is not obvious from the series solution<br />

exactly what the behavior of the string is after being struck. So the displacement<br />

Ã(x; t) is animated for the time interval t = 0 to 50. First, the time variable t<br />

must be unassigned. Otherwise, Maple will remember the value t =0usedto<br />

check the initial velocity pro¯le.<br />

> unassign('t'):<br />

Finally, the animation command is given with 100 frames being used.<br />

> animate(plot,[psi,x=0..a],t=0..50,frames=100,thickness=2);<br />

On running the animation, Vectoria observes that the wave form begins to grow<br />

in the region where the string was struck. This makes intuitive sense. Because<br />

thewaveformiscreatedontheleftsideofthestring,itthenmoveswithwave<br />

velocity c to the right and re°ects o® the boundary at x = a. On re°ection<br />

the wave form is inverted, a characteristic feature for a ¯xed-ends boundary<br />

condition. The wave then propagates to the left boundary at x =0before<br />

inverting again and repeating the oscillatory behavior.<br />

Finally, with a feeling of accomplishment, Vectoria is able to appreciate the<br />

deeper content underlying the simple remarks made by Ingrid Bergman and<br />

Humphrey Bogart. She will be even more content if Mike phones soon.<br />

PROBLEMS:<br />

Problem 5-3: Plucked string<br />

An elastic string ¯xed between x =0andL, and initially at rest, is \plucked,"<br />

its initial shape being given by the following symmetric triangular pro¯le,<br />

Ã(x; 0) =<br />

½ 2 hx=L; 0 · x · L=2;<br />

2 h (L ¡ x)=L; L=2 · x · L:<br />

Verify that the motion for t>0 may be described by the Fourier series solution<br />

8 h<br />

Ã(x; t) =<br />

¼2 1X sin(n¼=2)<br />

n<br />

n=1<br />

2 sin(n¼x=L)cos(n¼ct=L)<br />

and animate the solution for parameter values of your own choosing.<br />

Problem 5-4: A striking piano hammer<br />

A piano string ¯xed between x =0 anda is struck by a piano hammer in a<br />

region of width d centered at x=x0. Its initial velocity distribution is<br />

½<br />

Ã(x; _ v cos(¼ (x ¡ x0)=d); jx ¡ x0j d=2:

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

Saved successfully!

Ooh no, something went wrong!