dune-mmesh (1.4)
ratioindicator.hh
Go to the documentation of this file.
44 K_( 2. ), // the factor for the maximal edge length. Defaults to 2, because we use edge bisection.
46 k_( K_ / ( 2. * edgeRatio_ ) ), // ensure that a triangle with two edges longer than maxH splits up to a triangle where all edges are longer than minH
49 distProportion_( distProportion ), // cells with distance to interface of value greater than distProportion_ * max(dist) are refined to ...
bool initialized() const
Return if distance has been initialized.
Definition: distance.hh:66
Class defining an indicator for grid remeshing regarding the edge length ratio. By default,...
Definition: ratioindicator.hh:27
RatioIndicator(ctype h=0.0, ctype distProportion=1.0, ctype factor=1.0)
Calculates the indicator for each grid cell.
Definition: ratioindicator.hh:42
void init(const Grid &grid)
Calculates minH_ and maxH_ for the current interface edge length and sets factor_ to maxh / minh.
Definition: ratioindicator.hh:54
void update()
Update the distances of all vertices.
Definition: ratioindicator.hh:90
int operator()(const Element &element) const
Function call operator to return mark.
Definition: ratioindicator.hh:104
ctype & factor()
Returns reference to factor.
Definition: ratioindicator.hh:206
const DistanceType & distance() const
Returns distance object.
Definition: ratioindicator.hh:212
ctype & distProportion()
Returns reference to distProportion.
Definition: ratioindicator.hh:200
Class for computing the distance to the interface.
