salvus.project.configuration.simulation_configuration
salvus.project.configuration.simulation_configuration salvus project configuration simulation_configuration The simulation configuration.
Classes
SimulationConfiguration
SimulationConfigurationclass SimulationConfiguration(
salvus.project.configuration.simulation_configuration._SimulationConfigurationBase
):
def __init__(
self,
name: str,
elements_per_wavelength: salvus._core.types.float_,
tensor_order: salvus._core.types.int_ = 1,
min_period_in_seconds: salvus._core.types.float_ | None = None,
max_frequency_in_hertz: salvus._core.types.float_ | None = None,
max_depth_in_meters: salvus._core.types.float_ | None = None,
model_configuration: ModelConfiguration | salvus.material.Material,
topography_configuration: TopographyConfiguration | None = None,
bathymetry_configuration: BathymetryConfiguration | None = None,
absorbing_boundaries: AbsorbingBoundaryParameters | None = None,
event_configuration: (
EventConfiguration | dict[str, EventConfiguration]
),
event_dependent_mesh_masking: str | typing.Callable | None = None,
) -> None: ...Base simulation configurations.
Simulation configuration assembling everything required to turn an abstract domain into a concrete waveform simulation.
namestr — Name of the simulation configuration.elements_per_wavelengthsalvus._core.types.float_ — Desired elements per wavelength.tensor_ordersalvus._core.types.int_ — The tensor order of the mesh.min_period_in_secondssalvus._core.types.float_ | None — Minimum mesh period in seconds.max_frequency_in_hertzsalvus._core.types.float_ | None — Maximum mesh frequency in Hertz.max_depth_in_meterssalvus._core.types.float_ | None — Max depth in meters.model_configurationModelConfiguration | salvus.material.Material — The model configuration or homogeneous material.topography_configurationTopographyConfiguration | None — The topography configuration.bathymetry_configurationBathymetryConfiguration | None — The bathymetry configuration.absorbing_boundariesAbsorbingBoundaryParameters | None — The absorbing boundary configuration.event_configurationEventConfiguration | dict[str, EventConfiguration] — Event configuration.event_dependent_mesh_maskingstr | typing.Callable | None — Optional callback function for event-dependent aperture masking of the mesh.
event_dependent_mesh_masking typing.Callable | None
event_dependent_mesh_masking typing.Callable | NoneGet the mesh masking function if available.
event_dependent_mesh_masking_str str | None
event_dependent_mesh_masking_str str | NoneGet the mesh masking function as string if available.
min_period_in_seconds float
min_period_in_seconds floatMinimum period in seconds.
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.
to_json()
to_json()def to_json(self) -> dict: ...Serialize the object to dictionary that can be written to JSON.
UnstructuredMeshSimulationConfiguration
UnstructuredMeshSimulationConfigurationclass UnstructuredMeshSimulationConfiguration(
salvus.project.configuration.simulation_configuration._SimulationConfigurationBase
):
def __init__(
self,
name: str,
unstructured_mesh: (
UnstructuredMesh | ChunkedMesh | Mesh | DistributedMesh
),
event_configuration: (
EventConfiguration | dict[str, EventConfiguration] | None
),
event_dependent_mesh_masking: str | typing.Callable | None = None,
): ...Base simulation configurations.
Directly use an unstructured mesh as a simulation configuration object.
namestr — Name of the simulation configuration.unstructured_meshUnstructuredMesh | ChunkedMesh | Mesh | DistributedMesh — Unstructured mesh object.event_configurationEventConfiguration | dict[str, EventConfiguration] | None — Event configuration.event_dependent_mesh_maskingstr | typing.Callable | None — Optional callback function for event-dependent aperture masking of the mesh.
event_dependent_mesh_masking typing.Callable | None
event_dependent_mesh_masking typing.Callable | NoneGet the mesh masking function if available.
event_dependent_mesh_masking_str str | None
event_dependent_mesh_masking_str str | NoneGet the mesh masking function as string if available.
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.
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
- 2-D Global-scale simulations w/ heterogeneous models
- Acoustic simulations in isotropic and anisotropic media
- Attenuation
- Conical Pitting
- Constructing the Starting Model
- Continental Scale FWI - Part 2: Forward simulations
- Continental Scale FWI Tutorial - Part 3: Data selection and misfit definition
- Continental-scale Simulations
- Creating and plotting custom gathers from Salvus' receiver outputs
- Equivalence of Filtering STFs and Filtering Synthetics
- External 2D Meshes
- External 3D Meshes
- Full-Waveform Inversion
- Full-Waveform Inversion
- How to combine (fuse) measured and simulated data in Salvus