salvus.mesh.simple_mesh
User-friendly meshing interface.
Classes
AxiSEM
AxiSEMclass AxiSEM(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...AxiSEM mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
AxiSEMCartesian
AxiSEMCartesianclass AxiSEMCartesian(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...AxiSEMCartesian mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Cartesian2D
Cartesian2Dclass Cartesian2D(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Cartesian2D mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Cartesian2DHomogeneous
Cartesian2DHomogeneousclass Cartesian2DHomogeneous(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Cartesian2DHomogeneous mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Cartesian3D
Cartesian3Dclass Cartesian3D(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Cartesian3D mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Cartesian3DHomogeneous
Cartesian3DHomogeneousclass Cartesian3DHomogeneous(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Cartesian3DHomogeneous mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Circular2D
Circular2Dclass Circular2D(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Circular2D mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Globe3D
Globe3Dclass Globe3D(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Globe3D mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
Globe3DSurfaceWaves
Globe3DSurfaceWavesclass Globe3DSurfaceWaves(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...Globe3DSurfaceWaves mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
SmoothieSEM
SmoothieSEMclass SmoothieSEM(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...SmoothieSEM mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
SphericalChunk3D
SphericalChunk3Dclass SphericalChunk3D(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...SphericalChunk3D mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
SphericalChunk3DSurfaceWaves
SphericalChunk3DSurfaceWavesclass SphericalChunk3DSurfaceWaves(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...SphericalChunk3DSurfaceWaves mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
TidalLoading
TidalLoadingclass TidalLoading(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...TidalLoading mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.
TidalLoading
TidalLoadingclass TidalLoading(salvus.mesh.simple_mesh.config.BaseMesh):
def __init__(self):
...TidalLoading mesh.
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.
create_mesh()
create_mesh()def create_mesh(
self,
verbose: bool = False,
get_dictionary: bool = False,
mesh_processing_callback: Optional[
Callable, SurfaceMaskGenerator, RayMaskGenerator
] = None,
) -> Union[
Tuple[salvus.mesh.unstructured_mesh.UnstructuredMesh, Dict],
salvus.mesh.unstructured_mesh.UnstructuredMesh,
]:
...Create the actual unstructured mesh object.
verbosebool — Increase verbosity.get_dictionarybool — Return the dictionary defining the mesh.mesh_processing_callbackOptional[Callable, SurfaceMaskGenerator, RayMaskGenerator] — optional call back function for mesh processing called directly after the mesh is finished to do efficient post processing, e.g. masking
get_dictionary()
get_dictionary()def get_dictionary(self) -> Dict:
...Get the contents of this object as a dictionary.
validate()
validate()def validate(self) -> None:
...Validates the current state of the configuration against its schema.