Chombo + EB  3.2
Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
EBData Class Reference

#include <EBData.H>

Public Member Functions

 EBData ()
 
 ~EBData ()
 
void define (const Box &a_box, int a_comps)
 
 EBData (const Box &a_box, int a_comps)
 
void copy (const Box &a_regionFrom, const Interval &a_Cd, const Box &a_regionto, const EBData &a_source, const Interval &a_Cs)
 
void define (const EBGraph &a_graph, const Vector< IrregNode > &a_irregData, const Box &a_validBox, const Real &a_dx, bool a_hasMoments)
 define the whole thing More...
 
void define (const EBGraph &a_graph, const Box &a_region, const Real &a_dx, bool a_hasMoments)
 
void coarsenVoFs (const EBData &a_fineEBData, const EBGraph &a_fineGraph, const EBGraph &a_coarGraph, const Box &a_validRegion)
 
void coarsenFaces (const EBData &a_fineEBData, const EBGraph &a_fineGraph, const EBGraph &a_coarGraph, const Box &a_validRegion)
 
IndMomSpaceDim getVolumeMoments (const VolIndex &a_vof) const
 get the moment at the VoF associated with the monomial with the input exponents More...
 
IndMomSpaceDim getEBMoments (const VolIndex &a_vof) const
 get the normal the irregular face associated with the monomial with the input exponents More...
 
IndMomSDMinOne getFaceMoments (const FaceIndex &a_face) const
 get the moment at the face associated with the monomial with the input exponents More...
 
IndMomSDMinOne getAreaMoments (const FaceIndex &a_face) const
 I am sick of guessing this name wrong. More...
 
IndMomSpaceDim getEBNormalPartialDerivs (const VolIndex &a_vof, int a_normalComponent) const
 
IndMomSpaceDim getEBNormalMoments (const VolIndex &a_vof, int a_normalComponent) const
 get the normal*moment at the irregular face associated with the monomial with the input exponents More...
 
const RealvolFrac (const VolIndex &a_vof) const
 
const RealareaFrac (const FaceIndex &a_face1) const
 
const RealVectcentroid (const FaceIndex &facein) const
 
const RealVectcentroid (const VolIndex &a_vof) const
 
bool hasMoments () const
 return true if higher order moments are available More...
 
const RealVectbndryCentroid (const VolIndex &a_vof) const
 
const RealVectbndryCentroid (const VolIndex &a_vof, int face) const
 
const RealbndryArea (const VolIndex &a_vof) const
 
const RealbndryArea (const VolIndex &a_vof, int face) const
 
const RealVectnormal (const VolIndex &a_vof) const
 
const RealVectnormal (const VolIndex &a_vof, int face) const
 
int facePhase (const VolIndex &a_vof, int a_face) const
 used by multi-fluid code More...
 
const VolIndexfaceIndex (const VolIndex &a_vof, int face) const
 used by multi-fluid code More...
 
void setFacePhase (const VolIndex &a_vof, int face, int phase)
 used by multi-fluid code More...
 
void setFaceIndex (const VolIndex &a_vof, int face, const VolIndex &index)
 used by multi-fluid code More...
 
int numFacePhase (const VolIndex &a_vof) const
 
void clearMultiBoundaries ()
 
void setBoundaryPhase (int phase)
 
 EBData (const EBData &a_ebiin)
 
bool operator== (const EBData &a_ebiin)
 
EBDataoperator= (const EBData &a_ebiin)
 
int size (const Box &R, const Interval &comps) const
 
void linearOut (void *buf, const Box &R, const Interval &comps) const
 
void linearIn (void *buf, const Box &R, const Interval &comps)
 
void addFullIrregularVoFs (const IntVectSet &a_vofsToChange, const EBGraph &a_newGraph, const BaseIVFAB< VolData > &a_grownData, const EBGraph &a_oldGraph)
 
void addEmptyIrregularVoFs (const IntVectSet &a_vofsToChange, const EBGraph &a_newGraph)
 multifluid angels dancing on the heads of pins. More...
 
void computeNormalsAndBoundaryAreas (const EBGraph &a_graph, const Box &a_validRegion)
 
BaseIVFAB< VolData > & getVolData ()
 
const BaseIVFAB< VolData > & getVolData () const
 

Static Public Member Functions

static int preAllocatable ()
 

Private Attributes

RefCountedPtr< EBDataImplemm_implem
 

Friends

class EBIndexSpace
 
class EBISLevel
 

Detailed Description

Ref-counted version of EBDataImplem.

Constructor & Destructor Documentation

EBData::EBData ( )
inline
EBData::~EBData ( )
inline
EBData::EBData ( const Box a_box,
int  a_comps 
)
inline
EBData::EBData ( const EBData a_ebiin)
inline

References m_implem.

Member Function Documentation

void EBData::define ( const Box a_box,
int  a_comps 
)
inline

References EBDataImplem::define(), and m_implem.

void EBData::copy ( const Box a_regionFrom,
const Interval a_Cd,
const Box a_regionto,
const EBData a_source,
const Interval a_Cs 
)
inline

Copy the information from a_source to the over the intersection of the box a_region, the box of the current EBData and the box of a_source. The Interval arguments are ignored. This function is required by LevelData.

References EBDataImplem::copy(), and m_implem.

void EBData::define ( const EBGraph a_graph,
const Vector< IrregNode > &  a_irregData,
const Box a_validBox,
const Real a_dx,
bool  a_hasMoments 
)
inline

define the whole thing

References computeNormalsAndBoundaryAreas(), EBDataImplem::define(), and m_implem.

void EBData::define ( const EBGraph a_graph,
const Box a_region,
const Real a_dx,
bool  a_hasMoments 
)
inline

References EBDataImplem::define(), and m_implem.

void EBData::coarsenVoFs ( const EBData a_fineEBData,
const EBGraph a_fineGraph,
const EBGraph a_coarGraph,
const Box a_validRegion 
)
inline
void EBData::coarsenFaces ( const EBData a_fineEBData,
const EBGraph a_fineGraph,
const EBGraph a_coarGraph,
const Box a_validRegion 
)
inline
IndMomSpaceDim EBData::getVolumeMoments ( const VolIndex a_vof) const
inline

get the moment at the VoF associated with the monomial with the input exponents

Given VoF variables x, y, z, p = mono(0), q = mono(1), r = mono(2), returns integral_over_VoF(x^p y^q z^r dV) for all p q

References EBDataImplem::getVolumeMoments(), and m_implem.

Referenced by EBISBox::getVolumeMoments().

IndMomSpaceDim EBData::getEBMoments ( const VolIndex a_vof) const
inline

get the normal the irregular face associated with the monomial with the input exponents

Given VoF variables x, y, z, p = mono(0), q = mono(1), r = mono(2), returns integral_over_VoF((x^p y^q z^r) dV) for p q r

References EBDataImplem::getEBMoments(), and m_implem.

Referenced by EBISBox::getEBMoments().

IndMomSDMinOne EBData::getFaceMoments ( const FaceIndex a_face) const
inline

get the moment at the face associated with the monomial with the input exponents

Given face variables x, y, p = mono(0), q = mono(1)), returns integral_over_face(x^p y^q dA) for all p q

References EBDataImplem::getFaceMoments(), and m_implem.

Referenced by getAreaMoments(), and EBISBox::getFaceMoments().

IndMomSDMinOne EBData::getAreaMoments ( const FaceIndex a_face) const
inline

I am sick of guessing this name wrong.

References getFaceMoments().

IndMomSpaceDim EBData::getEBNormalPartialDerivs ( const VolIndex a_vof,
int  a_normalComponent 
) const
inline

gets the partial derivs of the normal component.

References EBDataImplem::getEBNormalPartialDerivs(), and m_implem.

Referenced by EBISBox::getEBNormalPartialDerivs().

IndMomSpaceDim EBData::getEBNormalMoments ( const VolIndex a_vof,
int  a_normalComponent 
) const
inline

get the normal*moment at the irregular face associated with the monomial with the input exponents

Given VoF variables x, y, z, p = mono(0), q = mono(1), r = mono(2), returns integral_over_VoF((x^p y^q z^r)*n_i dV) for p q r returns the OUTWARD (away from the center of the vof) normal comps

References EBDataImplem::getEBNormalMoments(), and m_implem.

const Real & EBData::volFrac ( const VolIndex a_vof) const
inline
const Real & EBData::areaFrac ( const FaceIndex a_face1) const
inline
const RealVect & EBData::centroid ( const FaceIndex facein) const
inline
const RealVect & EBData::centroid ( const VolIndex a_vof) const
inline
bool EBData::hasMoments ( ) const
inline

return true if higher order moments are available

References EBDataImplem::hasMoments(), and m_implem.

const RealVect & EBData::bndryCentroid ( const VolIndex a_vof) const
inline
const RealVect & EBData::bndryCentroid ( const VolIndex a_vof,
int  face 
) const
inline
const Real & EBData::bndryArea ( const VolIndex a_vof) const
inline
const Real & EBData::bndryArea ( const VolIndex a_vof,
int  face 
) const
inline
const RealVect & EBData::normal ( const VolIndex a_vof) const
inline

References m_implem, and EBDataImplem::normal().

const RealVect & EBData::normal ( const VolIndex a_vof,
int  face 
) const
inline

References m_implem, and EBDataImplem::normal().

int EBData::facePhase ( const VolIndex a_vof,
int  a_face 
) const
inline

used by multi-fluid code

References EBDataImplem::facePhase(), and m_implem.

const VolIndex& EBData::faceIndex ( const VolIndex a_vof,
int  face 
) const
inline

used by multi-fluid code

References EBDataImplem::faceIndex(), and m_implem.

void EBData::setFacePhase ( const VolIndex a_vof,
int  face,
int  phase 
)
inline

used by multi-fluid code

References m_implem, and EBDataImplem::setFacePhase().

void EBData::setFaceIndex ( const VolIndex a_vof,
int  face,
const VolIndex index 
)
inline

used by multi-fluid code

References m_implem, and EBDataImplem::setFaceIndex().

int EBData::numFacePhase ( const VolIndex a_vof) const
inline
void EBData::clearMultiBoundaries ( )
inline
void EBData::setBoundaryPhase ( int  phase)
inline
bool EBData::operator== ( const EBData a_ebiin)
inline

This is a pointer comparison.

References m_implem.

EBData& EBData::operator= ( const EBData a_ebiin)
inline

References m_implem.

int EBData::size ( const Box R,
const Interval comps 
) const
inline

This stuff required by LevelData in parallel:

References m_implem, and EBDataImplem::size().

void EBData::linearOut ( void *  buf,
const Box R,
const Interval comps 
) const
inline
void EBData::linearIn ( void *  buf,
const Box R,
const Interval comps 
)
inline
void EBData::addFullIrregularVoFs ( const IntVectSet a_vofsToChange,
const EBGraph a_newGraph,
const BaseIVFAB< VolData > &  a_grownData,
const EBGraph a_oldGraph 
)
inline
void EBData::addEmptyIrregularVoFs ( const IntVectSet a_vofsToChange,
const EBGraph a_newGraph 
)
inline

multifluid angels dancing on the heads of pins.

References EBDataImplem::addEmptyIrregularVoFs(), and m_implem.

void EBData::computeNormalsAndBoundaryAreas ( const EBGraph a_graph,
const Box a_validRegion 
)

Referenced by define().

BaseIVFAB<VolData>& EBData::getVolData ( )
inline
const BaseIVFAB<VolData>& EBData::getVolData ( ) const
inline
static int EBData::preAllocatable ( )
inlinestatic

Friends And Related Function Documentation

friend class EBIndexSpace
friend
friend class EBISLevel
friend

Member Data Documentation

RefCountedPtr<EBDataImplem> EBData::m_implem
private

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