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

#include <NWOEBViscousTensorOpFactory.H>

Inheritance diagram for NWOEBViscousTensorOpFactory:
Inheritance graph
[legend]

Public Member Functions

virtual ~NWOEBViscousTensorOpFactory ()
 
 NWOEBViscousTensorOpFactory (const Vector< EBLevelGrid > &a_eblgs, const Real &a_alpha, const Real &a_beta, const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &a_acoef, const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &a_eta, const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &a_lambda, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_etaIrreg, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_lambdaIrreg, const Real &a_dxCoarse, const Vector< int > &a_refRatio, const RefCountedPtr< BaseDomainBCFactory > &a_domainBCFactory, const RefCountedPtr< BaseEBBCFactory > &a_ebBcFactory, const IntVect &a_ghostCellsPhi, const IntVect &a_ghostCellsRhs, int a_numLevels=-1, bool a_noMG=false)
 
 NWOEBViscousTensorOpFactory (EBLevelGrid &a_eblgs, const RefCountedPtr< BaseDomainBCFactory > &a_domainBCFactory, const RefCountedPtr< BaseEBBCFactory > &a_ebBcFactory)
 just for convenience in load balancing manufactures coefficients and everything More...
 
virtual NWOEBViscousTensorOpMGnewOp (const ProblemDomain &a_FineindexSpace, int a_depth, bool a_homoOnly=true)
 
virtual NWOEBViscousTensorOpnewOpForTimingOnly (const ProblemDomain &a_FineindexSpace)
 This for introspective load balance. More...
 
NWOEBViscousTensorOpcreateOperator (const EBLevelGrid &a_eblgMGLevel, const EBLevelGrid &a_eblgCoarMG, const bool &a_hasMGObjects, const RealVect &a_dxMGLevel, const RealVect &a_dxCoar, const int &a_whichLevel)
 
virtual void reclaim (MGLevelOp< LevelData< EBCellFAB > > *a_reclaim)
 
virtual NWOEBViscousTensorOpAMRnewOp (const ProblemDomain &a_FineindexSpace)
 
virtual void AMRreclaim (NWOEBViscousTensorOp *a_reclaim)
 
virtual int refToFiner (const ProblemDomain &a_domain) const
 
void resetCoefficients (const Real &a_alpha, const Real &a_beta, const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &a_acoef, const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &a_eta, const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &a_lambda, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_etaIrreg, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_lambdaIrreg)
 
IntVect getGhostPhi () const
 
IntVect getGhostRHS () const
 
- Public Member Functions inherited from AMRLevelOpFactory< LevelData< EBCellFAB > >
virtual ~AMRLevelOpFactory ()
 
- Public Member Functions inherited from MGLevelOpFactory< LevelData< EBCellFAB > >
 MGLevelOpFactory ()
 Base class constructor. More...
 
virtual ~MGLevelOpFactory ()
 Destructor. More...
 

Protected Attributes

Vector< Vector< EBLevelGrid > > m_eblgsMG
 
Vector< Vector< RefCountedPtr< LevelData< EBCellFAB > > > > m_acoefMG
 Time-independent a multigrid coefficients. More...
 
Vector< Vector< RefCountedPtr< LevelData< EBFluxFAB > > > > m_etaMG
 
Vector< Vector< RefCountedPtr< LevelData< EBFluxFAB > > > > m_lambdaMG
 
Vector< Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > > m_etaIrregMG
 
Vector< Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > > m_lambdaIrregMG
 
Vector< Vector< NWOEBViscousTensorOp * > > m_MGops
 
std::vector< bool > m_hasMGObjects
 
Vector< EBLevelGridm_eblgs
 
Real m_alpha
 
Real m_beta
 
Vector< RefCountedPtr< LevelData< EBCellFAB > > > m_acoef
 Time-independent a coefficients. More...
 
Vector< RefCountedPtr< LevelData< EBFluxFAB > > > m_eta
 
Vector< RefCountedPtr< LevelData< EBFluxFAB > > > m_lambda
 
Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > m_etaIrreg
 
Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > m_lambdaIrreg
 
Real m_dxCoarse
 
Vector< int > m_refRatio
 
RefCountedPtr< BaseDomainBCFactorym_domainBCFactory
 
RefCountedPtr< BaseEBBCFactorym_ebBCFactory
 
IntVect m_ghostCellsPhi
 
IntVect m_ghostCellsRhs
 
int m_numLevels
 
Vector< Realm_dx
 
bool m_noMG
 
bool m_forTimingOnly
 

Private Member Functions

 NWOEBViscousTensorOpFactory ()
 weak construction bad More...
 
 NWOEBViscousTensorOpFactory (const NWOEBViscousTensorOpFactory &a_opin)
 
void operator= (const NWOEBViscousTensorOpFactory &a_opin)
 

Detailed Description

Factory class to generate NWOEBViscousTensorOps. This follows the AMRLevelOpFactory interface.

Constructor & Destructor Documentation

◆ ~NWOEBViscousTensorOpFactory()

virtual NWOEBViscousTensorOpFactory::~NWOEBViscousTensorOpFactory ( )
virtual

◆ NWOEBViscousTensorOpFactory() [1/4]

NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory ( const Vector< EBLevelGrid > &  a_eblgs,
const Real a_alpha,
const Real a_beta,
const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &  a_acoef,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_eta,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_lambda,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_etaIrreg,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_lambdaIrreg,
const Real a_dxCoarse,
const Vector< int > &  a_refRatio,
const RefCountedPtr< BaseDomainBCFactory > &  a_domainBCFactory,
const RefCountedPtr< BaseEBBCFactory > &  a_ebBcFactory,
const IntVect a_ghostCellsPhi,
const IntVect a_ghostCellsRhs,
int  a_numLevels = -1,
bool  a_noMG = false 
)

Constructs a factory that builds EBViscousTensorOps with time-independent A and B coefficients.

◆ NWOEBViscousTensorOpFactory() [2/4]

NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory ( EBLevelGrid a_eblgs,
const RefCountedPtr< BaseDomainBCFactory > &  a_domainBCFactory,
const RefCountedPtr< BaseEBBCFactory > &  a_ebBcFactory 
)

just for convenience in load balancing manufactures coefficients and everything

◆ NWOEBViscousTensorOpFactory() [3/4]

NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory ( )
inlineprivate

weak construction bad

References MayDay::Error().

◆ NWOEBViscousTensorOpFactory() [4/4]

NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory ( const NWOEBViscousTensorOpFactory a_opin)
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ MGnewOp()

virtual NWOEBViscousTensorOp* NWOEBViscousTensorOpFactory::MGnewOp ( const ProblemDomain a_FineindexSpace,
int  a_depth,
bool  a_homoOnly = true 
)
virtual

Create an operator at an index space = coarsen(a_fineIndexSpace, 2^a_depth) Return NULL if no such Multigrid level can be created at this a_depth. If a_homoOnly = true, then only homogeneous boundary conditions will be needed.

Implements MGLevelOpFactory< LevelData< EBCellFAB > >.

◆ newOpForTimingOnly()

virtual NWOEBViscousTensorOp* NWOEBViscousTensorOpFactory::newOpForTimingOnly ( const ProblemDomain a_FineindexSpace)
virtual

This for introspective load balance.

◆ createOperator()

NWOEBViscousTensorOp* NWOEBViscousTensorOpFactory::createOperator ( const EBLevelGrid a_eblgMGLevel,
const EBLevelGrid a_eblgCoarMG,
const bool &  a_hasMGObjects,
const RealVect a_dxMGLevel,
const RealVect a_dxCoar,
const int &  a_whichLevel 
)

◆ reclaim()

virtual void NWOEBViscousTensorOpFactory::reclaim ( MGLevelOp< LevelData< EBCellFAB > > *  a_reclaim)
virtual

◆ AMRnewOp()

virtual NWOEBViscousTensorOp* NWOEBViscousTensorOpFactory::AMRnewOp ( const ProblemDomain a_indexSpace)
virtual

return a new operator. this is done with a new call. caller is responsible for deletion

Implements AMRLevelOpFactory< LevelData< EBCellFAB > >.

◆ AMRreclaim()

virtual void NWOEBViscousTensorOpFactory::AMRreclaim ( NWOEBViscousTensorOp a_reclaim)
virtual

◆ refToFiner()

virtual int NWOEBViscousTensorOpFactory::refToFiner ( const ProblemDomain a_domain) const
virtual

Refinement ratio between this level and coarser level. Returns 1 when there are no coarser AMRLevelOp objects

Implements AMRLevelOpFactory< LevelData< EBCellFAB > >.

◆ resetCoefficients()

void NWOEBViscousTensorOpFactory::resetCoefficients ( const Real a_alpha,
const Real a_beta,
const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &  a_acoef,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_eta,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_lambda,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_etaIrreg,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_lambdaIrreg 
)
inline

◆ getGhostPhi()

IntVect NWOEBViscousTensorOpFactory::getGhostPhi ( ) const
inline

References m_ghostCellsPhi.

◆ getGhostRHS()

IntVect NWOEBViscousTensorOpFactory::getGhostRHS ( ) const
inline

References m_ghostCellsRhs.

◆ operator=()

void NWOEBViscousTensorOpFactory::operator= ( const NWOEBViscousTensorOpFactory a_opin)
inlineprivate

References MayDay::Error().

Member Data Documentation

◆ m_eblgsMG

Vector< Vector<EBLevelGrid> > NWOEBViscousTensorOpFactory::m_eblgsMG
protected

◆ m_acoefMG

Vector< Vector< RefCountedPtr<LevelData<EBCellFAB> > > > NWOEBViscousTensorOpFactory::m_acoefMG
protected

Time-independent a multigrid coefficients.

◆ m_etaMG

Vector< Vector<RefCountedPtr<LevelData<EBFluxFAB> > > > NWOEBViscousTensorOpFactory::m_etaMG
protected

◆ m_lambdaMG

Vector< Vector<RefCountedPtr<LevelData<EBFluxFAB> > > > NWOEBViscousTensorOpFactory::m_lambdaMG
protected

◆ m_etaIrregMG

Vector< Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > > NWOEBViscousTensorOpFactory::m_etaIrregMG
protected

◆ m_lambdaIrregMG

Vector< Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > > NWOEBViscousTensorOpFactory::m_lambdaIrregMG
protected

◆ m_MGops

Vector< Vector<NWOEBViscousTensorOp*> > NWOEBViscousTensorOpFactory::m_MGops
protected

◆ m_hasMGObjects

std::vector< bool > NWOEBViscousTensorOpFactory::m_hasMGObjects
protected

◆ m_eblgs

Vector<EBLevelGrid> NWOEBViscousTensorOpFactory::m_eblgs
protected

◆ m_alpha

Real NWOEBViscousTensorOpFactory::m_alpha
protected

Referenced by resetCoefficients().

◆ m_beta

Real NWOEBViscousTensorOpFactory::m_beta
protected

Referenced by resetCoefficients().

◆ m_acoef

Vector<RefCountedPtr<LevelData<EBCellFAB> > > NWOEBViscousTensorOpFactory::m_acoef
protected

Time-independent a coefficients.

Referenced by resetCoefficients().

◆ m_eta

Vector<RefCountedPtr<LevelData<EBFluxFAB> > > NWOEBViscousTensorOpFactory::m_eta
protected

Referenced by resetCoefficients().

◆ m_lambda

Vector<RefCountedPtr<LevelData<EBFluxFAB> > > NWOEBViscousTensorOpFactory::m_lambda
protected

Referenced by resetCoefficients().

◆ m_etaIrreg

Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > NWOEBViscousTensorOpFactory::m_etaIrreg
protected

Referenced by resetCoefficients().

◆ m_lambdaIrreg

Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > NWOEBViscousTensorOpFactory::m_lambdaIrreg
protected

Referenced by resetCoefficients().

◆ m_dxCoarse

Real NWOEBViscousTensorOpFactory::m_dxCoarse
protected

◆ m_refRatio

Vector<int> NWOEBViscousTensorOpFactory::m_refRatio
protected

◆ m_domainBCFactory

RefCountedPtr<BaseDomainBCFactory> NWOEBViscousTensorOpFactory::m_domainBCFactory
protected

◆ m_ebBCFactory

RefCountedPtr<BaseEBBCFactory> NWOEBViscousTensorOpFactory::m_ebBCFactory
protected

◆ m_ghostCellsPhi

IntVect NWOEBViscousTensorOpFactory::m_ghostCellsPhi
protected

Referenced by getGhostPhi().

◆ m_ghostCellsRhs

IntVect NWOEBViscousTensorOpFactory::m_ghostCellsRhs
protected

Referenced by getGhostRHS().

◆ m_numLevels

int NWOEBViscousTensorOpFactory::m_numLevels
protected

◆ m_dx

Vector<Real> NWOEBViscousTensorOpFactory::m_dx
protected

◆ m_noMG

bool NWOEBViscousTensorOpFactory::m_noMG
protected

◆ m_forTimingOnly

bool NWOEBViscousTensorOpFactory::m_forTimingOnly
protected

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