Required
mesh| Type: | UnstructuredMesh |
| Description: | The mesh to deform. NOTE: Will be updated in place. |
def apply_ellipticity(
mesh: UnstructuredMesh,
ellipticity: typing.Callable[[npt.NDArray], npt.NDArray],
radius: float,
execution_policy: bindings.ExecutionPolicy = salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | The mesh to deform. NOTE: Will be updated in place. |
| Type: | typing.Callable[[npt.NDArray], npt.NDArray] |
| Description: | A callable that provides the ellipticity at an array of radii. Can be computed from a layered model using the compute_ellipticity function in this module. |
| Type: | float |
| Description: | The radius of the sphere to apply ellipticity to. |
| Type: | bindings.ExecutionPolicy |
| Default value: | <salvus._core.lib.salvus_core_python_bindings.ExecutionPolicy object at 0x7c032d7dd930> |
| Description: | Execution policy governing the maximum allowable parallelism of child routines. |
def compute_ellipticity(
layered_model: LayeredModel, ellipsoid: str | float
) -> typing.Callable[[npt.NDArray], npt.NDArray]: ...| Type: | LayeredModel |
| Description: | The layered model to compute the ellipticity of. |
| Type: | str | float |
| Description: | The ellipticity (or flattening -- the terms are used interchangeably here) of the sphere at the surface. If a string is passed, it can be one of WGS84, GRS80, or MARS, which will be converted to the corresponding ellipticity. |
typing.Callable[[npt.NDArray], npt.NDArray]