Required
max_frequency_in_hertz| Type: | salvus._core.types.float_ |
| Description: | Max mesh frequency. |
class MeshConfiguration(
salvus.flow.utils.serialization_helpers.SerializationMixin
):
def __init__(
self,
max_frequency_in_hertz: salvus._core.types.float_,
elements_per_wavelength: salvus._core.types.float_,
tensor_order: salvus._core.types.int_ = 1,
max_depth_in_meters: salvus._core.types.float_ | None = None,
absorbing_boundaries: AbsorbingBoundaryParameters | None = None,
mask_generator: SurfaceMaskGenerator | RayMaskGenerator | None = None,
) -> None: ...| Type: | salvus._core.types.float_ |
| Description: | Max mesh frequency. |
| Type: | salvus._core.types.float_ |
| Description: | Elements per wavelength. |
| Type: | salvus._core.types.int_ |
| Default value: | 1 |
| Description: | Tensor order for the mesh. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Maximum depth in meters of the mesh. |
| Type: | AbsorbingBoundaryParameters | None |
| Default value: | None |
| Description: | Absorbing boundary configuration. |
| Type: | SurfaceMaskGenerator | RayMaskGenerator | None |
| Default value: | None |
| Description: | A mesh masking callback function. |
float)-Minimum mesh period in seconds.def from_json(d: builtins.dict) -> Any: ...| Type: | builtins.dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...| Type: | types |
| Default value: | None |
| Description: | 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. |
| Type: | types |
| Default value: | None |
| Description: | Execution timer. |
| Type: | bool |
| Default value: | False |
| Description: | Log timings to the logger. |
| Type: | types |
| Default value: | None |
| Description: | MPI communicator, if any. |
class ModelDependentMeshParameters(
salvus.flow.utils.serialization_helpers.SerializationMixin
):
def __init__(
self,
mesh_parameters: MeshConfiguration,
model_configuration: ModelConfiguration,
topography_configuration: TopographyConfiguration | None,
bathymetry_configuration: BathymetryConfiguration | None = None,
): ...| Type: | MeshConfiguration |
| Description: | The mesh parameters. |
| Type: | ModelConfiguration |
| Description: | Model configuration. |
| Type: | TopographyConfiguration | None |
| Description: | Configuration for the topography. |
| Type: | BathymetryConfiguration | None |
| Default value: | None |
| Description: | Configuration for the bathymetry. |
def from_json(d: builtins.dict) -> Any: ...| Type: | builtins.dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...| Type: | types |
| Default value: | None |
| Description: | 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. |
| Type: | types |
| Default value: | None |
| Description: | Execution timer. |
| Type: | bool |
| Default value: | False |
| Description: | Log timings to the logger. |
| Type: | types |
| Default value: | None |
| Description: | MPI communicator, if any. |
theta and phi are to be taken from the source's
reference frame, and are in general not equivalent to geographical
latitude and longitude.class SphericalSmoothieSemLateralRefinement(builtins.object):
def __init__(
self,
min_theta_in_degrees: salvus._core.types.float_,
max_theta_in_degrees: salvus._core.types.float_,
min_radius_in_meters: salvus._core.types.float_,
max_radius_in_meters: salvus._core.types.float_ | None = None,
min_phi_in_degrees: salvus._core.types.float_ | None = None,
max_phi_in_degrees: salvus._core.types.float_ | None = None,
) -> None: ...| Type: | salvus._core.types.float_ |
| Description: | Min theta refinement boundary. |
| Type: | salvus._core.types.float_ |
| Description: | Max theta refinement boundary. |
| Type: | salvus._core.types.float_ |
| Description: | Min radius of the refinement. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Max radius of the refinement. Defaults to None (which represents the surface of the Earth). |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Min phi refinement boundary. Defaults to None (which results in a refinement in a band around the globe). |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Max phi refinement boundary. Defaults to None (which results in a refinement in a band around the globe). |
def get_dict(self) -> dict: ...class SphericalSmoothieSemMeshConfiguration(
salvus.project.configuration.mesh_configuration._SphericalSmoothieSemMixin,
salvus.project.configuration.mesh_configuration.MeshConfiguration,
):
def __init__(
self,
elements_per_wavelength: salvus._core.types.float_,
source_latitude: salvus._core.types.float_,
source_longitude: salvus._core.types.float_,
num_lateral_elements: salvus._core.types.int_,
tensor_order: salvus._core.types.int_ = 1,
lateral_refinements: (
SphericalSmoothieSemLateralRefinement
| list[SphericalSmoothieSemLateralRefinement]
| None
) = None,
max_frequency_in_hertz: salvus._core.types.float_ | None = None,
min_period_in_seconds: salvus._core.types.float_ | None = None,
mask_generator: SurfaceMaskGenerator | RayMaskGenerator | None = None,
): ...| Type: | salvus._core.types.float_ |
| Description: | Elements per wavelength. |
| Type: | salvus._core.types.float_ |
| Description: | Latitude of the seismic source. |
| Type: | salvus._core.types.float_ |
| Description: | Longitude of the seismic source. |
| Type: | salvus._core.types.int_ |
| Description: | Number of lateral elements per hemisphere. |
| Type: | salvus._core.types.int_ |
| Default value: | 1 |
| Description: | Tensor order for the mesh. |
| Type: | SphericalSmoothieSemLateralRefinement | list[SphericalSmoothieSemLateralRefinement] | None |
| Default value: | None |
| Description: | A list of lateral refinements to add. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Max mesh frequency. |
| Type: | salvus._core.types.float_ | None |
| Default value: | None |
| Description: | Minimum period in seconds. |
| Type: | SurfaceMaskGenerator | RayMaskGenerator | None |
| Default value: | None |
| Description: | . An optional mesh masking callback. |
float)-Minimum mesh period in seconds.def from_json(d: builtins.dict) -> Any: ...| Type: | builtins.dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def get_lateral_refinements(self) -> list[dict] | None: ...def to_json(
self,
external_file_hash: types = None,
timer: types = None,
log_to_logger: bool = False,
comm: types = None,
) -> builtins.dict: ...| Type: | types |
| Default value: | None |
| Description: | 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. |
| Type: | types |
| Default value: | None |
| Description: | Execution timer. |
| Type: | bool |
| Default value: | False |
| Description: | Log timings to the logger. |
| Type: | types |
| Default value: | None |
| Description: | MPI communicator, if any. |