mymesh.quality.Area#

mymesh.quality.Area(NodeCoords, NodeConn, Type=None, verbose=False)[source]#

Calculates element areas for each element in the mesh. For volume elements, the area will be the total surface area of each element.

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

  • NodeConn (array_like) – List of nodal connectivities.

  • Type (str) – Specifies whether the mesh is a surface (‘surf’) or volume (‘vol’) mesh. If None, will be automatically determined by identify_type(), by default, None.

Returns:

A – Array of area for each element.

Return type:

np.ndarray