salvus.flow.simple_config.source.cartesian
Sources in a cartesian reference system.
Functions
parse()
parse()def parse(
dict_sources: Union[List[Dict], Dict]
) -> List[salvus.flow.simple_config.source._Base]: ...Parse a dictionary or a list of dictionaries to receiver objects.
dict_sourcesUnion[List[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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
mxx: float,
myy: float,
mxy: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Moment tensor side-set source in a 2-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetMomentTensorPoint3D
SideSetMomentTensorPoint3Dclass SideSetMomentTensorPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Moment tensor side-set source in a 3-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetScalarGradientPoint2D
SideSetScalarGradientPoint2Dclass SideSetScalarGradientPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: float,
fy: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 2D.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.fxfloat — Source amplitude scaling factor of X component.fyfloat — Source amplitude scaling factor of Y component.source_time_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetScalarGradientPoint3D
SideSetScalarGradientPoint3Dclass SideSetScalarGradientPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: float,
fy: float,
fz: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Source to be injected into the gradient of the scalar displacement potential in 3D.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetScalarPoint2D
SideSetScalarPoint2Dclass SideSetScalarPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
f: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
): ...Scalar side-set source in a 2-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.ffloat — Source amplitude scaling factor.source_time_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetScalarPoint3D
SideSetScalarPoint3Dclass SideSetScalarPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
f: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
): ...Scalar side-set source in a 3-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.ffloat — Source amplitude scaling factor.source_time_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetVectorGradientPoint2D
SideSetVectorGradientPoint2Dclass SideSetVectorGradientPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
gxx: float,
gxy: float,
gyx: float,
gyy: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Vector gradient side-set source in a 2-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetVectorGradientPoint3D
SideSetVectorGradientPoint3Dclass SideSetVectorGradientPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Vector gradient side-set source in a 3-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetVectorPoint2D
SideSetVectorPoint2Dclass SideSetVectorPoint2D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: float,
fy: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Vector side-set source in a 2-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.fxfloat — X component of the force in N.fyfloat — Y component of the force in N.source_time_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
SideSetVectorPoint3D
SideSetVectorPoint3Dclass SideSetVectorPoint3D(
salvus.flow.simple_config.side_set_base._SideSetBase,
salvus.flow.simple_config.source._SideSetSource,
):
def __init__(
self,
point: numpy.ndarray,
direction: Union[numpy.ndarray, str],
offset: float = 0.0,
side_set_name: str,
fx: float,
fy: float,
fz: float,
source_time_function: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = None,
): ...Vector side-set source in a 3-D domain.
pointnumpy.ndarray — Reference point for the side set receiver placement.directionUnion[numpy.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.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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF according to this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
to_json()
to_json()def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
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: Optional[
salvus.flow.simple_config.stf._Base
] = None,
rotation_on_input: Optional[Dict] = 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_functionOptional[salvus.flow.simple_config.stf._Base] — Source time function.rotation_on_inputOptional[Dict] — Transform the input STF with this matrix.
from_json()
from_json()def from_json(d: Dict) -> Any: ...Recreate the object from a dictionary serialization of its initialization parameters.
dDict — Dictionary containing its init parameters and a few other things.
apply()
apply()def apply(self, d: Union[Dict, _DeepSetter]) -> None: ...Set the contents with a dictionary.
dUnion[Dict, _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: Optional[str] = None) -> Dict: ...Serialize the object to dictionary that can be written to JSON.
external_file_hashOptional[str] — 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.
validate()
validate()def validate(self) -> None: ...Validates the current state of the configuration against its schema.