PrincetonUniversity / SPECFEMPP

SPECFEM++ is a complete re-write of SPECFEM suite of packages (SPECFEM2D, SPECFEM3D, SPECFEM3D_GLOBE) using C++
https://specfem2d-kokkos.readthedocs.io/en/latest/
GNU General Public License v3.0
19 stars 9 forks source link

Pressure Seismogram #137

Open int-ptr-ptr opened 5 hours ago

int-ptr-ptr commented 5 hours ago

Is your feature request related to a problem? Please describe. A pressure seismogram is a feature in the original SPECFEM that would be beneficial to add in SPECFEM++.

Describe the solution you'd like One should be able to add -pressure to seismogram-type in the configuration file, and produce seismogram outputs for pressure at stations.

Additional context Add any other context or screenshots about the feature request here.

int-ptr-ptr commented 4 hours ago

For this to work, as well as making it easier for other seismogram types to be added, the current compute_seismograms routine may need to be reworked, since additional shared views may be needed.

Moreover, there is currently no good way to isolate code between seismogram types that need more than just a "use this field, instead"-type difference in implementation.

For our pressure case, we need to compute the divergence of the displacement field (or for the acoustic case, just take the acceleration field). I can see two ways of doing it: