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

#include <AggEBPWLFillPatch.H>

Classes

struct  access_t
 
struct  coar_logic_t
 
struct  fine_logic_t
 

Public Member Functions

 AggEBPWLFillPatch ()
 
virtual ~AggEBPWLFillPatch ()
 
 AggEBPWLFillPatch (const DisjointBoxLayout &a_dblFine, const DisjointBoxLayout &a_dblCoar, const EBISLayout &a_ebislFine, const EBISLayout &a_ebislCoar, const ProblemDomain &a_domainCoar, const int &a_nref, const int &a_nvar, const int &a_radius, const IntVect &a_ghost, const EBIndexSpace *const a_eb=Chombo_EBIS::instance())
 
void define (const DisjointBoxLayout &a_dblFine, const DisjointBoxLayout &a_dblCoar, const EBISLayout &a_ebislFine, const EBISLayout &a_ebislCoar, const ProblemDomain &a_domainCoar, const int &a_nref, const int &a_nvar, const int &a_radius, const IntVect &a_ghost, const EBIndexSpace *const a_eb=Chombo_EBIS::instance())
 
bool isDefined () const
 
virtual void interpolate (LevelData< EBCellFAB > &a_fineData, const LevelData< EBCellFAB > &a_coarDataOld, const LevelData< EBCellFAB > &a_coarDataNew, const Real &a_coarTimeOld, const Real &a_coarTimeNew, const Real &a_fineTime, const Interval &a_variables) const
 

Protected Member Functions

virtual void definePieceWiseLinearFillPatch (const DisjointBoxLayout &a_dblfine, const DisjointBoxLayout &a_dblCoar)
 
void getOffsets (const LayoutData< Vector< VolIndex > > &a_srcVoFsCoar, const LayoutData< IntVectSet > &a_irregRegionsFine, const LayoutData< Vector< VoFStencil > > a_loStencils[SpaceDim], const LayoutData< Vector< VoFStencil > > a_hiStencils[SpaceDim], const LayoutData< IntVectSet > a_coarLoInterp[SpaceDim], const LayoutData< IntVectSet > a_coarHiInterp[SpaceDim], const LayoutData< IntVectSet > a_coarCeInterp[SpaceDim])
 
void interpolateFAB (EBCellFAB &a_fine, const EBCellFAB &a_coarOld, const EBCellFAB &a_coarNew, const Real &a_coarTimeOld, const Real &a_coarTimeNew, const Real &a_fineTime, const DataIndex &a_datInd, const Interval &a_variables) const
 
void makeStencils ()
 
void defineSlopeHolders (const LayoutData< IntVectSet > &a_irregRegionsCoFi)
 
void getIVS (LayoutData< IntVectSet > &a_irregRegionsFine, LayoutData< IntVectSet > &a_irregRegionsCoFi, LayoutData< Vector< VolIndex > > &a_srcVoFs)
 
void defineAggStencils (LayoutData< Vector< VoFStencil > > a_loStencils[SpaceDim], LayoutData< Vector< VoFStencil > > a_hiStencils[SpaceDim], const LayoutData< Vector< VolIndex > > &a_srcVoFs)
 
void getLoHiCenIVS (LayoutData< IntVectSet > a_coarLoInterp[SpaceDim], LayoutData< IntVectSet > a_coarHiInterp[SpaceDim], LayoutData< IntVectSet > a_coarCeInterp[SpaceDim])
 
void getSten (LayoutData< Vector< VoFStencil > > a_loStencils[SpaceDim], LayoutData< Vector< VoFStencil > > a_hiStencils[SpaceDim], LayoutData< IntVectSet > a_coarLoInterp[SpaceDim], LayoutData< IntVectSet > a_coarHiInterp[SpaceDim], LayoutData< IntVectSet > a_coarCeInterp[SpaceDim], const LayoutData< Vector< VolIndex > > &a_srcVoFs)
 
void getSlopes (const EBCellFAB &a_coarDataOld, const EBCellFAB &a_coarDataNew, const DataIndex &a_dit, const Interval &a_variables) const
 
void deltaMinMod (Real &a_slope, Real &a_slopeLo, Real &a_slopeHi) const
 
void setDefaultValues ()
 

Protected Attributes

LayoutData< Vector< fine_logic_t > > m_fineOffsets
 
LayoutData< Vector< coar_logic_t > > m_coarOffsets
 
bool m_isDefined
 
PiecewiseLinearFillPatchm_patcher
 
IntVect m_ghost
 
ProblemDomain m_coarDomain
 
DisjointBoxLayout m_coarsenedFineGrids
 
DisjointBoxLayout m_fineGrids
 
DisjointBoxLayout m_coarGrids
 
EBISLayout m_coarsenedFineEBISL
 
EBISLayout m_fineEBISL
 
LevelData< EBCellFABm_coarOnFDataOld
 
LevelData< EBCellFABm_coarOnFDataNew
 
int m_refRat
 
int m_nComp
 
int m_radius
 
int m_coarGhostRad
 
LayoutData< BaseIVFAB< Real > > m_slopeLoOld [SpaceDim]
 
LayoutData< BaseIVFAB< Real > > m_slopeHiOld [SpaceDim]
 
LayoutData< BaseIVFAB< Real > > m_slopeCeOld [SpaceDim]
 
LayoutData< BaseIVFAB< Real > > m_slopeLoNew [SpaceDim]
 
LayoutData< BaseIVFAB< Real > > m_slopeHiNew [SpaceDim]
 
LayoutData< BaseIVFAB< Real > > m_slopeCeNew [SpaceDim]
 
LayoutData< RefCountedPtr< AggStencil< EBCellFAB, BaseIVFAB< Real > > > > m_stenLo [SpaceDim]
 
LayoutData< RefCountedPtr< AggStencil< EBCellFAB, BaseIVFAB< Real > > > > m_stenHi [SpaceDim]
 

Private Member Functions

 AggEBPWLFillPatch (const AggEBPWLFillPatch &ebcin)
 
void operator= (const AggEBPWLFillPatch &fabin)
 

Detailed Description

Fills one layer of fine level ghost cells by piecewise linear interpolation from the coarse level.

Constructor & Destructor Documentation

◆ AggEBPWLFillPatch() [1/3]

AggEBPWLFillPatch::AggEBPWLFillPatch ( )

Default constructor. User must subsequently call define().

◆ ~AggEBPWLFillPatch()

virtual AggEBPWLFillPatch::~AggEBPWLFillPatch ( )
virtual

◆ AggEBPWLFillPatch() [2/3]

AggEBPWLFillPatch::AggEBPWLFillPatch ( const DisjointBoxLayout a_dblFine,
const DisjointBoxLayout a_dblCoar,
const EBISLayout a_ebislFine,
const EBISLayout a_ebislCoar,
const ProblemDomain a_domainCoar,
const int &  a_nref,
const int &  a_nvar,
const int &  a_radius,
const IntVect a_ghost,
const EBIndexSpace *const  a_eb = Chombo_EBIS::instance() 
)

Defining constructor. Constructs a valid object. Equivalent to default construction followed by define().

{ Arguments:}\ dblFine, dblCoar: The fine and coarse layouts of the data.\ ebislFine, ebislCoar: The fine and coarse layouts of the geometric description.\ nref: The refinement ratio between the two levels. \ nvar: The number of variables contained in the data at each VoF.\ radius: the total number of ghost cells filled.

◆ AggEBPWLFillPatch() [3/3]

AggEBPWLFillPatch::AggEBPWLFillPatch ( const AggEBPWLFillPatch ebcin)
private

Member Function Documentation

◆ define()

void AggEBPWLFillPatch::define ( const DisjointBoxLayout a_dblFine,
const DisjointBoxLayout a_dblCoar,
const EBISLayout a_ebislFine,
const EBISLayout a_ebislCoar,
const ProblemDomain a_domainCoar,
const int &  a_nref,
const int &  a_nvar,
const int &  a_radius,
const IntVect a_ghost,
const EBIndexSpace *const  a_eb = Chombo_EBIS::instance() 
)

Defines this object. Existing information is overriden.

{ Arguments:}\ dblFine, dblCoar: The fine and coarse layouts of the data.\ ebislFine, ebislCoar: The fine and coarse layouts of the geometric description.\ nref: The refinement ratio between the two levels. \ nvar: The number of variables contained in the data at each VoF. radius: the total number of ghost cells filled.

◆ isDefined()

bool AggEBPWLFillPatch::isDefined ( ) const
inline

◆ interpolate()

virtual void AggEBPWLFillPatch::interpolate ( LevelData< EBCellFAB > &  a_fineData,
const LevelData< EBCellFAB > &  a_coarDataOld,
const LevelData< EBCellFAB > &  a_coarDataNew,
const Real a_coarTimeOld,
const Real a_coarTimeNew,
const Real a_fineTime,
const Interval a_variables 
) const
virtual

Interpolate the fine data from the coarse data over the intersection of the fine layout with the refined coarse layout. \ { Arguments:}\ coarDataOld: The data over the coarse layout at coarse time old.\ coarDatanew: The data over the coarse layout at coarse time new.\ fineData: The data over the fine layout. \ Error occurs unless coarTimeOld <= fineTime <= coarTimeNew \ Fine and coarse data must have the same number of variables.\ variables: The variables to interpolate. Those not in this range will be left alone. This range of variables must be in both the coarse and fine data.

Referenced by isDefined().

◆ definePieceWiseLinearFillPatch()

virtual void AggEBPWLFillPatch::definePieceWiseLinearFillPatch ( const DisjointBoxLayout a_dblfine,
const DisjointBoxLayout a_dblCoar 
)
protectedvirtual

Referenced by isDefined().

◆ getOffsets()

void AggEBPWLFillPatch::getOffsets ( const LayoutData< Vector< VolIndex > > &  a_srcVoFsCoar,
const LayoutData< IntVectSet > &  a_irregRegionsFine,
const LayoutData< Vector< VoFStencil > >  a_loStencils[SpaceDim],
const LayoutData< Vector< VoFStencil > >  a_hiStencils[SpaceDim],
const LayoutData< IntVectSet a_coarLoInterp[SpaceDim],
const LayoutData< IntVectSet a_coarHiInterp[SpaceDim],
const LayoutData< IntVectSet a_coarCeInterp[SpaceDim] 
)
protected

Referenced by isDefined().

◆ interpolateFAB()

void AggEBPWLFillPatch::interpolateFAB ( EBCellFAB a_fine,
const EBCellFAB a_coarOld,
const EBCellFAB a_coarNew,
const Real a_coarTimeOld,
const Real a_coarTimeNew,
const Real a_fineTime,
const DataIndex a_datInd,
const Interval a_variables 
) const
protected

Referenced by isDefined().

◆ makeStencils()

void AggEBPWLFillPatch::makeStencils ( )
protected

Referenced by isDefined().

◆ defineSlopeHolders()

void AggEBPWLFillPatch::defineSlopeHolders ( const LayoutData< IntVectSet > &  a_irregRegionsCoFi)
protected

Referenced by isDefined().

◆ getIVS()

void AggEBPWLFillPatch::getIVS ( LayoutData< IntVectSet > &  a_irregRegionsFine,
LayoutData< IntVectSet > &  a_irregRegionsCoFi,
LayoutData< Vector< VolIndex > > &  a_srcVoFs 
)
protected

Referenced by isDefined().

◆ defineAggStencils()

void AggEBPWLFillPatch::defineAggStencils ( LayoutData< Vector< VoFStencil > >  a_loStencils[SpaceDim],
LayoutData< Vector< VoFStencil > >  a_hiStencils[SpaceDim],
const LayoutData< Vector< VolIndex > > &  a_srcVoFs 
)
protected

Referenced by isDefined().

◆ getLoHiCenIVS()

void AggEBPWLFillPatch::getLoHiCenIVS ( LayoutData< IntVectSet a_coarLoInterp[SpaceDim],
LayoutData< IntVectSet a_coarHiInterp[SpaceDim],
LayoutData< IntVectSet a_coarCeInterp[SpaceDim] 
)
protected

Referenced by isDefined().

◆ getSten()

void AggEBPWLFillPatch::getSten ( LayoutData< Vector< VoFStencil > >  a_loStencils[SpaceDim],
LayoutData< Vector< VoFStencil > >  a_hiStencils[SpaceDim],
LayoutData< IntVectSet a_coarLoInterp[SpaceDim],
LayoutData< IntVectSet a_coarHiInterp[SpaceDim],
LayoutData< IntVectSet a_coarCeInterp[SpaceDim],
const LayoutData< Vector< VolIndex > > &  a_srcVoFs 
)
protected

Referenced by isDefined().

◆ getSlopes()

void AggEBPWLFillPatch::getSlopes ( const EBCellFAB a_coarDataOld,
const EBCellFAB a_coarDataNew,
const DataIndex a_dit,
const Interval a_variables 
) const
protected

Referenced by isDefined().

◆ deltaMinMod()

void AggEBPWLFillPatch::deltaMinMod ( Real a_slope,
Real a_slopeLo,
Real a_slopeHi 
) const
protected

Referenced by isDefined().

◆ setDefaultValues()

void AggEBPWLFillPatch::setDefaultValues ( )
protected

Referenced by isDefined().

◆ operator=()

void AggEBPWLFillPatch::operator= ( const AggEBPWLFillPatch fabin)
private

Member Data Documentation

◆ m_fineOffsets

LayoutData< Vector<fine_logic_t> > AggEBPWLFillPatch::m_fineOffsets
protected

◆ m_coarOffsets

LayoutData< Vector<coar_logic_t> > AggEBPWLFillPatch::m_coarOffsets
protected

◆ m_isDefined

bool AggEBPWLFillPatch::m_isDefined
protected

Referenced by isDefined().

◆ m_patcher

PiecewiseLinearFillPatch* AggEBPWLFillPatch::m_patcher
protected

◆ m_ghost

IntVect AggEBPWLFillPatch::m_ghost
protected

◆ m_coarDomain

ProblemDomain AggEBPWLFillPatch::m_coarDomain
protected

◆ m_coarsenedFineGrids

DisjointBoxLayout AggEBPWLFillPatch::m_coarsenedFineGrids
protected

◆ m_fineGrids

DisjointBoxLayout AggEBPWLFillPatch::m_fineGrids
protected

◆ m_coarGrids

DisjointBoxLayout AggEBPWLFillPatch::m_coarGrids
protected

◆ m_coarsenedFineEBISL

EBISLayout AggEBPWLFillPatch::m_coarsenedFineEBISL
protected

◆ m_fineEBISL

EBISLayout AggEBPWLFillPatch::m_fineEBISL
protected

◆ m_coarOnFDataOld

LevelData<EBCellFAB> AggEBPWLFillPatch::m_coarOnFDataOld
mutableprotected

◆ m_coarOnFDataNew

LevelData<EBCellFAB> AggEBPWLFillPatch::m_coarOnFDataNew
mutableprotected

◆ m_refRat

int AggEBPWLFillPatch::m_refRat
protected

◆ m_nComp

int AggEBPWLFillPatch::m_nComp
protected

◆ m_radius

int AggEBPWLFillPatch::m_radius
protected

◆ m_coarGhostRad

int AggEBPWLFillPatch::m_coarGhostRad
protected

◆ m_slopeLoOld

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeLoOld[SpaceDim]
mutableprotected

◆ m_slopeHiOld

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeHiOld[SpaceDim]
mutableprotected

◆ m_slopeCeOld

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeCeOld[SpaceDim]
mutableprotected

◆ m_slopeLoNew

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeLoNew[SpaceDim]
mutableprotected

◆ m_slopeHiNew

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeHiNew[SpaceDim]
mutableprotected

◆ m_slopeCeNew

LayoutData< BaseIVFAB<Real> > AggEBPWLFillPatch::m_slopeCeNew[SpaceDim]
mutableprotected

◆ m_stenLo

LayoutData< RefCountedPtr<AggStencil <EBCellFAB, BaseIVFAB<Real> > > > AggEBPWLFillPatch::m_stenLo[SpaceDim]
protected

◆ m_stenHi

LayoutData< RefCountedPtr<AggStencil <EBCellFAB, BaseIVFAB<Real> > > > AggEBPWLFillPatch::m_stenHi[SpaceDim]
protected

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