Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

RedistStencil Class Reference

stencil for mass redistribution More...

#include <RedistStencil.H>

Collaboration diagram for RedistStencil:

Collaboration graph
[legend]
List of all members.

Public Methods

 RedistStencil ()
 ~RedistStencil ()
 RedistStencil (const DisjointBoxLayout &dbl, const EBISLayout &ebisl, const Box &domain, const int &redistRadius)
void define (const DisjointBoxLayout &dbl, const EBISLayout &ebisl, const Box &domain, const int &redistRadius)
bool isDefined () const
void resetWeights (const LevelData< EBCellFAB > &a_modifier, const int &a_ivar)
const BaseIVFAB< VoFStencil > & operator[] (const DataIndex &datInd) const
void deepCopy (const RedistStencil &a_stenin)
int getRedistRadius () const

Protected Attributes

LayoutData< BaseIVFAB< VoFStencil > > m_stencil
LayoutData< BaseIVFAB< VoFStencil > > m_volsten
DisjointBoxLayout m_grids
Box m_domain
EBISLayout m_ebisl
bool m_isDefined
bool m_hasDefaultWeights
int m_redistRadius

Private Methods

void computePointStencil (VoFStencil &a_stencil, const VolIndex &a_srcVoF, const DataIndex &a_datInd)
 RedistStencil (const RedistStencil &ebcin)
void operator= (const RedistStencil &fabin)

Detailed Description

stencil for mass redistribution

The RedistStencil class holds the stencil for mass redistribution at every irregular VoF in a layout. The default weights that the stencil holds are volume weights. The class does allow the flexibility to redefine these weights.


Constructor & Destructor Documentation

RedistStencil::RedistStencil  
 

Default constructor. User must subsequently call define().

RedistStencil::~RedistStencil  
 

RedistStencil::RedistStencil const DisjointBoxLayout   dbl,
const EBISLayout   ebisl,
const Box   domain,
const int &    redistRadius
 

Defining constructor. Constructs a valid object. Equivalent to default construction followed by define(). ebisl needs ghost cells out to 3*redistradius

RedistStencil::RedistStencil const RedistStencil &    ebcin [inline, private]
 


Member Function Documentation

void RedistStencil::computePointStencil VoFStencil   a_stencil,
const VolIndex   a_srcVoF,
const DataIndex   a_datInd
[private]
 

void RedistStencil::deepCopy const RedistStencil &    a_stenin
 

This copy operation detaches copier from copyee.

void RedistStencil::define const DisjointBoxLayout   dbl,
const EBISLayout   ebisl,
const Box   domain,
const int &    redistRadius
 

Defines this object. Existing information is overriden. ebisl needs ghost cells out to 3*redistradius

int RedistStencil::getRedistRadius   const
 

bool RedistStencil::isDefined   const
 

Returns true if this object was created with the defining constructor or if define() has been called.

void RedistStencil::operator= const RedistStencil &    fabin [inline, private]
 

const BaseIVFAB<VoFStencil >& RedistStencil::operator[] const DataIndex   datInd const
 

Returns the redistribution stencil at every irregular point in input Box associated with this DataIndex.

void RedistStencil::resetWeights const LevelData< EBCellFAB > &    a_modifier,
const int &    a_ivar
 

Modify the weights in the stencil by multiplying by the inputs in a normalized way. If you want mass weighting, send in the density.


Member Data Documentation

Box RedistStencil::m_domain [protected]
 

EBISLayout RedistStencil::m_ebisl [protected]
 

DisjointBoxLayout RedistStencil::m_grids [protected]
 

bool RedistStencil::m_hasDefaultWeights [protected]
 

bool RedistStencil::m_isDefined [protected]
 

int RedistStencil::m_redistRadius [protected]
 

LayoutData<BaseIVFAB<VoFStencil > > RedistStencil::m_stencil [protected]
 

LayoutData<BaseIVFAB<VoFStencil > > RedistStencil::m_volsten [protected]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 16 14:35:28 2003 for EBChombo by doxygen1.2.16