RefinementCriterion Class Reference

#include <RefinementCriterion.H>

Inheritance diagram for RefinementCriterion:

Inheritance graph
[legend]

List of all members.


Detailed Description

This is the base class for refinement criterion used for the subdivision of cells in geometry generation. If the result if "doRefine()" is true, the cell is subdivided in the directions in which "a_refineInDir" is non-zero. The results of this subdivision are then combined to get results for the original cell.

Public Member Functions

 RefinementCriterion ()
 Null constructor.
virtual ~RefinementCriterion ()
 Destructor.
virtual bool doRefine (Vector< int > &a_refineInDir, const int &a_dim, const Vector< Real > &a_dx, const Vector< Vector< Real > > &a_residual)=0
 Should a cell be subdivided and in which directions.

Constructor & Destructor Documentation

RefinementCriterion::RefinementCriterion (  )  [inline]

Null constructor.

virtual RefinementCriterion::~RefinementCriterion (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual bool RefinementCriterion::doRefine ( Vector< int > &  a_refineInDir,
const int &  a_dim,
const Vector< Real > &  a_dx,
const Vector< Vector< Real > > &  a_residual 
) [pure virtual]

Should a cell be subdivided and in which directions.

This method returns true if the current cell should be subdivided. The subdivsion should occur in all the directions where "a_refineInDir" is non-zero.

Implemented in FacesRefinement, FixedRefinement, NoRefinement, and ZResidualBasedRefinement.

Referenced by CutCellMoments< dim >::computeMoments().


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

Generated on Tue Apr 14 14:23:57 2009 for Chombo + EB by  doxygen 1.5.5