Chombo + EB  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
< BaseDomainBCFactory
m_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

virtual NWOEBViscousTensorOpFactory::~NWOEBViscousTensorOpFactory ( )
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 
)

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

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::NWOEBViscousTensorOpFactory ( )
inlineprivate

weak construction bad

References MayDay::Error().

NWOEBViscousTensorOpFactory::NWOEBViscousTensorOpFactory ( const NWOEBViscousTensorOpFactory a_opin)
inlineprivate

References MayDay::Error().

Member Function Documentation

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 > >.

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

This for introspective load balance.

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 
)
virtual void NWOEBViscousTensorOpFactory::reclaim ( MGLevelOp< LevelData< EBCellFAB > > *  a_reclaim)
virtual
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 > >.

virtual void NWOEBViscousTensorOpFactory::AMRreclaim ( NWOEBViscousTensorOp a_reclaim)
virtual
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 > >.

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
IntVect NWOEBViscousTensorOpFactory::getGhostPhi ( ) const
inline

References m_ghostCellsPhi.

IntVect NWOEBViscousTensorOpFactory::getGhostRHS ( ) const
inline

References m_ghostCellsRhs.

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

References MayDay::Error().

Member Data Documentation

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

Time-independent a multigrid coefficients.

Vector< Vector<RefCountedPtr<LevelData<EBFluxFAB> > > > NWOEBViscousTensorOpFactory::m_etaMG
protected
Vector< Vector<RefCountedPtr<LevelData<EBFluxFAB> > > > NWOEBViscousTensorOpFactory::m_lambdaMG
protected
Vector< Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > > NWOEBViscousTensorOpFactory::m_etaIrregMG
protected
Vector< Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > > NWOEBViscousTensorOpFactory::m_lambdaIrregMG
protected
Vector< Vector<NWOEBViscousTensorOp*> > NWOEBViscousTensorOpFactory::m_MGops
protected
std::vector< bool > NWOEBViscousTensorOpFactory::m_hasMGObjects
protected
Vector<EBLevelGrid> NWOEBViscousTensorOpFactory::m_eblgs
protected
Real NWOEBViscousTensorOpFactory::m_alpha
protected

Referenced by resetCoefficients().

Real NWOEBViscousTensorOpFactory::m_beta
protected

Referenced by resetCoefficients().

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

Time-independent a coefficients.

Referenced by resetCoefficients().

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

Referenced by resetCoefficients().

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

Referenced by resetCoefficients().

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

Referenced by resetCoefficients().

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

Referenced by resetCoefficients().

Real NWOEBViscousTensorOpFactory::m_dxCoarse
protected
Vector<int> NWOEBViscousTensorOpFactory::m_refRatio
protected
RefCountedPtr<BaseDomainBCFactory> NWOEBViscousTensorOpFactory::m_domainBCFactory
protected
RefCountedPtr<BaseEBBCFactory> NWOEBViscousTensorOpFactory::m_ebBCFactory
protected
IntVect NWOEBViscousTensorOpFactory::m_ghostCellsPhi
protected

Referenced by getGhostPhi().

IntVect NWOEBViscousTensorOpFactory::m_ghostCellsRhs
protected

Referenced by getGhostRHS().

int NWOEBViscousTensorOpFactory::m_numLevels
protected
Vector<Real> NWOEBViscousTensorOpFactory::m_dx
protected
bool NWOEBViscousTensorOpFactory::m_noMG
protected
bool NWOEBViscousTensorOpFactory::m_forTimingOnly
protected

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