Dataset generation for the Vector Acoustic Wave Equation¶
In [7]:
from pyawd import VectorAcousticWaveDataset2D, VectorAcousticWaveDataset3D
In two dimensions¶
In [3]:
dataset_2d = VectorAcousticWaveDataset2D(1, nx=32, t=10, interrogators=[(-10, 0), (10, 0)], velocity_model="Marmousi")
In [4]:
dataset_2d.generate_video(0, "VAWD2D", 100)
Generating 100 images and saving to `VAWD2D.mp4`.
0%| | 0/100 [00:00<?, ?it/s]
In [11]:
%%HTML
<video width="640" controls>
<source src="VAWD2D.mp4" type="video/mp4">
</video>
In [5]:
dataset_2d.plot_item(0)
In [6]:
dataset_2d.plot_interrogators_response(0)
In 3 dimensions¶
In [8]:
dataset_3d = VectorAcousticWaveDataset3D(1, nx=32, t=10, interrogators=[(0, 10, 15), (0, -10, 15)], velocity_model=300.)
In [9]:
dataset_3d.plot_interrogators_response(0)
In [10]:
dataset_3d.generate_video(0, "VAWD3D", 300)
0%| | 0/334 [00:00<?, ?it/s]
In [12]:
%%HTML
<video width="640" controls>
<source src="VAWD3D.mp4" type="video/mp4">
</video>
In [ ]: