salvus.flow.simple_config.source.cartesian
salvus.flow.simple_config.source.cartesian salvus flow simple_config source cartesian Sources in a cartesian reference system.
Functions
parse()
parse()def parse(dict_sources: list[dict] | dict) -> list[_Base]: ...Parse a dictionary or a list of dictionaries to receiver objects.
dict_sourceslist[dict] | dict — Parse a list of sources (or just a single source) as a dictionary to the proper objects.
Classes
MomentTensorPoint2D
MomentTensorPoint2Dclass MomentTensorPoint2D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
mxx: float,
myy: float,
mxy: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Moment tensor source in a 2-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.mxxfloat — XX component of the moment in Nm.myyfloat — YY component of the moment in Nm.mxyfloat — XY component of the moment in Nm.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
MomentTensorPoint3D
MomentTensorPoint3Dclass MomentTensorPoint3D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
z: float,
mxx: float,
myy: float,
mzz: float,
myz: float,
mxz: float,
mxy: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Moment tensor source in a 3-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.zfloat — Z coordinate of the source in meter.mxxfloat — XX component of the moment in Nm.myyfloat — YY component of the moment in Nm.mzzfloat — ZZ component of the moment in Nm.myzfloat — YZ component of the moment in Nm.mxzfloat — XZ component of the moment in Nm.mxyfloat — XY component of the moment in Nm.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
ScalarGradientPoint2D
ScalarGradientPoint2Dclass ScalarGradientPoint2D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
fx: float,
fy: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 2D.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.fxfloat — Source amplitude scaling factor of X component.fyfloat — Source amplitude scaling factor of Y component.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
ScalarGradientPoint3D
ScalarGradientPoint3Dclass ScalarGradientPoint3D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
z: float,
fx: float,
fy: float,
fz: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 3D.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.zfloat — Z coordinate of the source in meter.fxfloat — Source amplitude scaling factor of X component.fyfloat — Source amplitude scaling factor of Y component.fzfloat — Source amplitude scaling factor of Z component.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
ScalarPoint2D
ScalarPoint2Dclass ScalarPoint2D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
f: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
): ...Scalar source in a 2-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.ffloat — Source amplitude scaling factor.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
ScalarPoint3D
ScalarPoint3Dclass ScalarPoint3D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
z: float,
f: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
): ...Scalar source in a 3-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.zfloat — Z coordinate of the source in meter.ffloat — Source amplitude scaling factor.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
SideSetMomentTensorPoint2D
SideSetMomentTensorPoint2Dclass SideSetMomentTensorPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
mxx: "float",
myy: "float",
mxy: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Moment tensor side-set source in a 2-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.mxx'float' — XX component of the moment in Nm.myy'float' — YY component of the moment in Nm.mxy'float' — XY component of the moment in Nm.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetMomentTensorPoint3D
SideSetMomentTensorPoint3Dclass SideSetMomentTensorPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
mxx: "float",
myy: "float",
mzz: "float",
myz: "float",
mxz: "float",
mxy: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Moment tensor side-set source in a 3-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.mxx'float' — XX component of the moment in Nm.myy'float' — YY component of the moment in Nm.mzz'float' — ZZ component of the moment in Nm.myz'float' — YZ component of the moment in Nm.mxz'float' — XZ component of the moment in Nm.mxy'float' — XY component of the moment in Nm.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetScalarGradientPoint2D
SideSetScalarGradientPoint2Dclass SideSetScalarGradientPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: "float",
fy: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 2D.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.fx'float' — Source amplitude scaling factor of X component.fy'float' — Source amplitude scaling factor of Y component.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetScalarGradientPoint3D
SideSetScalarGradientPoint3Dclass SideSetScalarGradientPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: "float",
fy: "float",
fz: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 3D.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.fx'float' — Source amplitude scaling factor of X component.fy'float' — Source amplitude scaling factor of Y component.fz'float' — Source amplitude scaling factor of Z component.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetScalarPoint2D
SideSetScalarPoint2Dclass SideSetScalarPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
f: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
): ...Scalar side-set source in a 2-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.f'float' — Source amplitude scaling factor.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.
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.
SideSetScalarPoint3D
SideSetScalarPoint3Dclass SideSetScalarPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
f: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
): ...Scalar side-set source in a 3-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.f'float' — Source amplitude scaling factor.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.
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.
SideSetVectorGradientPoint2D
SideSetVectorGradientPoint2Dclass SideSetVectorGradientPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
gxx: "float",
gxy: "float",
gyx: "float",
gyy: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Vector gradient side-set source in a 2-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.gxx'float' — XX component of the gradient in Nm.gxy'float' — XY component of the gradient in Nm.gyx'float' — YX component of the gradient in Nm.gyy'float' — YY component of the gradient in Nm.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetVectorGradientPoint3D
SideSetVectorGradientPoint3Dclass SideSetVectorGradientPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
gxx: "float",
gxy: "float",
gxz: "float",
gyx: "float",
gyy: "float",
gyz: "float",
gzx: "float",
gzy: "float",
gzz: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Vector gradient side-set source in a 3-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.gxx'float' — XX component of the gradient in Nm.gxy'float' — XY component of the gradient in Nm.gxz'float' — XZ component of the gradient in Nm.gyx'float' — YX component of the gradient in Nm.gyy'float' — YY component of the gradient in Nm.gyz'float' — YZ component of the gradient in Nm.gzx'float' — ZX component of the gradient in Nm.gzy'float' — ZY component of the gradient in Nm.gzz'float' — ZZ component of the gradient in Nm.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetVectorPoint2D
SideSetVectorPoint2Dclass SideSetVectorPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: "float",
fy: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Vector side-set source in a 2-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.fx'float' — X component of the force in N.fy'float' — Y component of the force in N.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
SideSetVectorPoint3D
SideSetVectorPoint3Dclass SideSetVectorPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: np.ndarray,
direction: Union[np.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: "float",
fy: "float",
fz: "float",
source_time_function: "salvus.flow.simple_config.stf._Base | None" = None,
rotation_on_input: "dict | None" = None,
): ...Vector side-set source in a 3-D domain.
pointnp.ndarray — Reference point for the side set receiver placement.directionUnion[np.ndarray, str] — Direction vector for the side set receiver placement.offsetfloat — Offset in the direction vector in meter.side_set_namestr — Name of the side set to intersect.fx'float' — X component of the force in N.fy'float' — Y component of the force in N.fz'float' — Z component of the force in N.source_time_function'salvus.flow.simple_config.stf._Base | None' — Source time function.rotation_on_input'dict | None' — Transform the input STF according to this matrix.
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.
VectorGradientPoint2D
VectorGradientPoint2Dclass VectorGradientPoint2D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
gxx: float,
gxy: float,
gyx: float,
gyy: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Vector gradient source in a 2-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.gxxfloat — XX component of the gradient in Nm.gxyfloat — XY component of the gradient in Nm.gyxfloat — YX component of the gradient in Nm.gyyfloat — YY component of the gradient in Nm.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
VectorGradientPoint3D
VectorGradientPoint3Dclass VectorGradientPoint3D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
z: float,
gxx: float,
gxy: float,
gxz: float,
gyx: float,
gyy: float,
gyz: float,
gzx: float,
gzy: float,
gzz: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Vector gradient source in a 3-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.zfloat — Z coordinate of the source in meter.gxxfloat — XX component of the gradient in Nm.gxyfloat — XY component of the gradient in Nm.gxzfloat — XZ component of the gradient in Nm.gyxfloat — YX component of the gradient in Nm.gyyfloat — YY component of the gradient in Nm.gyzfloat — YZ component of the gradient in Nm.gzxfloat — ZX component of the gradient in Nm.gzyfloat — ZY component of the gradient in Nm.gzzfloat — ZZ component of the gradient in Nm.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
VectorPoint2D
VectorPoint2Dclass VectorPoint2D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
fx: float,
fy: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Vector source in a 2-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.fxfloat — X component of the force in N.fyfloat — Y component of the force in N.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
VectorPoint3D
VectorPoint3Dclass VectorPoint3D(salvus.flow.simple_config.source._BaseSource):
def __init__(
self,
x: float,
y: float,
z: float,
fx: float,
fy: float,
fz: float,
source_time_function: (
salvus.flow.simple_config.stf._Base | None
) = None,
rotation_on_input: dict | None = None,
): ...Vector source in a 3-D domain.
xfloat — X coordinate of the source in meter.yfloat — Y coordinate of the source in meter.zfloat — Z coordinate of the source in meter.fxfloat — X component of the force in N.fyfloat — Y component of the force in N.fzfloat — Z component of the force in N.source_time_functionsalvus.flow.simple_config.stf._Base | None — Source time function.rotation_on_inputdict | None — Transform the input STF with this matrix.
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.
apply()
apply()def apply(self, d: dict | _DeepSetter) -> None: ...Set the contents with a dictionary.
ddict | _DeepSetter — The dictionary to set.
copy()
copy()def copy(self) -> _DeepSetter: ...Return a deep copy of the object.
get_dictionary()
get_dictionary()def get_dictionary(self) -> dict: ...Get the contents of this object as a dictionary.
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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.
Submodules
Used in tutorials
- Acoustic simulations in isotropic and anisotropic media
- Attenuation
- Conical Pitting
- Creating and plotting custom gathers from Salvus' receiver outputs
- Custom Source Time Functions
- Equivalence of Filtering STFs and Filtering Synthetics
- External 2D Meshes
- External 3D Meshes
- Gradient Test Single Physics
- Gradient Test TTI Media
- Ground Motion Modelling in Buildings
- How to combine (fuse) measured and simulated data in Salvus
- Importing SEGY Data into SalvusProject
- Introduction to SalvusFlow's API
- Inverting for homogeneous material