salvus.project.configuration.waveform_simulation_configuration
salvus.project.configuration.waveform_simulation_configuration salvus project configuration waveform_simulation_configuration The waveform simulation configuration.
Classes
WaveformSimulationConfiguration
WaveformSimulationConfigurationclass WaveformSimulationConfiguration(
salvus.flow.utils.deep_setters._DeepSetter,
salvus.flow.utils.serialization_helpers.SerializationMixin,
):
def __init__(
self,
start_time_in_seconds: salvus._core.types.float_ | None = None,
end_time_in_seconds: salvus._core.types.float_ | None = None,
time_step_in_seconds: salvus._core.types.float_ | None = None,
attenuation: bool = False,
spectral_element_order: salvus._core.types.int_ | None = None,
receiver_sampling_rate_in_time_steps: (
salvus._core.types.int_ | None
) = None,
boundary_conditions: (
Iterable[_BaseBoundary] | _BaseBoundary | None
) = None,
courant_number: salvus._core.types.float_ | None = None,
): ...Keeps track of the initial arguments passed to an objects and can later on serialize them to JSON document.
It will only consider whatever is passed in the init.
Detailed waveform simulation configuration options.
This is a restricted version of the default waveform simulation configuration that only allows setting some parameters.
Parameters
start_time_in_secondssalvus._core.types.float_ | None — The start time in seconds.end_time_in_secondssalvus._core.types.float_ | None — The end time in seconds.time_step_in_secondssalvus._core.types.float_ | None — The simulation time step in seconds.attenuationbool — Attenuation on/off.spectral_element_ordersalvus._core.types.int_ | None — The polynomial degree of the SEM shape functions.receiver_sampling_rate_in_time_stepssalvus._core.types.int_ | None — The sampling interval for receiver output as an interger multiple of time steps.boundary_conditionsIterable[_BaseBoundary] | _BaseBoundary | None — Specify boundary conditions. This is primarily meant for Dirichlet boundaries. Conditions specified here take precedence over the absorbing boundary parameters.courant_numbersalvus._core.types.float_ | None — Courant number used for the estimation of the time step. If not specified, default values of 0.6 (2-D) or 0.47 (3-D) will be used. Note thattime_step_in_secondstakes precedence in case that both parameters are defined.
Methods
from_json()
from_json()def from_json(d: builtins.dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dbuiltins.dict — Dictionary containing its init parameters and a few other things.
Returns Any
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
Parameters
ddict | _DeepSetter — The dictionary to set.
Returns None
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
Returns _DeepSetter
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
Returns dict
to_json()
to_json()def to_json(
self,
external_file_hash: str | None = None,
timer: Timer | None = None,
log_to_logger: bool = False,
comm: int | None = None,
) -> dict: ...Get a dictionary serialization of the object.
Parameters
external_file_hashstr | None — 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.timerTimer | None — Execution timer.log_to_loggerbool — Log timings to the logger.commint | None — MPI communicator, if any.
Returns dict
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
Returns None
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