13.07.2014 Views

pdf 260K - Madagascar

pdf 260K - Madagascar

pdf 260K - Madagascar

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

14<br />

110 c a l l r s f w r i t e (Fo , u1 )<br />

111 end i f<br />

112 end do<br />

113 write ( 0 , ∗ )<br />

114<br />

115 c a l l exit ( 0 )<br />

116 end program Wave<br />

Your task is to modify the code to implement elliptically-anisotropic wave propagation<br />

according to equation<br />

∂ 2 P<br />

∂t 2 = V 2<br />

1 (x) ∂2 P<br />

∂x 2 1<br />

+ V 2<br />

2 (x) ∂2 P<br />

∂x 2 2<br />

+ F (x, t) (17)<br />

You can test your implementation using a constant velocity example shown in Figure<br />

2.<br />

Figure 2: Wavefield snapshot for<br />

propagation from a point-source<br />

in a homogeneous medium. Modify<br />

the code to make wave propagation<br />

anisotropic.<br />

1. Change directory to geo384w/hw1/code<br />

2. Run<br />

scons wave.vpl<br />

to compile and run the program and to observe a propagating wave on your<br />

screen.<br />

3. Open the file wave.c in your favorite editor and modify it to implement the<br />

wave operator from equation (17).<br />

4. Run

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

Saved successfully!

Ooh no, something went wrong!