Required
mesh| Type: | UnstructuredMesh |
| Description: | The mesh. |
def apply_deformations(
mesh: UnstructuredMesh, names: list[str] | None = None
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | list[str] | None |
| Default value: | None |
| Description: | Names of the deformations to apply. Defaults to all added ones. |
def apply_scale(mesh: UnstructuredMesh) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
def compute_deformation_2D(
points: npt.NDArray,
x: npt.NDArray,
deformation: npt.NDArray,
mode: DeformationMode2D,
vertical_reference: float | None = None,
vertical_begin_deformation: float = 0.0,
vertical_end_deformation: float = inf,
) -> npt.NDArray: ...| Type: | npt.NDArray |
| Description: | The points to deform. |
| Type: | npt.NDArray |
| Description: | horizontal coordinates of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | The deformation sampled at coordinates x. |
| Type: | DeformationMode2D |
| Description: | The interpolation mode. |
| Type: | float | None |
| Default value: | None |
| Description: | Vertical coordinate, at which the deformation should be applied, e.g. y-coordinate of the surface for surface deformation. Defaults to the max y coordinate / radius in case at least one of y0, y1 are finite. |
| Type: | float |
| Default value: | 0.0 |
| Description: | Don't deform any points with a vertical coordinate smaller than this. |
| Type: | float |
| Default value: | inf |
| Description: | Don't deform any points with a vertical coordinate larger than this. |
npt.NDArraydef compute_deformations_3D(
points: npt.NDArray,
x: npt.NDArray,
y: npt.NDArray,
deformation: npt.NDArray,
mode: DeformationMode3D,
vertical_reference: float | None = None,
vertical_begin_deformation: float = 0.0,
vertical_end_deformation: float = inf,
interpolation_order: int = 3,
) -> npt.NDArray: ...| Type: | npt.NDArray |
| Description: | The points to deform. |
| Type: | npt.NDArray |
| Description: | first horizontal coordinate of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | second horizontal coordinate of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | The deformation sampled at coordinates x and y. |
| Type: | DeformationMode3D |
| Description: | Interpolation mode. |
| Type: | float | None |
| Default value: | None |
| Description: | Vertical coordinate, at which the deformation should be applied, e.g. y-coordinate of the surface for surface deformation. Defaults to the max z coordinate / radius in case at least one of z0, z1 are finite. |
| Type: | float |
| Default value: | 0.0 |
| Description: | Don't deform any points with a vertical coordinate smaller than this. |
| Type: | float |
| Default value: | inf |
| Description: | Don't deform any points with a vertical coordinate larger than this. |
| Type: | int |
| Default value: | 3 |
| Description: | horizontal degree of the spline interpolation. For unstructured data either 1 or 3. |
npt.NDArraydef compute_deformations_cylindrical(
points: npt.NDArray,
phi: npt.NDArray,
z: npt.NDArray,
deformation: npt.NDArray,
r0: float = 0.0,
r1: float = inf,
rref: float | None = None,
kx: int = 1,
ky: int = 1,
) -> npt.NDArray: ...| Type: | npt.NDArray |
| Description: | The points whose deformation is to be computed. |
| Type: | npt.NDArray |
| Description: | Angle in the x-y-plane of the DEM in radians. |
| Type: | npt.NDArray |
| Description: | z-coordinates of the DEM. |
| Type: | npt.NDArray |
| Description: | the DEM sampled at the coordinates (phi,z) |
| Type: | float |
| Default value: | 0.0 |
| Description: | radius in x-y-plane at which the stretching begins |
| Type: | float |
| Default value: | inf |
| Description: | radius in x-y-plane at which the stretching ends, can be infinity |
| Type: | float | None |
| Default value: | None |
| Description: | radius in x-y-plane at which the deformation should be applied |
| Type: | int |
| Default value: | 1 |
| Description: | horizontal degree of the spline interpolation |
| Type: | int |
| Default value: | 1 |
| Description: | vertical degree of the spline interpolation |
npt.NDArraydef compute_deformations_ellipticity(
points: npt.NDArray, deformation: npt.NDArray, scale: float = 1.0
) -> npt.NDArray: ...| Type: | npt.NDArray |
| Description: | The points to compute it for. |
| Type: | npt.NDArray |
| Description: | The deformation for each point. |
| Type: | float |
| Default value: | 1.0 |
| Description: | Scale the radius by this value. |
npt.NDArraydef queue_mesh_deformations_2D(
mesh: UnstructuredMesh,
x: npt.NDArray,
deformation: npt.NDArray,
vertical_begin_deformation: float = 0.0,
vertical_end_deformation: float = inf,
vertical_reference: float | None = None,
name: str | None = None,
mode: DeformationMode2D | str = DeformationMode2D.cartesian,
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh to queue for. |
| Type: | npt.NDArray |
| Description: | horizontal coordinates of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | The deformation sampled at coordinates x. |
| Type: | float |
| Default value: | 0.0 |
| Description: | Don't deform any points with a vertical coordinate smaller than this. |
| Type: | float |
| Default value: | inf |
| Description: | Don't deform any points with a vertical coordinate larger than this. |
| Type: | float | None |
| Default value: | None |
| Description: | Vertical coordinate, at which the deformation should be applied, e.g. y-coordinate of the surface for surface deformation. Defaults to the max y coordinate / radius in case at least one of y0, y1 are finite. |
| Type: | str | None |
| Default value: | None |
| Description: | Optionally pass a name for the deformation. |
| Type: | DeformationMode2D | str |
| Default value: | DeformationMode2D.cartesian |
| Description: | The deformation mode. |
def queue_mesh_deformations_3D(
mesh: UnstructuredMesh,
x: npt.NDArray,
y: npt.NDArray,
deformation: npt.NDArray,
vertical_begin_deformation: float = 0.0,
vertical_end_deformation: float = inf,
vertical_reference: float | None = None,
interpolation_order: int = 3,
mode: DeformationMode3D | str = DeformationMode3D.cartesian,
name: str | None = None,
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh to queue for. |
| Type: | npt.NDArray |
| Description: | first horizontal coordinate of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | second horizontal coordinate of the deformation. Angle in radians for spherical models. |
| Type: | npt.NDArray |
| Description: | The deformation sampled at coordinates x. |
| Type: | float |
| Default value: | 0.0 |
| Description: | Don't deform any points with a vertical coordinate smaller than this. |
| Type: | float |
| Default value: | inf |
| Description: | Don't deform any points with a vertical coordinate larger than this. |
| Type: | float | None |
| Default value: | None |
| Description: | Vertical coordinate, at which the deformation should be applied, e.g. y-coordinate of the surface for surface deformation. Defaults to the max y coordinate / radius in case at least one of y0, y1 are finite. |
| Type: | int |
| Default value: | 3 |
| Description: | Horizontal interpolation order. |
| Type: | DeformationMode3D | str |
| Default value: | DeformationMode3D.cartesian |
| Description: | The deformation mode. |
| Type: | str | None |
| Default value: | None |
| Description: | Optionally pass a name for the deformation. |
def queue_mesh_deformations_cylindrical(
mesh: UnstructuredMesh,
phi: npt.NDArray,
z: npt.NDArray,
dem: npt.NDArray,
r0: float = 0.0,
r1: float = inf,
rref: float | None = None,
name: str | None = None,
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | npt.NDArray |
| Description: | Angle in the x-y-plane of the DEM in radians. |
| Type: | npt.NDArray |
| Description: | z-coordinates of the DEM. |
| Type: | npt.NDArray |
| Description: | the DEM sampled at the coordinates (phi,z) |
| Type: | float |
| Default value: | 0.0 |
| Description: | radius in x-y-plane at which the stretching begins |
| Type: | float |
| Default value: | inf |
| Description: | radius in x-y-plane at which the stretching ends, can be infinity |
| Type: | float | None |
| Default value: | None |
| Description: | radius in x-y-plane at which the deformation should be applied |
| Type: | str | None |
| Default value: | None |
| Description: | name of this deformation to refer to it in UnstructuredMesh.apply_dem() |
class DeformationMode2D(enum.Enum):
def __init__(self): ...class DeformationMode3D(enum.Enum):
def __init__(self): ...