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.

7.3. SIMULATING SOLITON COLLISIONS 317<br />

phase factor e i¼ = ¡1, indicating that the kink and antikink solitary waves are<br />

indeed solitons. Finally, the CPU time is calculated.<br />

> cpu:=(time()-begin)*seconds;<br />

cpu := 3:024 seconds<br />

and is about 3 seconds on a 3-GHz PC.<br />

PROBLEMS:<br />

Problem 7-21: Ampli¯ed kink{antikink input<br />

In the text recipe, double the amplitudes of the input kink and antikink solitarywave<br />

pro¯les. Remembering to also double the value 2¼ in the initialization<br />

statement to avoid causing an end-e®ect problem, run the ¯le with the ampli¯ed<br />

input and interpret the outcome.<br />

Problem 7-22: Kink{kink collision<br />

Modify the recipe to simulate the collision of a kink solitary wave with another<br />

kink. Discuss the observed behavior.<br />

Problem 7-23: Antikink{antikink collision<br />

Modify the recipe to simulate the collision of an antikink solitary wave with<br />

another antikink. Discuss the observed behavior.<br />

Problem 7-24: Rectangular mesh<br />

Solve the problem of the text recipe using an explicit scheme based on a rectangular<br />

mesh.<br />

Problem 7-25: Interacting laser beams<br />

The interaction of two intense laser pulses of di®erent frequencies as they pass<br />

through each other in opposite directions in a certain resonant absorbing °uid<br />

can be described [RE76] by the following normalized PDEs for the laser intensities<br />

U and V ,<br />

@U @U<br />

+<br />

@x @y = ¡g1<br />

@V @V<br />

UV ¡ ®U; ¡<br />

@x @y = ¡g2 UV + ®V:<br />

Here x is the normalized distance inside the °uid medium of length one unit, y<br />

the normalized time, g1 > 0andg2 > 0arethe\gain"coe±cients,and® ¸ 0<br />

the absorption coe±cient. The U pulse travels in the positive x direction, while<br />

the V pulse moves in the negative x direction.<br />

(a) Find the characteristic directions along which the PDEs reduce to ODEs.<br />

(b) Devise an explicit numerical scheme that integrates the ODEs along the<br />

characteristic directions assuming that there are no pulses initially inside<br />

the °uid (U(x; 0) = V (x; 0) = 0 for 0 < x < 1) and identical ¯niteduration<br />

U and V pulses are fed in at opposite ends (U(0;y)=V (1;y)=<br />

f(y) for0· y · Y = 1 and zero for y>Y).<br />

2<br />

(c) Numerically solve the equations and animate the results, assuming that<br />

f(y) =1,g1 =0:4, g2 = 20, and (a) ® =0,(b)® =0:5.<br />

(d) Discuss the behavior of the two pulses as revealed in the animation.

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

Saved successfully!

Ooh no, something went wrong!