#include <DivNormalRefinement.H>
Public Member Functions | |
DivNormalRefinement () | |
Null constructor. | |
DivNormalRefinement (const Real &a_maxChangeThreshold, const int &a_maxNumberOfRefinements) | |
Constructor which sets a threshold. | |
virtual | ~DivNormalRefinement () |
Destructor. | |
virtual bool | doRefine (IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements) |
virtual Real | approximateDivNormal (const CutCellMoments< dim > &a_ccm) |
virtual void | setMaxChangeThreshold (const Real &a_maxChangeThreshold) |
virtual Real | getMaxChangeThreshold () |
Get threshold. | |
virtual void | setMaxNumberOfRefinements (const int &a_maxNumberOfRefinements) |
virtual int | getMaxNumberOfRefinements () |
Get threshold. | |
Protected Attributes | |
Real | m_maxChangeThreshold |
int | m_maxNumberOfRefinements |
DivNormalRefinement< dim >::DivNormalRefinement | ( | ) | [inline] |
Null constructor.
DivNormalRefinement< dim >::DivNormalRefinement | ( | const Real & | a_maxChangeThreshold, | |
const int & | a_maxNumberOfRefinements | |||
) | [inline] |
Constructor which sets a threshold.
References DivNormalRefinement< dim >::setMaxChangeThreshold(), and DivNormalRefinement< dim >::setMaxNumberOfRefinements().
DivNormalRefinement< dim >::~DivNormalRefinement | ( | ) | [inline, virtual] |
Destructor.
bool DivNormalRefinement< dim >::doRefine | ( | IndexTM< int, dim > & | a_refineInDir, | |
const CutCellMoments< dim > & | a_ccm, | |||
const int & | a_numberOfRefinements | |||
) | [inline, virtual] |
Refine if the change in the normal exceeds a threshold.
Reimplemented from RefinementCriterion< dim >.
References DivNormalRefinement< dim >::approximateDivNormal(), DivNormalRefinement< dim >::m_maxChangeThreshold, and DivNormalRefinement< dim >::m_maxNumberOfRefinements.
Real DivNormalRefinement< dim >::approximateDivNormal | ( | const CutCellMoments< dim > & | a_ccm | ) | [inline, virtual] |
Estimate the change in the normal.
References Abs(), dim, NormalDerivative< dim >::evaluate(), IFData< dim >::m_cellCenterCoord, IFData< dim >::m_function, IFData< dim >::m_globalCoord, CutCellMoments< dim >::m_IFData, IFData< dim >::m_intersections, and IFData< dim >::m_normalDerivatives.
Referenced by DivNormalRefinement< dim >::doRefine().
void DivNormalRefinement< dim >::setMaxChangeThreshold | ( | const Real & | a_maxChangeThreshold | ) | [inline, virtual] |
References MayDay::Abort(), and DivNormalRefinement< dim >::m_maxChangeThreshold.
Referenced by DivNormalRefinement< dim >::DivNormalRefinement().
Real DivNormalRefinement< dim >::getMaxChangeThreshold | ( | ) | [inline, virtual] |
void DivNormalRefinement< dim >::setMaxNumberOfRefinements | ( | const int & | a_maxNumberOfRefinements | ) | [inline, virtual] |
References MayDay::Abort(), and DivNormalRefinement< dim >::m_maxNumberOfRefinements.
Referenced by DivNormalRefinement< dim >::DivNormalRefinement().
int DivNormalRefinement< dim >::getMaxNumberOfRefinements | ( | ) | [inline, virtual] |
Real DivNormalRefinement< dim >::m_maxChangeThreshold [protected] |
int DivNormalRefinement< dim >::m_maxNumberOfRefinements [protected] |