Required
mesh_a| Type: | UnstructuredMesh |
| Description: | First mesh. |
def add_two_meshes(
mesh_a: UnstructuredMesh,
mesh_b: UnstructuredMesh,
make_unique_points: bool = True,
) -> UnstructuredMesh: ...| Type: | UnstructuredMesh |
| Description: | First mesh. |
| Type: | UnstructuredMesh |
| Description: | Second mesh. |
| Type: | bool |
| Default value: | True |
| Description: | If True, duplicate points in both meshes will be discarded. This should be True in most cases, only set this to False for performance reasons if you know what you are doing. |
UnstructuredMeshdef apply_element_mask(
mesh: UnstructuredMesh,
mask: npt.NDArray,
return_node_map: bool = False,
side_sets: str | list[str] | None = None,
) -> UnstructuredMesh | tuple[UnstructuredMesh, npt.NDArray]: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | npt.NDArray |
| Description: | The mask as boolean array. |
| Type: | bool |
| Default value: | False |
| Description: | Return a node map together with the new mesh object, to be used to map nodal fields to the set of nodes that are retained in the mesh. |
| Type: | str | list[str] | None |
| Default value: | None |
| Description: | list of side set names to which the mask should be directly connected. All elements not connected to the side sets are retained. Can be used to avoid cavities in the mask. |
UnstructuredMesh | tuple[UnstructuredMesh, npt.NDArray]def assert_meshes_are_compatible(
mesh_a: UnstructuredMesh, mesh_b: UnstructuredMesh
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The first mesh. |
| Type: | UnstructuredMesh |
| Description: | The second mesh. |
def get_element_centroid(
mesh: UnstructuredMesh, spherical: bool = False
) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | bool |
| Default value: | False |
| Description: | Assume a spherical mesh to perform a spherical computation. |
npt.NDArraydef get_element_centroid_radius(mesh: UnstructuredMesh) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
npt.NDArraydef get_element_nodes(
mesh: UnstructuredMesh,
mask: tuple | npt.NDArray = (slice(None, None, None),),
) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | tuple | npt.NDArray |
| Default value: | (slice(None, None, None),) |
| Description: | An optional mask to apply to the connectivity before returning the points. |
npt.NDArraydef get_mass_matrix(mesh: UnstructuredMesh) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh for which to compute the mass matrix. |
npt.NDArraydef get_valence(mesh: UnstructuredMesh) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
npt.NDArraydef jacobian_at_nodes(mesh: UnstructuredMesh) -> npt.NDArray: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
npt.NDArraydef meshes_are_equal(
mesh_a: UnstructuredMesh,
mesh_b: typing.Any,
raise_with_error_if_not_equal: bool = False,
) -> bool: ...| Type: | UnstructuredMesh |
| Description: | Mesh a. |
| Type: | typing.Any |
| Description: | The other mesh. |
| Type: | bool |
| Default value: | False |
| Description: | Raise in case both are not equal. |
bool1. Rotate around the global Z-axis by `euler_angles[0]` degrees. 2. Rotate around the global Y-axis by `euler_angles[1]` degrees. 3. Rotate around the global Z-axis by `euler_angles[2]` degrees.
def rotate_coordinates(
mesh: UnstructuredMesh, euler_angles: npt.NDArray
) -> None: ...| Type: | UnstructuredMesh |
| Description: | The mesh. |
| Type: | npt.NDArray |
| Description: | Euler-angles in degrees to rotate around. |