mymesh.converter.tetsubdivide#

mymesh.converter.tetsubdivide(NodeCoords, NodeConn, method='1to24')[source]#

Subdivide tetrahedra into sub-tetrahedra.

Parameters:
  • NodeCoords (array_like) – List of node coordinates

  • NodeConn (array_like) – List of node connectivities (must be purely tetrahdral, shape=(n,4))

  • method (str) –

    Subdivision method

    • ”1to4” : Connect vertices to centroid

    • ”1to24” : Connect vertices to centroid, face centroids, and edge centroids

Returns:

  • NewCoords (np.ndarray) – Node coordinates of the subdivided mesh. The new nodes are appended to the original nodes, so the node numbers of the original mesh will refer to the same nodes in the new mesh.

  • NewConn (np.ndarray) – Node connectivities of the subdivided mesh. The elements are ordered so that the first element in the original mesh is subdivided into the first 4 elements in the new mesh, the second element in the mesh becomes the next 4 elements, and so on.