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

EBLevelRedist Class Reference

#include <EBLevelRedist.H>

Collaboration diagram for EBLevelRedist:

Collaboration graph
[legend]
List of all members.

Public Methods

 EBLevelRedist ()
 ~EBLevelRedist ()
 EBLevelRedist (const DisjointBoxLayout &a_dbl, const EBISLayout &a_ebisl, const Box &a_domain, const int &a_ncomp, int redistRad=1)
void define (const DisjointBoxLayout &a_dbl, const EBISLayout &a_ebisl, const Box &a_domain, const int &a_ncomp, int redistRad=1)
void resetWeights (const LevelData< EBCellFAB > &modifier, const int &ivar)
void increment (const BaseIVFAB< Real > &massDiff, const DataIndex &datInd, const Interval &variables)
void redistribute (LevelData< EBCellFAB > &solution, const Interval &variables)
bool isDefined () const
void setToZero ()

Protected Attributes

int redistRad
RedistStencil m_stencil
int m_ncomp
int m_redistRad
DisjointBoxLayout m_grids
Box m_domain
EBISLayout m_ebisl
bool m_isDefined
LevelData< BaseIVFAB< Real > > m_buffer
LayoutData< IntVectSetm_sets

Private Methods

void operator= (const EBLevelRedist &a_stenin)
 EBLevelRedist (const EBLevelRedist &a_stenin)

Constructor & Destructor Documentation

EBLevelRedist::EBLevelRedist  
 

Default constructor. User must subsequently call define().

EBLevelRedist::~EBLevelRedist  
 

EBLevelRedist::EBLevelRedist const DisjointBoxLayout   a_dbl,
const EBISLayout   a_ebisl,
const Box   a_domain,
const int &    a_ncomp,
int    redistRad = 1
 

Defining constructor. Constructs a valid object. Equivalent to default construction followed by define(). ebisl needs ghost cells out to 3*redistradius of the stencil. This sets the stencil to volume-weighted. Use resetWeights to set to mass weighted or whatever.

EBLevelRedist::EBLevelRedist const EBLevelRedist &    a_stenin [inline, private]
 


Member Function Documentation

void EBLevelRedist::define const DisjointBoxLayout   a_dbl,
const EBISLayout   a_ebisl,
const Box   a_domain,
const int &    a_ncomp,
int    redistRad = 1
 

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

void EBLevelRedist::increment const BaseIVFAB< Real > &    massDiff,
const DataIndex   datInd,
const Interval   variables
 

Store the input mass difference in the buffers of the class by INCREMENTING the buffer. \ dm += massDiff

bool EBLevelRedist::isDefined   const
 

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

void EBLevelRedist::operator= const EBLevelRedist &    a_stenin [inline, private]
 

void EBLevelRedist::redistribute LevelData< EBCellFAB > &    solution,
const Interval   variables
 

Redistribute the data contained in the internal buffers. \ solution += weight*dm

void EBLevelRedist::resetWeights const LevelData< EBCellFAB > &    modifier,
const int &    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.

void EBLevelRedist::setToZero  
 

Reset the mass buffers of the class.


Member Data Documentation

LevelData<BaseIVFAB<Real> > EBLevelRedist::m_buffer [protected]
 

Box EBLevelRedist::m_domain [protected]
 

EBISLayout EBLevelRedist::m_ebisl [protected]
 

DisjointBoxLayout EBLevelRedist::m_grids [protected]
 

bool EBLevelRedist::m_isDefined [protected]
 

int EBLevelRedist::m_ncomp [protected]
 

int EBLevelRedist::m_redistRad [protected]
 

LayoutData<IntVectSet> EBLevelRedist::m_sets [protected]
 

RedistStencil EBLevelRedist::m_stencil [protected]
 

int EBLevelRedist::redistRad [protected]
 


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