dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
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>

Inheritance diagram for Dune::RatioIndicator< Grid >:
Inheritance graph

Public Types

using DistanceType = Distance< Grid >
 

Public Member Functions

 RatioIndicator (ctype h=0.0, ctype distProportion=1.0, ctype factor=1.0)
 Calculates the indicator for each grid cell.
 
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.
 
ctype edgeRatio () const
 
ctype maxH () const
 Returns maxH.
 
ctype & maxH ()
 Returns reference to maxH.
 
ctype minH () const
 Returns minH.
 
ctype & minH ()
 Returns reference to minH.
 
ctype radiusRatio () const
 
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.

Member Typedef Documentation

◆ DistanceType

template<class Grid >
using Dune::RatioIndicator< Grid >::DistanceType = Distance<Grid>

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

◆ distance()

template<class Grid >
const DistanceType & Dune::RatioIndicator< Grid >::distance ( ) const
inline

Returns distance object.

◆ distProportion()

template<class Grid >
ctype & Dune::RatioIndicator< Grid >::distProportion ( )
inline

Returns reference to distProportion.

◆ edgeRatio()

template<class Grid >
ctype Dune::RatioIndicator< Grid >::edgeRatio ( ) const
inline

◆ factor()

template<class Grid >
ctype & Dune::RatioIndicator< Grid >::factor ( )
inline

Returns reference to factor.

◆ 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.

◆ maxH() [1/2]

template<class Grid >
ctype & Dune::RatioIndicator< Grid >::maxH ( )
inline

Returns reference to maxH.

◆ maxH() [2/2]

template<class Grid >
ctype Dune::RatioIndicator< Grid >::maxH ( ) const
inline

Returns maxH.

◆ minH() [1/2]

template<class Grid >
ctype & Dune::RatioIndicator< Grid >::minH ( )
inline

Returns reference to minH.

◆ minH() [2/2]

template<class Grid >
ctype Dune::RatioIndicator< Grid >::minH ( ) const
inline

Returns minH.

◆ 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.

◆ radiusRatio()

template<class Grid >
ctype Dune::RatioIndicator< Grid >::radiusRatio ( ) const
inline

◆ update()

template<class Grid >
void Dune::RatioIndicator< Grid >::update ( )
inline

Update the distances of all vertices.


The documentation for this class was generated from the following file: