dune-mmesh (unstable)
Class defining an indicator for grid remeshing regarding the edge length ratio. By default, we take 2x length of the longest edge contained in the interface as maximal edge length and 0.5x length of the shortest edge as minimal edge length. More...
#include <dune/mmesh/remeshing/ratioindicator.hh>
Public Member Functions | |
RatioIndicator (ctype h=0.0, ctype distProportion=1.0, ctype factor=1.0) | |
Calculates the indicator for each grid cell. More... | |
void | init (const Grid &grid) |
void | update () |
Update the distances of all vertices. | |
template<class Element > | |
int | operator() (const Element &element) const |
Function call operator to return mark. More... | |
ctype | maxH () const |
Returns maxH. | |
ctype & | maxH () |
Returns reference to maxH. | |
ctype | minH () const |
Returns minH. | |
ctype & | minH () |
Returns reference to minH. | |
ctype & | distProportion () |
Returns reference to distProportion. | |
ctype & | factor () |
Returns reference to factor. | |
const DistanceType & | distance () const |
Returns distance object. | |
Detailed Description
class Dune::RatioIndicator< Grid >
Class defining an indicator for grid remeshing regarding the edge length ratio. By default, we take 2x length of the longest edge contained in the interface as maximal edge length and 0.5x length of the shortest edge as minimal edge length.
Constructor & Destructor Documentation
◆ RatioIndicator()
|
inline |
Calculates the indicator for each grid cell.
- Parameters
-
h The objective edge length (aims at edge length in [h/4, 2*h]). distProportion Cells with distance to interface of value greater than distProportion * max(dist) are refined to ... factor ... edge length in [factor * minH, factor * maxH].
Member Function Documentation
◆ init()
|
inline |
Calculates minH_ and maxH_ for the current interface edge length and sets factor_ to maxh / minh.
Referenced by Dune::MMesh< HostGrid, dim >::MMesh().
◆ operator()()
|
inline |
Function call operator to return mark.
- Returns
- 1 if an element should be refined, -1 if an element should be coarsened, 0 otherwise.
The documentation for this class was generated from the following file:
- dune/mmesh/remeshing/ratioindicator.hh
