cashocs.geometry.quality.RadiusRatiosCalculator#
- class cashocs.geometry.quality.RadiusRatiosCalculator[source]#
Bases:
MeshQualityCalculatorImplements the radius ratios quality measure.
Methods Summary
compute(mesh)Computes the radius ratios of the mesh elements.
Methods Documentation
- compute(
- mesh: fenics.Mesh,
Computes the radius ratios of the mesh elements.
This measures the ratio of the element’s inradius to its circumradius, normalized by the geometric dimension. This is computed via
\[d \frac{r}{R},\]where \(d\) is the spatial dimension, \(r\) is the inradius, and \(R\) is the circumradius.
- Parameters:
mesh (fenics.Mesh) – The mesh, whose quality shall be computed.
- Returns:
The radius ratios of the mesh elements on process 0.
- Return type:
ndarray