OGS
|
Calculates the quality of mesh elements based on length/area/volume
Definition at line 25 of file ElementSizeMetric.h.
#include <ElementSizeMetric.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 |
Private Member Functions | |
std::size_t | calc1dQuality () |
std::size_t | calc2dOr3dQuality () |
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 |
|
private |
Definition at line 45 of file ElementSizeMetric.cpp.
References MeshToolsLib::ElementQualityMetric::_element_quality_metric, MeshToolsLib::ElementQualityMetric::_max, MeshToolsLib::ElementQualityMetric::_mesh, MeshToolsLib::ElementQualityMetric::_min, MeshToolsLib::computeElementVolumeNumerically(), and MeshLib::Mesh::getElements().
Referenced by calculateQuality().
|
private |
Definition at line 75 of file ElementSizeMetric.cpp.
References MeshToolsLib::ElementQualityMetric::_element_quality_metric, MeshToolsLib::ElementQualityMetric::_max, MeshToolsLib::ElementQualityMetric::_mesh, MeshToolsLib::ElementQualityMetric::_min, MeshToolsLib::computeElementVolumeNumerically(), MeshLib::Element::getDimension(), MeshLib::Mesh::getDimension(), and MeshLib::Mesh::getElements().
Referenced by calculateQuality().
|
overridevirtual |
Calculates the quality metric for each element of the mesh.
Implements MeshToolsLib::ElementQualityMetric.
Definition at line 23 of file ElementSizeMetric.cpp.
References MeshToolsLib::ElementQualityMetric::_max, MeshToolsLib::ElementQualityMetric::_mesh, MeshToolsLib::ElementQualityMetric::_min, calc1dQuality(), calc2dOr3dQuality(), MeshLib::Mesh::getDimension(), INFO(), and WARN().
|
explicit |
Definition at line 33 of file ElementQualityMetric.cpp.