OGS
|
Calculates the quality of mesh elements based on the difference of element size in comparison to the size of its neighbors.
Definition at line 26 of file SizeDifferenceMetric.h.
#include <SizeDifferenceMetric.h>
Public Member Functions | |
void | calculateQuality () override |
Calculates the quality metric for each element of the mesh. | |
ElementQualityMetric (MeshLib::Mesh const &mesh) | |
Public Member Functions inherited from MeshToolsLib::ElementQualityMetric | |
ElementQualityMetric (MeshLib::Mesh const &mesh) | |
virtual | ~ElementQualityMetric ()=default |
std::vector< double > const & | getElementQuality () const |
Returns the result vector. | |
virtual BaseLib::Histogram< double > | getHistogram (std::size_t n_bins=0) const |
Additional Inherited Members | |
Protected Attributes inherited from MeshToolsLib::ElementQualityMetric | |
double | _min = std::numeric_limits<double>::max() |
double | _max = 0 |
MeshLib::Mesh const & | _mesh |
std::vector< double > | _element_quality_metric |
|
overridevirtual |
Calculates the quality metric for each element of the mesh.
Implements MeshToolsLib::ElementQualityMetric.
Definition at line 21 of file SizeDifferenceMetric.cpp.
References MeshToolsLib::ElementQualityMetric::_element_quality_metric, MeshToolsLib::ElementQualityMetric::_mesh, MeshLib::Element::getContent(), MeshLib::Element::getDimension(), MeshLib::Mesh::getDimension(), MeshLib::Mesh::getElements(), MeshLib::Element::getNeighbor(), MeshLib::Mesh::getNumberOfElements(), and MeshLib::Element::getNumberOfNeighbors().
|
explicit |
Definition at line 33 of file ElementQualityMetric.cpp.