Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
A package for generating Pytorch datasets containing simulations of the acoustic wave propagation in custom velocity fields.
The equation of propagation of an acoustic wave is given by $\frac{d^2u}{dt^2} = c \nabla^2 u + f$, where
The package (along with the dependencies) is accessible via PyPI:
pip install pyawd
The API documentation is available here.
Basic help is provided for each class and function and is accessible via the Python help()
function.
We provide a bunch of Notebooks to start using the tool. They are presented in the examples directory. Those are readable online:
ScalarAcousticWavePropagation.ipynb
: an introduction to PDE solving and simulation using Devito applied on the scalar acoustic wave propagationVectorAcousticWavePropagation.ipynb
: an introduction to PDE solving and simulation using Devito applied on the vector acoustic wave propagationVectorAcousticWaveDataset.ipynb
: an introduction to the VectorAcousticWaveDataset possibilitiesMarmousi.ipynb
: a visualisation of the Marmousi velocity field used in the simulationsInterrogators.ipynb
: an introduction to the PyAWD Interrogators usageGenerateVectorAcousticWaveDataset.ipynb
: how to generate dataset using pyawd
SpatioTemporalVaryingWavePropagationSpeedField.ipynb
: how to create a spatio-temporal varying propagation fieldBasic imports:
from pyawd import *
Let us generate a Dataset made of 10 simulations. Each simulation is run in a $250\times 250$ matrix. We store the field state every $2$ seconds and we run the simulation for $10$ seconds:
dataset = VectorAcousticWaveDataset2D(2, nx=128, dt=2, t=10, velocity_model="Marmousi")
dataset.max_velocities[0] = 500
Then we plot the first simulation. The 🟀 character shows the interrogator position:
dataset.plot_item(0)
Which outputs the following figure:
By default, the point (0, 0)
contains an interrogator. This means that the continuous measurement on this position (at least with a $\Delta t=ddt$) can be plotted by:
dataset.plot_interrogators_response(0)
Using the VectorAcousticWaveDataset3D
class allows producing simulations in 3D:
dataset_3d = VectorAcousticWaveDataset3D(1, nx=32, t=10, interrogators=[(0, 10, 15), (0, -10, 15)], velocity_model=300.)
For visualisation, the method
dataset_3d.generate_video(0, "VAWD3D", 300)
generates the following video:
FAQs
A Pytorch dataset for Acoustic Wave Propagation
We found that pyawd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.