Chombo + EB + MF  3.2
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
MFStencil Class Reference

#include <MFStencil.H>


struct  agg_t
 structure to hold multifluid stencils More...
struct  destTerm_t
struct  ebstencil_t
struct  stencilTerm

Public Member Functions

 ~MFStencil ()
 MFStencil (const Vector< agg_t > &a_pointSten, const Box &a_gridBox, const Vector< EBISBox > &a_vectEBISBox, const IntVect &a_ghostVectLph, const IntVect &a_ghostVectPhi, int a_varDest)
void apply (MFCellFAB &a_lofphi, const MFCellFAB &a_phi, bool incrementOnly=false) const
void cache (const MFCellFAB &a_lphi) const
void uncache (MFCellFAB &a_lphi) const

Protected Member Functions

void computeOffsets (const Vector< agg_t > &a_stencil)

Protected Attributes

Box m_grid
EBISBox m_ebisBox [2]
Box m_lphBox
Box m_phiBox
IntVect m_ghostVectPhi
IntVect m_ghostVectLph
int m_destVar
Vector< ebstencil_tm_ebstencil
Vector< destTerm_tm_destTerms
Vector< Realm_cache

Private Member Functions

 MFStencil ()
void operator= (const MFStencil &stenin)
 MFStencil (const MFStencil &stenin)

Detailed Description

Simple stencil aggregation for multifluid problems.

Constructor & Destructor Documentation

◆ ~MFStencil()

MFStencil::~MFStencil ( )


References apply(), cache(), computeOffsets(), MFStencil(), and uncache().

◆ MFStencil() [1/3]

MFStencil::MFStencil ( const Vector< agg_t > &  a_pointSten,
const Box a_gridBox,
const Vector< EBISBox > &  a_vectEBISBox,
const IntVect a_ghostVectLph,
const IntVect a_ghostVectPhi,
int  a_varDest 

pointSten is the stencil at each irregular cell gridBox is the box from the disjointboxlayout vectEBISBox[0] is the ebisbox from fluid 0 vectEBISBox[1] is the ebisbox from fluid 1 ghostVectLph is the ghost cells of the destination fab ghostVectPhi is the ghost cells of the input (phi) fab vardest is the variable location where data will be put lphi[ifluid](vof, vardest) = blah blah

◆ MFStencil() [2/3]

MFStencil::MFStencil ( )

References MayDay::Error().

Referenced by ~MFStencil().

◆ MFStencil() [3/3]

MFStencil::MFStencil ( const MFStencil stenin)

References MayDay::Error().

Member Function Documentation

◆ apply()

void MFStencil::apply ( MFCellFAB a_lofphi,
const MFCellFAB a_phi,
bool  incrementOnly = false 
) const

Applies stencil to each component of phi using the stencil weights and offsets to compute L. If incrementOnly = true, a_lofphi is incremented without any set to zero. If false, a_lofphi is set to zero and set equal to L(phi).

Referenced by ~MFStencil().

◆ cache()

void MFStencil::cache ( const MFCellFAB a_lphi) const

Cache lphi from inputs into internal storage.

Referenced by ~MFStencil().

◆ uncache()

void MFStencil::uncache ( MFCellFAB a_lphi) const

uncache lphi from internal storage into the input data holder.

Referenced by ~MFStencil().

◆ computeOffsets()

void MFStencil::computeOffsets ( const Vector< agg_t > &  a_stencil)

Referenced by ~MFStencil().

◆ operator=()

void MFStencil::operator= ( const MFStencil stenin)

References MayDay::Error().

Member Data Documentation

◆ m_grid

Box MFStencil::m_grid

◆ m_ebisBox

EBISBox MFStencil::m_ebisBox[2]

◆ m_lphBox

Box MFStencil::m_lphBox

◆ m_phiBox

Box MFStencil::m_phiBox

◆ m_ghostVectPhi

IntVect MFStencil::m_ghostVectPhi

◆ m_ghostVectLph

IntVect MFStencil::m_ghostVectLph

◆ m_destVar

int MFStencil::m_destVar

◆ m_ebstencil

Vector<ebstencil_t> MFStencil::m_ebstencil

◆ m_destTerms

Vector<destTerm_t> MFStencil::m_destTerms

◆ m_cache

Vector<Real> MFStencil::m_cache

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