mymesh.converter.edge2quadratic#

mymesh.converter.edge2quadratic(NodeCoords, NodeConn, cleanup=True)[source]#

Converts a 2 node edge mesh to 3 node edge 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 2-node edge 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 3-Node edge mesh