OGS
|
Base class for calculating the quality of mesh element based on a given metric
Definition at line 30 of file ElementQualityMetric.h.
#include <ElementQualityMetric.h>
Public Member Functions | |
ElementQualityMetric (MeshLib::Mesh const &mesh) | |
virtual | ~ElementQualityMetric ()=default |
virtual void | calculateQuality ()=0 |
Calculates the quality metric for each element of the mesh. | |
std::vector< double > const & | getElementQuality () const |
Returns the result vector. | |
virtual BaseLib::Histogram< double > | getHistogram (std::size_t n_bins=0) const |
Protected Attributes | |
double | _min = std::numeric_limits<double>::max() |
double | _max = 0 |
MeshLib::Mesh const & | _mesh |
std::vector< double > | _element_quality_metric |
|
explicit |
Definition at line 23 of file ElementQualityMetric.cpp.
References _element_quality_metric, _mesh, and MeshLib::Mesh::getNumberOfElements().
|
virtualdefault |
|
pure virtual |
Calculates the quality metric for each element of the mesh.
Implemented in MeshToolsLib::AngleSkewMetric, MeshToolsLib::EdgeRatioMetric, MeshToolsLib::ElementSizeMetric, MeshToolsLib::RadiusEdgeRatioMetric, and MeshToolsLib::SizeDifferenceMetric.
std::vector< double > const & MeshToolsLib::ElementQualityMetric::getElementQuality | ( | ) | const |
Returns the result vector.
Definition at line 42 of file ElementQualityMetric.cpp.
References _element_quality_metric.
|
virtual |
Returns a histogram of the quality vector separated into the given number of bins. If no number of bins is specified, one will be calculated based on the Sturges criterium.
Definition at line 29 of file ElementQualityMetric.cpp.
|
protected |
Definition at line 53 of file ElementQualityMetric.h.
Referenced by ElementQualityMetric(), MeshToolsLib::ElementSizeMetric::calc1dQuality(), MeshToolsLib::ElementSizeMetric::calc2dOr3dQuality(), MeshToolsLib::AngleSkewMetric::calculateQuality(), MeshToolsLib::EdgeRatioMetric::calculateQuality(), MeshToolsLib::RadiusEdgeRatioMetric::calculateQuality(), MeshToolsLib::SizeDifferenceMetric::calculateQuality(), and getElementQuality().
|
protected |
Definition at line 51 of file ElementQualityMetric.h.
Referenced by MeshToolsLib::ElementSizeMetric::calc1dQuality(), MeshToolsLib::ElementSizeMetric::calc2dOr3dQuality(), and MeshToolsLib::ElementSizeMetric::calculateQuality().
|
protected |
Definition at line 52 of file ElementQualityMetric.h.
Referenced by ElementQualityMetric(), MeshToolsLib::ElementSizeMetric::calc1dQuality(), MeshToolsLib::ElementSizeMetric::calc2dOr3dQuality(), MeshToolsLib::AngleSkewMetric::calculateQuality(), MeshToolsLib::EdgeRatioMetric::calculateQuality(), MeshToolsLib::ElementSizeMetric::calculateQuality(), MeshToolsLib::RadiusEdgeRatioMetric::calculateQuality(), MeshToolsLib::SizeDifferenceMetric::calculateQuality(), and MeshToolsLib::AngleSkewMetric::ElementQualityMetric().
|
protected |
Definition at line 50 of file ElementQualityMetric.h.
Referenced by MeshToolsLib::ElementSizeMetric::calc1dQuality(), MeshToolsLib::ElementSizeMetric::calc2dOr3dQuality(), and MeshToolsLib::ElementSizeMetric::calculateQuality().