cashocs.geometry.quality.MaximumAngleCalculator#
- class cashocs.geometry.quality.MaximumAngleCalculator[source]#
Bases:
MeshQualityCalculator
Implements the maximum angle quality measure.
Methods Summary
compute
(mesh)Computes the largest angle of each element.
Methods Documentation
- compute(mesh: fenics.Mesh) ndarray [source]#
Computes the largest angle of each element.
This measures the relative distance of a triangle’s angles or a tetrahedron’s dihedral angles to the corresponding optimal angle. The optimal angle is defined as the angle an equilateral (and thus equiangular) element has. This is defined as
\[1 - \max\left( \frac{\alpha - \alpha^*}{\pi - \alpha^*} , 0 \right),\]where \(\alpha\) is the corresponding (dihedral) angle of the element and \(\alpha^*\) is the corresponding (dihedral) angle of the reference element.
- Parameters:
mesh (fenics.Mesh) – The mesh, whose quality shall be computed.
- Returns:
The maximum angle quality measure for each element on process 0.
- Return type:
ndarray