salvus.project.configuration.model.background.homogeneous
Classes
IsotropicAcoustic
IsotropicAcousticclass IsotropicAcoustic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(self, rho: float, vp: float):
...Isotropic acoustic background model.
Parameters
rhofloat — The density.vpfloat — The p-wave velocity.
Methods
from_json()
from_json()def from_json(d: Dict) -> Any:
...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dDict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
name()def name(self) -> Union[str, Callable]:
...Name of the model.
Returns Union[str, Callable]
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.
Parameters
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.
Returns Dict
IsotropicElastic
IsotropicElasticclass IsotropicElastic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(self, rho: float, vp: float, vs: float):
...Isotropic elastic background model.
Parameters
rhofloat — The density.vpfloat — The p-wave velocity.vsfloat — The s-wave velocity.
Methods
from_json()
from_json()def from_json(d: Dict) -> Any:
...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dDict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
name()def name(self) -> Union[str, Callable]:
...Name of the model.
Returns Union[str, Callable]
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.
Parameters
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.
Returns Dict
IsotropicViscoElastic
IsotropicViscoElasticclass IsotropicViscoElastic(
salvus.project.configuration.model.background._BackgroundBase
):
def __init__(
self, rho: float, vp: float, vs: float, qkappa: float, qmu: float
) -> None:
...Viscoelastic isotropic background model.
Parameters
rhofloat — Density.vpfloat — P-wave velocity.vsfloat — S-wave velocity.qkappafloat — Qkappa.qmufloat — Qmu.
Methods
from_json()
from_json()def from_json(d: Dict) -> Any:
...Recreate the object from a dictionary serialization of its initialization parameters.
Parameters
dDict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
name()def name(self) -> Union[str, Callable]:
...Name of the model.
Returns Union[str, Callable]
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.
Parameters
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.
Returns Dict