Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

RefCellTagger Class Reference

#include <RefCellTagger.H>

Collaboration diagram for RefCellTagger:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RefCellTagger ()
 Null constructor.
 RefCellTagger (const ProblemDomain &a_problemDomain, const Real &a_dx, const int &a_refRatio)
 Constructor which defines no parameters.
virtual ~RefCellTagger ()
 Destructor.
void define ()
void define (const ProblemDomain &a_problemDomain, const Real &a_dx, const int &a_refRatio)
void setParameters (const bool a_useRefineGradient, const Real &a_gradientThreshold, const Interval &a_gradVarInterval, const bool a_useRefineOverDensity, const Real &a_cellMassThreshold, const bool a_useRefineShocks, const Real &a_presJumpThreshold, const bool a_useRefineVorticity, const Real &a_vorticityThreshold, const bool a_useRefineJeansLength, const Real &a_jeansResolThreshold, const bool a_useRefineRegion, const Vector< Box > &a_refineRegion, const Vector< RefineMode > &a_refineMode)
virtual RefCellTagger * new_refCellTagger () const
 Factory method - this object is its own factory.
void setRefineShocks (const bool a_useRefineShocks, const Real &a_presJumpThreshold)
 set the pressure jump threshold for refinement
void setRefineVorticity (const bool a_useRefineVorticity, const Real &a_vortexThreshold)
 set the pressure jump threshold for refinement
void setRefineGradient (const bool a_useRefineGradient, const Real &a_gradientThreshold, const Interval &a_gradVarInterval)
 set the variables for gradient
void setRefineOverdense (const bool a_useRefineOverDensity, const Real &a_cellMassThreshold)
 set the cell mass threshold for refinement
void setRefineJeans (const bool a_useRefineJeans, const Real &a_jeansResolThreshold)
 set the jeans resol. threshold for refinement
void setRefineRegion (const bool a_useRefineRegion, const Vector< Box > &a_refineRegion, const Vector< RefineMode > &a_refMode)
 setup for refinement of a region: a mode can be union or intersection for
bool refineShocks ()
bool refineVorticity ()
bool refineOverdense ()
bool refineGradient (const std::string a_var)
bool refineJeans ()
bool refineRegion ()
virtual bool needGhostCells ()
 whether or not need to interopolate/copy ghost cells
virtual IntVectSet tagShocks (const LevelData< FArrayBox > &a_U)
virtual IntVectSet tagVorticity (const LevelData< FArrayBox > &a_U)
virtual IntVectSet tagJeans (const LevelData< FArrayBox > &a_U)
virtual IntVectSet tagOverdense (const LevelData< FArrayBox > &a_rho)
virtual IntVectSet tagGradient (const LevelData< FArrayBox > &a_U)
virtual IntVectSet tagRegion (const RealVect &a_low, const RealVect &a_high, const DisjointBoxLayout &a_grids)
 Tag all cells in the specified region of space.
virtual IntVectSet tagRegion (const IntVectSet &a_tags, const int a_level, const DisjointBoxLayout &a_grids)
 Tag all cells in the region defined in the setRefinedRegion function.

Protected Member Functions

void relativeGradient (FArrayBox &a_gradMagFab, const FArrayBox &a_varFab, const int a_comp, const Box &a_box)

Protected Attributes

bool m_isDefined
Real m_dx
ProblemDomain m_problemDomain
Real m_refRatio
Real m_presJumpThreshold
bool m_useRefineShocks
bool m_isRefineShocksSet
Real m_vorticityThreshold
bool m_useRefineVorticity
bool m_isRefineVorticitySet
Real m_cellMassThreshold
bool m_useRefineOverDensity
bool m_isRefineOverDensitySet
Real m_jeansResolThreshold
bool m_useRefineJeansLength
bool m_isRefineJeansLengthSet
Real m_gradientThreshold
bool m_useRefineGradient
Interval m_gradVarInterval
bool m_isRefineGradientSet
Vector< Box > m_refineRegion
Vector< RefineMode > m_refineMode
bool m_useRefineRegion
bool m_isRefineRegionSet

Constructor & Destructor Documentation

RefCellTagger::RefCellTagger (   ) 
 

Null constructor.

RefCellTagger::RefCellTagger (  const ProblemDomain &  a_problemDomain,
const Real &  a_dx,
const int &  a_refRatio
) 
 

Constructor which defines no parameters.

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

Destructor.


Member Function Documentation

void RefCellTagger::define (  const ProblemDomain &  a_problemDomain,
const Real &  a_dx,
const int &  a_refRatio
) 
 

void RefCellTagger::define (   ) 
 

virtual bool RefCellTagger::needGhostCells (   )  [inline, virtual]
 

whether or not need to interopolate/copy ghost cells

virtual RefCellTagger* RefCellTagger::new_refCellTagger (   )  const [virtual]
 

Factory method - this object is its own factory.

bool RefCellTagger::refineGradient (  const std::string  a_var  ) 
 

bool RefCellTagger::refineJeans (   )  [inline]
 

bool RefCellTagger::refineOverdense (   )  [inline]
 

bool RefCellTagger::refineRegion (   )  [inline]
 

bool RefCellTagger::refineShocks (   )  [inline]
 

bool RefCellTagger::refineVorticity (   )  [inline]
 

void RefCellTagger::relativeGradient (  FArrayBox &  a_gradMagFab,
const FArrayBox &  a_varFab,
const int  a_comp,
const Box &  a_box
)  [protected]
 

void RefCellTagger::setParameters (  const bool  a_useRefineGradient,
const Real &  a_gradientThreshold,
const Interval &  a_gradVarInterval,
const bool  a_useRefineOverDensity,
const Real &  a_cellMassThreshold,
const bool  a_useRefineShocks,
const Real &  a_presJumpThreshold,
const bool  a_useRefineVorticity,
const Real &  a_vorticityThreshold,
const bool  a_useRefineJeansLength,
const Real &  a_jeansResolThreshold,
const bool  a_useRefineRegion,
const Vector< Box > &  a_refineRegion,
const Vector< RefineMode > &  a_refineMode
) 
 

void RefCellTagger::setRefineGradient (  const bool  a_useRefineGradient,
const Real &  a_gradientThreshold,
const Interval &  a_gradVarInterval
) 
 

set the variables for gradient

void RefCellTagger::setRefineJeans (  const bool  a_useRefineJeans,
const Real &  a_jeansResolThreshold
) 
 

set the jeans resol. threshold for refinement

void RefCellTagger::setRefineOverdense (  const bool  a_useRefineOverDensity,
const Real &  a_cellMassThreshold
) 
 

set the cell mass threshold for refinement

void RefCellTagger::setRefineRegion (  const bool  a_useRefineRegion,
const Vector< Box > &  a_refineRegion,
const Vector< RefineMode > &  a_refMode
) 
 

setup for refinement of a region: a mode can be union or intersection for

void RefCellTagger::setRefineShocks (  const bool  a_useRefineShocks,
const Real &  a_presJumpThreshold
) 
 

set the pressure jump threshold for refinement

void RefCellTagger::setRefineVorticity (  const bool  a_useRefineVorticity,
const Real &  a_vortexThreshold
) 
 

set the pressure jump threshold for refinement

virtual IntVectSet RefCellTagger::tagGradient (  const LevelData< FArrayBox > &  a_U  )  [virtual]
 

virtual IntVectSet RefCellTagger::tagJeans (  const LevelData< FArrayBox > &  a_U  )  [virtual]
 

virtual IntVectSet RefCellTagger::tagOverdense (  const LevelData< FArrayBox > &  a_rho  )  [virtual]
 

virtual IntVectSet RefCellTagger::tagRegion (  const IntVectSet &  a_tags,
const int  a_level,
const DisjointBoxLayout &  a_grids
)  [virtual]
 

Tag all cells in the region defined in the setRefinedRegion function.

virtual IntVectSet RefCellTagger::tagRegion (  const RealVect &  a_low,
const RealVect &  a_high,
const DisjointBoxLayout &  a_grids
)  [virtual]
 

Tag all cells in the specified region of space.

virtual IntVectSet RefCellTagger::tagShocks (  const LevelData< FArrayBox > &  a_U  )  [virtual]
 

virtual IntVectSet RefCellTagger::tagVorticity (  const LevelData< FArrayBox > &  a_U  )  [virtual]
 


Member Data Documentation

Real RefCellTagger::m_cellMassThreshold [protected]
 

Real RefCellTagger::m_dx [protected]
 

Real RefCellTagger::m_gradientThreshold [protected]
 

Interval RefCellTagger::m_gradVarInterval [protected]
 

bool RefCellTagger::m_isDefined [protected]
 

bool RefCellTagger::m_isRefineGradientSet [protected]
 

bool RefCellTagger::m_isRefineJeansLengthSet [protected]
 

bool RefCellTagger::m_isRefineOverDensitySet [protected]
 

bool RefCellTagger::m_isRefineRegionSet [protected]
 

bool RefCellTagger::m_isRefineShocksSet [protected]
 

bool RefCellTagger::m_isRefineVorticitySet [protected]
 

Real RefCellTagger::m_jeansResolThreshold [protected]
 

Real RefCellTagger::m_presJumpThreshold [protected]
 

ProblemDomain RefCellTagger::m_problemDomain [protected]
 

Vector<RefineMode> RefCellTagger::m_refineMode [protected]
 

Vector<Box> RefCellTagger::m_refineRegion [protected]
 

Real RefCellTagger::m_refRatio [protected]
 

bool RefCellTagger::m_useRefineGradient [protected]
 

bool RefCellTagger::m_useRefineJeansLength [protected]
 

bool RefCellTagger::m_useRefineOverDensity [protected]
 

bool RefCellTagger::m_useRefineRegion [protected]
 

bool RefCellTagger::m_useRefineShocks [protected]
 

bool RefCellTagger::m_useRefineVorticity [protected]
 

Real RefCellTagger::m_vorticityThreshold [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Oct 5 14:02:15 2005 for Chombo&AMRSelfGravity by  doxygen 1.4.1