Using interrogators¶

Interrogators are specific points where the (almost) continuous amplitude data can be interrogated. This allows to simulate the behaviour of measuring devices distributed through the field.

In PyAWD, the default interrogator is the center coordinate (0, 0). One can specify other interrogable points by passing a list of tuples at the construction of the dataset.

Common imports¶

In [1]:
from pyawd import VectorAcousticWaveDataset2D

Basic usage¶

In [2]:
dataset = VectorAcousticWaveDataset2D(1, velocity_model="Marmousi")
In [3]:
dataset.plot_item(0)
No description has been provided for this image

More advanced usage¶

One can also specify more interrogators at the dataset creation:

In [9]:
interrogators = [(-8, 0), (8, 0), (0, -8), (0, 8)]
dataset2 = VectorAcousticWaveDataset2D(1, nx=32, interrogators=interrogators, velocity_model="Marmousi")
In [10]:
dataset2.plot_item(0)
No description has been provided for this image
In [11]:
dataset2.plot_interrogators_response(0)
No description has been provided for this image

Video simulation¶

Finally, generating a video yields this simulation:

In [12]:
dataset2.generate_video(0, "example_interrogators", 100)
Generating 100 images and saving to `example_interrogators.mp4`.
  0%|          | 0/100 [00:00<?, ?it/s]
In [13]:
%%HTML
<video width="640" controls>
  <source src="example_interrogators.mp4" type="video/mp4">
</video>
In [ ]: