OGS
ElementQualityMetric.h
Go to the documentation of this file.
1
15
#pragma once
16
17
#include <vector>
18
19
#include "
BaseLib/Histogram.h
"
20
#include "
MeshLib/Elements/Element.h
"
21
#include "
MeshLib/Mesh.h
"
22
23
namespace
MeshToolsLib
24
{
25
30
class
ElementQualityMetric
31
{
32
public
:
33
explicit
ElementQualityMetric
(
MeshLib::Mesh
const
& mesh);
34
35
virtual
~ElementQualityMetric
() =
default
;
36
38
virtual
void
calculateQuality
() = 0;
39
41
std::vector<double>
const
&
getElementQuality
()
const
;
42
46
virtual
BaseLib::Histogram<double>
getHistogram
(
47
std::size_t n_bins = 0)
const
;
48
49
protected
:
50
double
_min
= std::numeric_limits<double>::max();
51
double
_max
= 0;
52
MeshLib::Mesh
const
&
_mesh
;
53
std::vector<double>
_element_quality_metric
;
54
};
55
}
// namespace MeshToolsLib
Element.h
Definition of the Element class.
Histogram.h
Implementation of Histogram class.
Mesh.h
Definition of the Mesh class.
BaseLib::Histogram
Definition
Histogram.h:31
MeshLib::Mesh
Definition
Mesh.h:43
MeshToolsLib::ElementQualityMetric
Definition
ElementQualityMetric.h:31
MeshToolsLib::ElementQualityMetric::_max
double _max
Definition
ElementQualityMetric.h:51
MeshToolsLib::ElementQualityMetric::_min
double _min
Definition
ElementQualityMetric.h:50
MeshToolsLib::ElementQualityMetric::_element_quality_metric
std::vector< double > _element_quality_metric
Definition
ElementQualityMetric.h:53
MeshToolsLib::ElementQualityMetric::getHistogram
virtual BaseLib::Histogram< double > getHistogram(std::size_t n_bins=0) const
Definition
ElementQualityMetric.cpp:29
MeshToolsLib::ElementQualityMetric::~ElementQualityMetric
virtual ~ElementQualityMetric()=default
MeshToolsLib::ElementQualityMetric::ElementQualityMetric
ElementQualityMetric(MeshLib::Mesh const &mesh)
Definition
ElementQualityMetric.cpp:23
MeshToolsLib::ElementQualityMetric::_mesh
MeshLib::Mesh const & _mesh
Definition
ElementQualityMetric.h:52
MeshToolsLib::ElementQualityMetric::calculateQuality
virtual void calculateQuality()=0
Calculates the quality metric for each element of the mesh.
MeshToolsLib::ElementQualityMetric::getElementQuality
std::vector< double > const & getElementQuality() const
Returns the result vector.
Definition
ElementQualityMetric.cpp:42
MeshToolsLib
Definition
Node.h:29
MeshToolsLib
MeshQuality
ElementQualityMetric.h
Generated by
1.11.0