Chombo + EB  3.2
Public Member Functions | Protected Attributes | List of all members
DivNormalRefinement< dim > Class Template Reference

#include <DivNormalRefinement.H>

Inheritance diagram for DivNormalRefinement< dim >:
Inheritance graph
[legend]

Public Member Functions

 DivNormalRefinement ()
 Null constructor. More...
 
 DivNormalRefinement (const Real &a_maxChangeThreshold, const int &a_maxNumberOfRefinements)
 Constructor which sets a threshold. More...
 
virtual ~DivNormalRefinement ()
 Destructor. More...
 
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. More...
 
virtual void setMaxNumberOfRefinements (const int &a_maxNumberOfRefinements)
 
virtual int getMaxNumberOfRefinements ()
 Get threshold. More...
 
- Public Member Functions inherited from RefinementCriterion< dim >
 RefinementCriterion ()
 
 RefinementCriterion (const int &a_baseMaxNumberOfRefinements)
 
 RefinementCriterion (const RefinementCriterion< dim > &a_RefinementCriterion)
 
 ~RefinementCriterion ()
 
virtual bool baseDoRefine (IndexTM< int, dim > &a_refineInDir, const CutCellMoments< dim > &a_ccm, const int &a_numberOfRefinements)
 Should a cell be subdivided and in which directions. More...
 
void setConstrantSuccessStatus (const bool &a_status)
 
bool getConstrantSuccessStatus ()
 
void setBaseMaxNumberOfRefinements (const int &a_baseMaxNumberOfRefinements)
 
int getBaseMaxNumberOfRefinements ()
 
void print (ostream &a_out) const
 
void operator= (const RefinementCriterion &a_RefinementCriterion)
 

Protected Attributes

Real m_maxChangeThreshold
 
int m_maxNumberOfRefinements
 
- Protected Attributes inherited from RefinementCriterion< dim >
bool m_constraintsSucceeded
 
int m_baseMaxNumberOfRefinements
 

Detailed Description

template<int dim>
class DivNormalRefinement< dim >

This refinement criterion refines if the change in the normal exceeds a threshold.

Constructor & Destructor Documentation

◆ DivNormalRefinement() [1/2]

template<int dim>
DivNormalRefinement< dim >::DivNormalRefinement ( )

Null constructor.

◆ DivNormalRefinement() [2/2]

template<int dim>
DivNormalRefinement< dim >::DivNormalRefinement ( const Real a_maxChangeThreshold,
const int &  a_maxNumberOfRefinements 
)

Constructor which sets a threshold.

◆ ~DivNormalRefinement()

template<int dim>
DivNormalRefinement< dim >::~DivNormalRefinement ( )
virtual

Destructor.

Member Function Documentation

◆ doRefine()

template<int dim>
bool DivNormalRefinement< dim >::doRefine ( IndexTM< int, dim > &  a_refineInDir,
const CutCellMoments< dim > &  a_ccm,
const int &  a_numberOfRefinements 
)
virtual

Refine if the change in the normal exceeds a threshold.

Reimplemented from RefinementCriterion< dim >.

◆ approximateDivNormal()

template<int dim>
Real DivNormalRefinement< dim >::approximateDivNormal ( const CutCellMoments< dim > &  a_ccm)
virtual

◆ setMaxChangeThreshold()

template<int dim>
void DivNormalRefinement< dim >::setMaxChangeThreshold ( const Real a_maxChangeThreshold)
virtual

References MayDay::Abort().

◆ getMaxChangeThreshold()

template<int dim>
Real DivNormalRefinement< dim >::getMaxChangeThreshold ( )
virtual

Get threshold.

◆ setMaxNumberOfRefinements()

template<int dim>
void DivNormalRefinement< dim >::setMaxNumberOfRefinements ( const int &  a_maxNumberOfRefinements)
virtual

References MayDay::Abort().

◆ getMaxNumberOfRefinements()

template<int dim>
int DivNormalRefinement< dim >::getMaxNumberOfRefinements ( )
virtual

Get threshold.

Member Data Documentation

◆ m_maxChangeThreshold

template<int dim>
Real DivNormalRefinement< dim >::m_maxChangeThreshold
protected

◆ m_maxNumberOfRefinements

template<int dim>
int DivNormalRefinement< dim >::m_maxNumberOfRefinements
protected

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