Chombo + EB  3.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
NewGeometryShop Class Reference

#include <NewGeometryShop.H>

Inheritance diagram for NewGeometryShop:
Inheritance graph
[legend]

Public Member Functions

 NewGeometryShop (const BaseIF &a_baseIF, const RealVect &a_origin, const RealVect &a_vectDx, const ProblemDomain &a_domain, const int &a_order=GEOMETRY_ORDER, const int &a_degreeP=GEOMETRY_DEGREEP, const bool &a_useConstraints=GEOMETRY_CONSTRAINTS)
 
 ~NewGeometryShop ()
 
bool isRegular (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
bool isCovered (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
virtual bool isIrregular (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
virtual bool canGenerateMultiCells () const
 
virtual void fillGraph (BaseFab< int > &a_regIrregCovered, Vector< IrregNode > &a_nodes, const Box &a_validRegion, const Box &a_ghostRegion, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
void computeVoFInternals (Real &a_volFrac, Vector< int > a_loArc[SpaceDim], Vector< int > a_hiArc[SpaceDim], Vector< Real > a_loAreaFrac[SpaceDim], Vector< Real > a_hiAreaFrac[SpaceDim], Real &a_bndryArea, RealVect &a_normal, RealVect &a_volCentroid, RealVect &a_bndryCentroid, Vector< RealVect > a_loFaceCentroid[SpaceDim], Vector< RealVect > a_hiFaceCentroid[SpaceDim], const IntVectSet &a_ivsIrreg, const VolIndex &a_vof, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx, const RealVect &a_vectDx, const IntVect &a_iv) const
 
void settCurrIv (const IntVect &a_iv) const
 
void fillResiduals (int &a_degreeP) const
 
Real fillVolFrac () const
 
void fillArc (Vector< int > a_arc[SpaceDim], const int &a_hilo, const IntVectSet &a_ivsIrreg) const
 
void fillLoArc (Vector< int > a_loArc[SpaceDim], const IntVectSet &a_ivsIrreg) const
 
void fillHiArc (Vector< int > a_hiArc[SpaceDim], const IntVectSet &a_ivsIrreg) const
 
void fillAreaFrac (Vector< Real > a_AreaFrac[SpaceDim], const int &a_hilo) const
 
void fillLoAreaFrac (Vector< Real > a_loAreaFrac[SpaceDim]) const
 
void fillHiAreaFrac (Vector< Real > a_hiAreaFrac[SpaceDim]) const
 
Real fillBndryArea () const
 
RealVect fillNormal () const
 
RealVect fillvolCentroid () const
 
RealVect fillBndryCentroid () const
 
void fillFaceCentroid (Vector< RealVect >a_loFaceCentroid[SpaceDim], const int &a_hilo) const
 
void fillLoFaceCentroid (Vector< RealVect >a_LOFaceCentroid[SpaceDim]) const
 
void fillHiFaceCentroid (Vector< RealVect >a_hiFaceCentroid[SpaceDim]) const
 
void clipComputedVal (Real &a_volFrac, Vector< Real > a_loAreaFrac[SpaceDim], Vector< Real > a_hiAreaFrac[SpaceDim], Real &a_bndryArea, RealVect &a_volCentroid, RealVect &a_bndryCentroid, Vector< RealVect > a_loFaceCentroid[SpaceDim], Vector< RealVect > a_hiFaceCentroid[SpaceDim], const IntVect &a_iv) const
 
RealVect convertIndexTM2RealVect (const IndexTM< Real, SpaceDim > &a_indexTm) const
 
IndexTM< Real, SpaceDimconvertRealVect2IndexTM (const RealVect &a_realVect) const
 
IntVect convertIndexTM2IntVect (const IndexTM< int, SpaceDim > &a_indexTm) const
 
IndexTM< int, SpaceDimconvertIntVect2IndexTM (const IntVect &a_intVect) const
 
RealVect convert2RelativeCoord (const RealVect &a_rVect) const
 
RealVect convert2RelativeCoord (const IndexTM< Real, SpaceDim > &a_rVect) const
 
void outputResidual (int &type, int &a_degreeP) const
 
void outputGradNormal () const
 
- Public Member Functions inherited from GeometryService
 GeometryService ()
 
virtual ~GeometryService ()
 
virtual void fillGraph (BaseFab< int > &a_regIrregCovered, Vector< IrregNode > &a_nodes, const Box &a_validRegion, const Box &a_ghostRegion, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx, const DataIndex &a_di) const
 
virtual InOut InsideOutside (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
virtual InOut InsideOutside (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx, const DataIndex &a_di) const
 
virtual void postMakeBoxLayout (const DisjointBoxLayout &a_dbl, const RealVect &a_dx)
 
virtual void makeGrids (const ProblemDomain &a_domain, DisjointBoxLayout &a_grids, const int &a_maxGridSize, const int &a_maxIrregGridSize)
 

Public Attributes

int m_phase
 

Private Member Functions

bool isRegularEveryPoint (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
bool isCoveredEveryPoint (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx) const
 
virtual bool isIrregularEveryPoint (const Box &a_region, const ProblemDomain &a_domain, const RealVect &a_origin, const Real &a_dx, const Real &a_originVal) const
 
int getNumCellsClipped ()
 
 NewGeometryShop ()
 
 NewGeometryShop (const NewGeometryShop &a_workshopin)
 
void operator= (const NewGeometryShop &a_workshopin)
 

Private Attributes

int m_numCellsClipped
 
Real m_threshold
 
RealVect m_origin
 
RealVect m_vectDx
 
RvgDim m_dxVect
 
int m_order
 
int m_degreeP
 
bool m_useConstraints
 
Real m_volScaleFactor
 
Real m_bndryAreaScaleFactor
 
FArrayBox m_residuals
 
FArrayBox m_gradNormal
 
IntVect m_currIv
 
ProblemDomain m_domain
 
const BaseIFm_baseIF
 
CutCellMoments< GLOBALDIMm_cutCellMoments
 

Static Private Attributes

static bool s_verbose
 

Additional Inherited Members

- Public Types inherited from GeometryService
enum  InOut { Regular, Covered, Irregular }
 
- Static Public Member Functions inherited from GeometryService
static bool intersection (const RealVect &a_lo1, const RealVect &a_hi1, const RealVect &a_lo2, const RealVect &a_hi2)
 handy functions to do rectangle intersections in real space More...
 
static bool intersection (const Box &a_region, const RealVect &a_origin, const Real &a_dx, const RealVect &a_lower, const RealVect &a_upper)
 

Detailed Description

This is the base class for the workshop algorithm. It forms the interface between the shallow water workshop classes and the geometryservice class. If globalDim < 3, then this code will break

Constructor & Destructor Documentation

NewGeometryShop::NewGeometryShop ( const BaseIF a_baseIF,
const RealVect a_origin,
const RealVect a_vectDx,
const ProblemDomain a_domain,
const int &  a_order = GEOMETRY_ORDER,
const int &  a_degreeP = GEOMETRY_DEGREEP,
const bool &  a_useConstraints = GEOMETRY_CONSTRAINTS 
)

Define the workshop using the local geometry description

NewGeometryShop::~NewGeometryShop ( )
NewGeometryShop::NewGeometryShop ( )
inlineprivate

References MayDay::Abort().

NewGeometryShop::NewGeometryShop ( const NewGeometryShop a_workshopin)
inlineprivate

References MayDay::Abort().

Member Function Documentation

bool NewGeometryShop::isRegular ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
virtual

Return true if every cell in region is regular at the refinement described by dx.

Implements GeometryService.

bool NewGeometryShop::isCovered ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
virtual

Return true if every cell in region is covered at the refinement described by dx.

Implements GeometryService.

virtual bool NewGeometryShop::isIrregular ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
virtual

Reimplemented from GeometryService.

virtual bool NewGeometryShop::canGenerateMultiCells ( ) const
inlinevirtual

Reimplemented from GeometryService.

virtual void NewGeometryShop::fillGraph ( BaseFab< int > &  a_regIrregCovered,
Vector< IrregNode > &  a_nodes,
const Box a_validRegion,
const Box a_ghostRegion,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
virtual

Define the internals of the input ebisRegion.

Implements GeometryService.

void NewGeometryShop::computeVoFInternals ( Real a_volFrac,
Vector< int >  a_loArc[SpaceDim],
Vector< int >  a_hiArc[SpaceDim],
Vector< Real a_loAreaFrac[SpaceDim],
Vector< Real a_hiAreaFrac[SpaceDim],
Real a_bndryArea,
RealVect a_normal,
RealVect a_volCentroid,
RealVect a_bndryCentroid,
Vector< RealVect a_loFaceCentroid[SpaceDim],
Vector< RealVect a_hiFaceCentroid[SpaceDim],
const IntVectSet a_ivsIrreg,
const VolIndex a_vof,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx,
const RealVect a_vectDx,
const IntVect a_iv 
) const
void NewGeometryShop::settCurrIv ( const IntVect a_iv) const
void NewGeometryShop::fillResiduals ( int &  a_degreeP) const
Real NewGeometryShop::fillVolFrac ( ) const
void NewGeometryShop::fillArc ( Vector< int >  a_arc[SpaceDim],
const int &  a_hilo,
const IntVectSet a_ivsIrreg 
) const
void NewGeometryShop::fillLoArc ( Vector< int >  a_loArc[SpaceDim],
const IntVectSet a_ivsIrreg 
) const
void NewGeometryShop::fillHiArc ( Vector< int >  a_hiArc[SpaceDim],
const IntVectSet a_ivsIrreg 
) const
void NewGeometryShop::fillAreaFrac ( Vector< Real a_AreaFrac[SpaceDim],
const int &  a_hilo 
) const
void NewGeometryShop::fillLoAreaFrac ( Vector< Real a_loAreaFrac[SpaceDim]) const
void NewGeometryShop::fillHiAreaFrac ( Vector< Real a_hiAreaFrac[SpaceDim]) const
Real NewGeometryShop::fillBndryArea ( ) const
RealVect NewGeometryShop::fillNormal ( ) const
RealVect NewGeometryShop::fillvolCentroid ( ) const
RealVect NewGeometryShop::fillBndryCentroid ( ) const
void NewGeometryShop::fillFaceCentroid ( Vector< RealVect a_loFaceCentroid[SpaceDim],
const int &  a_hilo 
) const
void NewGeometryShop::fillLoFaceCentroid ( Vector< RealVect a_LOFaceCentroid[SpaceDim]) const
void NewGeometryShop::fillHiFaceCentroid ( Vector< RealVect a_hiFaceCentroid[SpaceDim]) const
void NewGeometryShop::clipComputedVal ( Real a_volFrac,
Vector< Real a_loAreaFrac[SpaceDim],
Vector< Real a_hiAreaFrac[SpaceDim],
Real a_bndryArea,
RealVect a_volCentroid,
RealVect a_bndryCentroid,
Vector< RealVect a_loFaceCentroid[SpaceDim],
Vector< RealVect a_hiFaceCentroid[SpaceDim],
const IntVect a_iv 
) const
RealVect NewGeometryShop::convertIndexTM2RealVect ( const IndexTM< Real, SpaceDim > &  a_indexTm) const
IndexTM<Real,SpaceDim> NewGeometryShop::convertRealVect2IndexTM ( const RealVect a_realVect) const
IntVect NewGeometryShop::convertIndexTM2IntVect ( const IndexTM< int, SpaceDim > &  a_indexTm) const
IndexTM<int,SpaceDim> NewGeometryShop::convertIntVect2IndexTM ( const IntVect a_intVect) const
RealVect NewGeometryShop::convert2RelativeCoord ( const RealVect a_rVect) const
RealVect NewGeometryShop::convert2RelativeCoord ( const IndexTM< Real, SpaceDim > &  a_rVect) const
void NewGeometryShop::outputResidual ( int &  type,
int &  a_degreeP 
) const
void NewGeometryShop::outputGradNormal ( ) const
bool NewGeometryShop::isRegularEveryPoint ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
private

Return true if every cell in region is regular at the refinement described by dx.

bool NewGeometryShop::isCoveredEveryPoint ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx 
) const
private

Return true if every cell in region is covered at the refinement described by dx.

virtual bool NewGeometryShop::isIrregularEveryPoint ( const Box a_region,
const ProblemDomain a_domain,
const RealVect a_origin,
const Real a_dx,
const Real a_originVal 
) const
privatevirtual
int NewGeometryShop::getNumCellsClipped ( )
private
void NewGeometryShop::operator= ( const NewGeometryShop a_workshopin)
inlineprivate

References MayDay::Abort().

Member Data Documentation

int NewGeometryShop::m_phase
int NewGeometryShop::m_numCellsClipped
private
Real NewGeometryShop::m_threshold
private
RealVect NewGeometryShop::m_origin
private
RealVect NewGeometryShop::m_vectDx
private
RvgDim NewGeometryShop::m_dxVect
private
int NewGeometryShop::m_order
private
int NewGeometryShop::m_degreeP
private
bool NewGeometryShop::m_useConstraints
private
Real NewGeometryShop::m_volScaleFactor
private
Real NewGeometryShop::m_bndryAreaScaleFactor
private
FArrayBox NewGeometryShop::m_residuals
mutableprivate
FArrayBox NewGeometryShop::m_gradNormal
mutableprivate
IntVect NewGeometryShop::m_currIv
mutableprivate
ProblemDomain NewGeometryShop::m_domain
private
const BaseIF* NewGeometryShop::m_baseIF
private
CutCellMoments<GLOBALDIM> NewGeometryShop::m_cutCellMoments
private
bool NewGeometryShop::s_verbose
staticprivate

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