Mondaic
This API reference is not for the latest stable Salvus version.

salvus.project.configuration.model.background.homogeneous

Classes

IsotropicAcoustic

class IsotropicAcoustic(
    salvus.project.configuration.model.background._BackgroundBase
):
    def __init__(self, rho: float, vp: float):
        ...

Isotropic acoustic background model.

Parameters
  • rho float — The density.
  • vp float — The p-wave velocity.
Methods
from_json()
def from_json(d: Dict) -> Any:
    ...

Recreate the object from a dictionary serialization of its initialization parameters.

Parameters
  • d Dict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
def name(self) -> Union[str, Callable]:
    ...

Name of the model.

Returns Union[str, Callable]
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_hash Optional[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

class IsotropicElastic(
    salvus.project.configuration.model.background._BackgroundBase
):
    def __init__(self, rho: float, vp: float, vs: float):
        ...

Isotropic elastic background model.

Parameters
  • rho float — The density.
  • vp float — The p-wave velocity.
  • vs float — The s-wave velocity.
Methods
from_json()
def from_json(d: Dict) -> Any:
    ...

Recreate the object from a dictionary serialization of its initialization parameters.

Parameters
  • d Dict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
def name(self) -> Union[str, Callable]:
    ...

Name of the model.

Returns Union[str, Callable]
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_hash Optional[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

class 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
  • rho float — Density.
  • vp float — P-wave velocity.
  • vs float — S-wave velocity.
  • qkappa float — Qkappa.
  • qmu float — Qmu.
Methods
from_json()
def from_json(d: Dict) -> Any:
    ...

Recreate the object from a dictionary serialization of its initialization parameters.

Parameters
  • d Dict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
def name(self) -> Union[str, Callable]:
    ...

Name of the model.

Returns Union[str, Callable]
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_hash Optional[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