Chombo + EB  3.2
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
EBCoarToCoarRedist Class Reference

#include <EBCoarToCoarRedist.H>

Public Member Functions

 EBCoarToCoarRedist ()
 
 ~EBCoarToCoarRedist ()
 
void define (const DisjointBoxLayout &a_dblFine, const DisjointBoxLayout &a_dblCoar, const EBISLayout &a_ebislCoar, const Box &a_domainCoar, const int &a_nref, const int &a_nvar, int a_redistRad=1)
 
void define (const EBLevelGrid &a_eblgFine, const EBLevelGrid &a_eblgCoar, const int &a_nref, const int &a_nvar, const int &a_redistRad)
 
void setToZero ()
 
void increment (const BaseIVFAB< Real > &a_coarMass, const DataIndex &a_fineDataIndex, const Interval &a_variables)
 
void resetWeights (const LevelData< EBCellFAB > &a_modifier, const int &a_ivar)
 
void redistribute (LevelData< EBCellFAB > &a_coarSolution, const Interval &a_variables)
 
bool isDefined () const
 

Protected Member Functions

void setDefaultValues ()
 
void defineDataHolders ()
 

Protected Attributes

bool m_isDefined
 
int m_redistRad
 
int m_nComp
 
int m_refRat
 
Box m_domainCoar
 
DisjointBoxLayout m_gridsCoar
 
LevelData< BaseIVFAB< Real > > m_regsCoar
 
LayoutData< IntVectSetm_setsCoar
 
EBISLayout m_ebislCoar
 
LayoutData< BaseIVFAB< VoFStencil > > m_stenCoar
 
LayoutData< BaseIVFAB< VoFStencil > > m_volumeStenc
 
LayoutData< BaseIVFAB< VoFStencil > > m_standardStenc
 
LevelData< EBCellFABm_densityCoar
 

Private Member Functions

void operator= (const EBCoarToCoarRedist &)
 
 EBCoarToCoarRedist (const EBCoarToCoarRedist &)
 

Friends

class EBFluxRegister
 

Detailed Description

A EBCoarToCoarRedist handles all the data choreography for coarse to coarse redistribution ("re-redistribution").

Constructor & Destructor Documentation

◆ EBCoarToCoarRedist() [1/2]

EBCoarToCoarRedist::EBCoarToCoarRedist ( )

Default constructor. Leaves object undefined.

◆ ~EBCoarToCoarRedist()

EBCoarToCoarRedist::~EBCoarToCoarRedist ( )

◆ EBCoarToCoarRedist() [2/2]

EBCoarToCoarRedist::EBCoarToCoarRedist ( const EBCoarToCoarRedist )
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ define() [1/2]

void EBCoarToCoarRedist::define ( const DisjointBoxLayout a_dblFine,
const DisjointBoxLayout a_dblCoar,
const EBISLayout a_ebislCoar,
const Box a_domainCoar,
const int &  a_nref,
const int &  a_nvar,
int  a_redistRad = 1 
)

Full define function. \ dblCoar: coarse layouts of the data. \ ebislCoar: coarse EBISlayout \ of the geometric description.\ nref: The refinement ratio between the two levels.\ nvar: The number of variables contained in the data at each VoF. \ coarStencil: The redistribution stencil for this level.

◆ define() [2/2]

void EBCoarToCoarRedist::define ( const EBLevelGrid a_eblgFine,
const EBLevelGrid a_eblgCoar,
const int &  a_nref,
const int &  a_nvar,
const int &  a_redistRad 
)

potentially faster define function, especially with large numbers of boxes.

◆ setToZero()

void EBCoarToCoarRedist::setToZero ( )

Initialize values of registers to zero.

◆ increment()

void EBCoarToCoarRedist::increment ( const BaseIVFAB< Real > &  a_coarMass,
const DataIndex a_fineDataIndex,
const Interval a_variables 
)

Increments the register with data from coarseMass. This is the full redistribution mass. Internally the class figures out what actually gets re-redistributed.

◆ resetWeights()

void EBCoarToCoarRedist::resetWeights ( const LevelData< EBCellFAB > &  a_modifier,
const int &  a_ivar 
)

◆ redistribute()

void EBCoarToCoarRedist::redistribute ( LevelData< EBCellFAB > &  a_coarSolution,
const Interval a_variables 
)

Reredistribute the data contained in the internal buffers.

◆ isDefined()

bool EBCoarToCoarRedist::isDefined ( ) const

◆ setDefaultValues()

void EBCoarToCoarRedist::setDefaultValues ( )
protected

◆ defineDataHolders()

void EBCoarToCoarRedist::defineDataHolders ( )
protected

◆ operator=()

void EBCoarToCoarRedist::operator= ( const EBCoarToCoarRedist )
inlineprivate

References MayDay::Error().

Friends And Related Function Documentation

◆ EBFluxRegister

friend class EBFluxRegister
friend

Member Data Documentation

◆ m_isDefined

bool EBCoarToCoarRedist::m_isDefined
protected

◆ m_redistRad

int EBCoarToCoarRedist::m_redistRad
protected

◆ m_nComp

int EBCoarToCoarRedist::m_nComp
protected

◆ m_refRat

int EBCoarToCoarRedist::m_refRat
protected

◆ m_domainCoar

Box EBCoarToCoarRedist::m_domainCoar
protected

◆ m_gridsCoar

DisjointBoxLayout EBCoarToCoarRedist::m_gridsCoar
protected

◆ m_regsCoar

LevelData<BaseIVFAB<Real> > EBCoarToCoarRedist::m_regsCoar
protected

◆ m_setsCoar

LayoutData<IntVectSet> EBCoarToCoarRedist::m_setsCoar
protected

◆ m_ebislCoar

EBISLayout EBCoarToCoarRedist::m_ebislCoar
protected

◆ m_stenCoar

LayoutData<BaseIVFAB<VoFStencil> > EBCoarToCoarRedist::m_stenCoar
protected

◆ m_volumeStenc

LayoutData<BaseIVFAB<VoFStencil> > EBCoarToCoarRedist::m_volumeStenc
protected

◆ m_standardStenc

LayoutData<BaseIVFAB<VoFStencil> > EBCoarToCoarRedist::m_standardStenc
protected

◆ m_densityCoar

LevelData<EBCellFAB> EBCoarToCoarRedist::m_densityCoar
protected

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