mymesh.converter.tri2quadratic#
- mymesh.converter.tri2quadratic(NodeCoords, NodeConn, cleanup=True)[source]#
Converts a 3 node triangular mesh to 6 node triangular mesh. A new node is placed at the midpoint of each edge.
- Parameters:
NodeCoords (array_like) – List of nodal coordinates.
NodeConn (array_like) – Nodal connectivities for a 3-node triangular mesh
cleanup (bool) – Cleanup/merge duplicate nodes created during the process, by default True
- Returns:
NodeCoords (np.ndarray) – New list of nodal coordinates.
NewConn (np.ndarray) – Nodal connectivities for the 6-Node triangular mesh