Chombo + EB  3.0
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

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

Null constructor.

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

Constructor which sets a threshold.

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

Destructor.

Member Function Documentation

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

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

References MayDay::Abort().

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

Get threshold.

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

References MayDay::Abort().

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

Get threshold.

Member Data Documentation

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

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