mymesh.quality.tri_area#

mymesh.quality.tri_area(NodeCoords, NodeConn)[source]#

Element areas of a purely triangular mesh.

\[A = \frac{||(v_1 - v_0) \times (v_3 - v_0)||}{2}\]

where \(v_0\), \(v_1\), and \(v_3\) are the coordinates \((x,y,z)\) of the vertices.

Parameters:
  • NodeCoords (np.ndarray) – Node coordinates (shape=(n,3))

  • NodeConn (np.ndarray) – Node connectivity (shape=(m,3), dtype=int)

Returns:

area – Areas of each triangle

Return type:

np.ndarray