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

stencil to evaluate the conservative divergence of a flux More...

#include <DivergenceStencil.H>

Public Member Functions

 DivergenceStencil (const EBCellFAB &a_diveFluxFaB, const EBFluxFAB &a_faceFluxFAB, const BaseIVFAB< Real > &a_bndyFluxFAB, const Box &a_grid, const EBISBox &a_ebisBox, const RealVect &a_dx, bool a_useEBFlux=true)
 
 ~DivergenceStencil ()
 
void divergence (EBCellFAB &a_divF, const EBFluxFAB &a_faceFlux, const BaseIVFAB< Real > &a_bndryFlux, const int &a_destVar, bool incrementOnly=false)
 

Protected Attributes

bool m_useEBFlux
 
Box m_grid
 
RealVect m_dx
 
RefCountedPtr< AggStencil< EBFaceFAB, EBCellFAB > > m_openStencil [CH_SPACEDIM]
 
RefCountedPtr< AggStencil< BaseIVFAB< Real >, EBCellFAB > > m_bdryStencil
 

Private Member Functions

 DivergenceStencil ()
 disallowed operators. Without code because Jeff says that is better. More...
 
DivergenceStenciloperator= (const DivergenceStencil &stenin)
 deep copy for this object would kill performance More...
 
 DivergenceStencil (const DivergenceStencil &stenin)
 no reason to allow this one either. More...
 

Detailed Description

stencil to evaluate the conservative divergence of a flux

Constructor & Destructor Documentation

◆ DivergenceStencil() [1/3]

DivergenceStencil::DivergenceStencil ( const EBCellFAB a_diveFluxFaB,
const EBFluxFAB a_faceFluxFAB,
const BaseIVFAB< Real > &  a_bndyFluxFAB,
const Box a_grid,
const EBISBox a_ebisBox,
const RealVect a_dx,
bool  a_useEBFlux = true 
)

The data holders sent in can be dummies but they must be the right size.

◆ ~DivergenceStencil()

DivergenceStencil::~DivergenceStencil ( )
inline

References divergence().

◆ DivergenceStencil() [2/3]

DivergenceStencil::DivergenceStencil ( )
private

disallowed operators. Without code because Jeff says that is better.

weak construction is bad.

◆ DivergenceStencil() [3/3]

DivergenceStencil::DivergenceStencil ( const DivergenceStencil stenin)
private

no reason to allow this one either.

Member Function Documentation

◆ divergence()

void DivergenceStencil::divergence ( EBCellFAB a_divF,
const EBFluxFAB a_faceFlux,
const BaseIVFAB< Real > &  a_bndryFlux,
const int &  a_destVar,
bool  incrementOnly = false 
)

Take the divergence of the incoming fluxes

Referenced by ~DivergenceStencil().

◆ operator=()

DivergenceStencil& DivergenceStencil::operator= ( const DivergenceStencil stenin)
private

deep copy for this object would kill performance

Member Data Documentation

◆ m_useEBFlux

bool DivergenceStencil::m_useEBFlux
protected

◆ m_grid

Box DivergenceStencil::m_grid
protected

◆ m_dx

RealVect DivergenceStencil::m_dx
protected

◆ m_openStencil

RefCountedPtr< AggStencil<EBFaceFAB, EBCellFAB> > DivergenceStencil::m_openStencil[CH_SPACEDIM]
protected

◆ m_bdryStencil

RefCountedPtr< AggStencil<BaseIVFAB<Real>, EBCellFAB> > DivergenceStencil::m_bdryStencil
protected

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