mymesh.converter.hex2quadratic#

mymesh.converter.hex2quadratic(NodeCoords, Hex8NodeConn, cleanup=True)[source]#

Converts a 4 node tetrahedral mesh to 10 node tetrahedral mesh. A new node is placed at the midpoint of each edge.

Parameters:
  • NodeCoords (array_like) – List of nodal coordinates.

  • Hex8NodeConn (array_like) – Nodal connectivities for a 4-node tetrahedral mesh

  • cleanup (bool) – Cleanup/merge duplicate nodes created during the process, by default True

Returns:

  • NodeCoords (np.ndarray) – New list of nodal coordinates.

  • Hex20NodeConn (np.ndarray) – Nodal connectivities for the 20-Node tetrahedral mesh