salvus.mesh
salvus.mesh salvus mesh The Salvus meshing module.
Functions
nearest_vertical()
nearest_vertical()def nearest_vertical(
ref_current: npt.NDArray,
ref_new: npt.NDArray,
idx_new: npt.NDArray,
ref_out: npt.NDArray,
idx_out: npt.NDArray,
) -> tuple[npt.NDArray, npt.NDArray]: ...NOTE: This function is deprecated and will be removed in a future release.
Function meant for the “notfound_reduction” in an enclosing element search.
Will choose the point with the smallest value of the third reference coordinate.
Parameters
ref_currentnpt.NDArray — The current reference coordinates.ref_newnpt.NDArray — The proposed new reference coordinates.idx_newnpt.NDArray — The proposed new element index.ref_outnpt.NDArray — Output array for the chosen reference coordinate (required because this function can be compiled as a numba generalized ufunc).idx_outnpt.NDArray — Output array for the chosen element ID (required because this function can be compiled as a numba generalized ufunc).
Returns tuple[npt.NDArray, npt.NDArray]
Exceptions
SalvusMeshDeprecationWarning
SalvusMeshDeprecationWarningWarns about deprecated features.
SalvusMeshWarning
SalvusMeshWarningBase class for all SalvusMesh warnings.
Submodules
salvus.mesh.algorithmssalvus.mesh.data_structuressalvus.mesh.layered_meshingsalvus.mesh.recipessalvus.mesh.simple_meshsalvus.mesh.tools
Used in tutorials
- 2-D Global Gradients without Salvus*Project*
- Data Adaptive Mesh Masking
- Global Seismic Wave Propagation
- Gradient Test Single Physics
- Gradient Test TTI Media
- Manual Gradient Computation
- Maximum Amplitude Distributions
- On-the-fly Fourier Transform
- Point Sources and Receivers for the Wave Equation
- Side-set Sources and Receivers for the Wave Equation
- Working with Salvus' wavefield output files
- Working with variable models and extracting slices