salvus.project.configuration.model.background.homogeneous
salvus.project.configuration.model.background.homogeneous salvus project configuration model background homogeneous Homogeneous background models.
Classes
FromMaterial
FromMaterialclass FromMaterial(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(self, material: Material): ...General homogeneous background model from any material.
General homogeneous background model from any material.
materialMaterial — The material.s
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
name()
name()def name(self) -> str | typing.Callable: ...Name of the model.
to_json()
to_json()def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...Serialize the object to a dictionary that can be written to JSON.
external_file_hashtypes — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.timertypes — Execution timer.log_to_loggerbool — Log timings to the logger.commtypes — MPI communicator, if any.
IsotropicAcoustic
IsotropicAcousticclass IsotropicAcoustic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(self, rho: float, vp: float): ...Base class for background models.
Isotropic acoustic background model.
rhofloat — The density.vpfloat — The p-wave velocity.
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
name()
name()def name(self) -> str | typing.Callable: ...Name of the model.
to_json()
to_json()def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...Serialize the object to a dictionary that can be written to JSON.
external_file_hashtypes — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.timertypes — Execution timer.log_to_loggerbool — Log timings to the logger.commtypes — MPI communicator, if any.
IsotropicElastic
IsotropicElasticclass IsotropicElastic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(self, rho: float, vp: float, vs: float): ...Base class for background models.
Isotropic elastic background model.
rhofloat — The density.vpfloat — The p-wave velocity.vsfloat — The s-wave velocity.
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
name()
name()def name(self) -> str | typing.Callable: ...Name of the model.
to_json()
to_json()def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...Serialize the object to a dictionary that can be written to JSON.
external_file_hashtypes — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.timertypes — Execution timer.log_to_loggerbool — Log timings to the logger.commtypes — MPI communicator, if any.
IsotropicViscoElastic
IsotropicViscoElasticclass IsotropicViscoElastic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(
self, rho: float, vp: float, vs: float, qkappa: float, qmu: float
) -> None: ...Base class for background models.
Viscoelastic isotropic background model.
rhofloat — Density.vpfloat — P-wave velocity.vsfloat — S-wave velocity.qkappafloat — Qkappa.qmufloat — Qmu.
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
name()
name()def name(self) -> str | typing.Callable: ...Name of the model.
to_json()
to_json()def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...Serialize the object to a dictionary that can be written to JSON.
external_file_hashtypes — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.timertypes — Execution timer.log_to_loggerbool — Log timings to the logger.commtypes — MPI communicator, if any.
Used in tutorials
- Creating and plotting custom gathers from Salvus' receiver outputs
- Equivalence of Filtering STFs and Filtering Synthetics
- Full-Waveform Inversion
- How to combine (fuse) measured and simulated data in Salvus
- Inverting for homogeneous material
- Lamb's problem
- Materials 4: Simulating with Materials and Exotic Waveforms from Anisotropy
- Mesh-to-mesh interpolation
- My First Salvus Inversion
- Simple surface topography
- Surface topography
- Using the xarray structured data interface within Salvus
- Wavefield Focusing with Phased Arrays in 2D