ogstools.mesh.ip_mesh module#
- ogstools.mesh.ip_mesh.tessellate(mesh, cell_type, integration_order)[source]#
Create a tessellated mesh with one subcell per integration point.
- Return type:
- ogstools.mesh.ip_mesh.ip_metadata(mesh)[source]#
return the IntegrationPointMetaData in the mesh’s field_data as a dict.
- ogstools.mesh.ip_mesh.to_ip_point_cloud(mesh)[source]#
Convert integration point data to a pyvista point cloud.
- Return type:
- ogstools.mesh.ip_mesh.to_ip_mesh(mesh)[source]#
Create a mesh with cells centered around integration points.
- Return type:
- ogstools.mesh.ip_mesh.ip_data_threshold(mesh, value, scalars='MaterialIDs', invert=False)[source]#
Filters integration point data to match the threshold criterion.
Similar to
pyvista’s threshold filter, but only acting on the field data and returning the modified field data dict.- Parameters:
mesh (
UnstructuredGrid) – original mesh, needs to contain MaterialIDs and IntegratioPointMetaData.value (
int|Sequence[int]) – Single value or (min, max) to be used for the threshold. If a sequence, then length must be 2. If single value, it is used as the lower bound and selecting everything above.scalars (
str) – Name of data to threshold on.invert (
bool) – Invert the threshold results
- Return type: