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() [1/3]

EBData::EBData ( )
inline

◆ ~EBData()

EBData::~EBData ( )
inline

◆ EBData() [2/3]

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

◆ EBData() [3/3]

EBData::EBData ( const EBData a_ebiin)
inline

References m_implem.

Member Function Documentation

◆ define() [1/3]

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

◆ copy()

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

◆ define() [2/3]

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

◆ define() [3/3]

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

◆ coarsenVoFs()

void EBData::coarsenVoFs ( const EBData a_fineEBData,
const EBGraph a_fineGraph,
const EBGraph a_coarGraph,
const Box a_validRegion 
)
inline

References m_implem.

◆ coarsenFaces()

void EBData::coarsenFaces ( const EBData a_fineEBData,
const EBGraph a_fineGraph,
const EBGraph a_coarGraph,
const Box a_validRegion 
)
inline

References m_implem.

◆ getVolumeMoments()

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

Referenced by EBISBox::getVolumeMoments().

◆ getEBMoments()

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

Referenced by EBISBox::getEBMoments().

◆ getFaceMoments()

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

Referenced by EBISBox::getFaceMoments().

◆ getAreaMoments()

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

I am sick of guessing this name wrong.

◆ getEBNormalPartialDerivs()

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

gets the partial derivs of the normal component.

Referenced by EBISBox::getEBNormalPartialDerivs().

◆ getEBNormalMoments()

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

◆ volFrac()

const Real & EBData::volFrac ( const VolIndex a_vof) const
inline

◆ areaFrac()

const Real & EBData::areaFrac ( const FaceIndex a_face1) const
inline

◆ centroid() [1/2]

const RealVect & EBData::centroid ( const FaceIndex facein) const
inline

◆ centroid() [2/2]

const RealVect & EBData::centroid ( const VolIndex a_vof) const
inline

◆ hasMoments()

bool EBData::hasMoments ( ) const
inline

return true if higher order moments are available

◆ bndryCentroid() [1/2]

const RealVect & EBData::bndryCentroid ( const VolIndex a_vof) const
inline

◆ bndryCentroid() [2/2]

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

◆ bndryArea() [1/2]

const Real & EBData::bndryArea ( const VolIndex a_vof) const
inline

◆ bndryArea() [2/2]

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

◆ normal() [1/2]

const RealVect & EBData::normal ( const VolIndex a_vof) const
inline

◆ normal() [2/2]

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

◆ facePhase()

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

used by multi-fluid code

◆ faceIndex()

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

used by multi-fluid code

◆ setFacePhase()

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

used by multi-fluid code

◆ setFaceIndex()

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

used by multi-fluid code

◆ numFacePhase()

int EBData::numFacePhase ( const VolIndex a_vof) const
inline

◆ clearMultiBoundaries()

void EBData::clearMultiBoundaries ( )
inline

◆ setBoundaryPhase()

void EBData::setBoundaryPhase ( int  phase)
inline

◆ operator==()

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

This is a pointer comparison.

References m_implem.

◆ operator=()

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

References m_implem.

◆ size()

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

This stuff required by LevelData in parallel:

◆ linearOut()

void EBData::linearOut ( void *  buf,
const Box R,
const Interval comps 
) const
inline

◆ linearIn()

void EBData::linearIn ( void *  buf,
const Box R,
const Interval comps 
)
inline

◆ addFullIrregularVoFs()

void EBData::addFullIrregularVoFs ( const IntVectSet a_vofsToChange,
const EBGraph a_newGraph,
const BaseIVFAB< VolData > &  a_grownData,
const EBGraph a_oldGraph 
)
inline

◆ addEmptyIrregularVoFs()

void EBData::addEmptyIrregularVoFs ( const IntVectSet a_vofsToChange,
const EBGraph a_newGraph 
)
inline

multifluid angels dancing on the heads of pins.

◆ computeNormalsAndBoundaryAreas()

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

◆ getVolData() [1/2]

BaseIVFAB<VolData>& EBData::getVolData ( )
inline

◆ getVolData() [2/2]

const BaseIVFAB<VolData>& EBData::getVolData ( ) const
inline

◆ preAllocatable()

static int EBData::preAllocatable ( )
inlinestatic

Friends And Related Function Documentation

◆ EBIndexSpace

friend class EBIndexSpace
friend

◆ EBISLevel

friend class EBISLevel
friend

Member Data Documentation

◆ m_implem

RefCountedPtr<EBDataImplem> EBData::m_implem
private

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