Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: tidied up notebooks and examples for paper submission #22

Merged
merged 9 commits into from
Jun 29, 2023
Prev Previous commit
Next Next commit
examples: minor tidy up in examples scripts
  • Loading branch information
EdCaunt committed Jun 29, 2023
commit 8d37a479c4da5df37e42ae2fa93626629cd809fe
4 changes: 1 addition & 3 deletions examples/infrasound/2d_infrasound_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@


src_coords = np.array([4800., 2250.])[np.newaxis, :]
# rec_coords = np.array([[2000., 4400.], [7505., 3025.],
# [7200., 1275.], [2150., 3300.],
# [3000., 1000.], [6505, 4500.]])

rec_coords = np.array([[3000., 2250.], [2000., 1800.],
[1000., 1600.], [6500., 2300.],
[7500., 1800.], [8500, 1500.],
Expand Down
19 changes: 10 additions & 9 deletions examples/vti/2D_vti_fletcher_plessix.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"""
Simple example implementing a free-surface with Fletcher et al's VTI
formulation. This code will save four snapshots at intervals of 0.2*tn,
where tn is the end time (zero timestep will not be outputted). This
code will use real-world topography taken from a Digital Elevation Map
(DEM) of Mt St Helens, USA. The constant material properties ensure all
reflections are products of the immersed boundary treatment, rather then
resulting from any discontinuity in impedence. Alternatively, the
formulation of Plessix and Cao 2011 can be used (assuming locally-constant)
parameters.
Simple example implementing a free-surface with ether Duveneck/Plessix VTI
or Fletcher et al's VTI formulation. This code will save four snapshots at
intervals of 0.2*tn, where tn is the end time (zero timestep will not be
outputted). This code will use real-world topography taken from a Digital
Elevation Map (DEM) of Mt St Helens, USA. The constant material properties
ensure all reflections are products of the immersed boundary treatment,
rather than resulting from any discontinuity in impedence. Alternatively,
the formulation of Plessix and Cao 2011 can be used (assuming
locally-constant) parameters. This is equivelant to the formulation of
Duveneck et al 2008.
"""

import matplotlib.pyplot as plt
Expand Down