27.12.2012 Views

Wave Propagation in Linear Media | re-examined

Wave Propagation in Linear Media | re-examined

Wave Propagation in Linear Media | re-examined

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

8.4 Test of the package<br />

-200 -150 -100 -50<br />

2<br />

1<br />

-1<br />

-2<br />

The examples show that the <strong>in</strong>itial conditions a<strong>re</strong> met. In order to test if the boundary<br />

conditions a<strong>re</strong> satis ed, we sum up the parts of the wave function on either side of the barrier<br />

edge and compute their di e<strong>re</strong>nce for a number of po<strong>in</strong>ts along the time axis. We then plot<br />

the absolute value j (,0;T), (+0;T)j of this di e<strong>re</strong>nce. Let us start with the triangular<br />

wave.<br />

Example 8.4.4<br />

In[4]:= x = 0;<br />

w = 0.2;<br />

k = 5;<br />

boundary = Table[ft,PhiInc[x,t,w,k,Shape->Tria]+<br />

PhiRef[x,t,w,k,Shape->Tria]-<br />

(PhiTrans[x,t,w,k,Shape->Tria]+<br />

PhiEvan[x,t,w,k,Shape->Tria])g,ft,0,20g];<br />

ListPlot[boundary/.fx_,y_g:>fx,Abs[y]g,PlotJo<strong>in</strong>ed->True,<br />

PlotRange->All];<br />

-7<br />

6. 10<br />

-7<br />

5. 10<br />

-7<br />

4. 10<br />

-7<br />

3. 10<br />

-7<br />

2. 10<br />

-7<br />

1. 10<br />

5 10 15 20<br />

207

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

Saved successfully!

Ooh no, something went wrong!