OGS
|
HeuristicSearchLength implements a mesh dependent criterion for searching mesh nodes near a geometry. For this purpose it computes the average \(\mu\) and the standard deviation \(\sigma\) of edge length or node distance of mesh elements. The search length is set to \(\mu-2\sigma\). This strategy is useful for meshes with different sizes of elements.
Definition at line 30 of file HeuristicSearchLength.h.
#include <HeuristicSearchLength.h>
Public Types | |
enum class | LengthType { Edge , Node } |
Type of length to be sampled. More... | |
Public Member Functions | |
HeuristicSearchLength (MeshLib::Mesh const &mesh, LengthType length_type=LengthType::Edge) | |
Public Member Functions inherited from MeshGeoToolsLib::SearchLength | |
SearchLength (double search_length=1e-9) | |
SearchLength (SearchLength const &)=default | |
SearchLength & | operator= (SearchLength const &)=default |
virtual | ~SearchLength ()=default |
virtual double | getSearchLength () const |
Private Attributes | |
MeshLib::Mesh const & | _mesh |
Additional Inherited Members | |
Protected Attributes inherited from MeshGeoToolsLib::SearchLength | |
double | _search_length |
|
strong |
Type of length to be sampled.
Enumerator | |
---|---|
Edge | |
Node | edge length of elements, which is recommended for meshes without nonlinear nodes distance between nodes |
Definition at line 34 of file HeuristicSearchLength.h.
|
explicit |
Constructor
mesh | mesh object |
length_type | length type to be sampled |
Definition at line 20 of file HeuristicSearchLength.cpp.
References _mesh, MeshGeoToolsLib::SearchLength::_search_length, MeshLib::computeSqrNodeDistanceRange(), DBUG(), Edge, MeshLib::Mesh::getElements(), MeshLib::Mesh::getName(), and MeshLib::Mesh::getNumberOfElements().
|
private |
Definition at line 49 of file HeuristicSearchLength.h.
Referenced by HeuristicSearchLength().