Loading [MathJax]/extensions/tex2jax.js

dune-mmesh (unstable)

Dune::RatioIndicator< Grid > Class Template Reference

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 DistanceTypedistance () const
 Returns distance object.
 

Detailed Description

template<class Grid>
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()

template<class Grid >
Dune::RatioIndicator< Grid >::RatioIndicator ( ctype  h = 0.0,
ctype  distProportion = 1.0,
ctype  factor = 1.0 
)
inline

Calculates the indicator for each grid cell.

Parameters
hThe objective edge length (aims at edge length in [h/4, 2*h]).
distProportionCells 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()

template<class Grid >
void Dune::RatioIndicator< Grid >::init ( const Grid &  grid)
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()()

template<class Grid >
template<class Element >
int Dune::RatioIndicator< Grid >::operator() ( const Element &  element) const
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:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Mar 17, 23:30, 2025)