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

#include <EBConductivityOpFactory.H>

Inheritance diagram for EBConductivityOpFactory:
Inheritance graph
[legend]

Public Member Functions

 EBConductivityOpFactory (const Vector< EBLevelGrid > &a_eblgs, const Vector< RefCountedPtr< EBQuadCFInterp > > &a_quadCFI, const Real &a_alpha, const Real &a_beta, const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &a_acoef, const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &a_bcoef, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_bcoefIrreg, 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, const int &a_relaxType, int a_numLevels=-1)
 
virtual ~EBConductivityOpFactory ()
 Destructor. More...
 
virtual void setData (Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_data)
 
virtual EBConductivityOpMGnewOp (const ProblemDomain &a_FineindexSpace, int a_depth, bool a_homoOnly=true)
 
EBConductivityOpcreateOperator (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 EBConductivityOpAMRnewOp (const ProblemDomain &a_FineindexSpace)
 
virtual void AMRreclaim (EBConductivityOp *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_bcoef, const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &a_bcoefIrreg)
 Reset the coefficients for the conductivity operator (time-independent). More...
 
- 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...
 

Static Public Member Functions

static void setTestRef (int a_testRef)
 
static void setMaxBoxSize (int a_maxBoxSize)
 

Static Public Attributes

static int s_testRef
 
static int s_maxBoxSize
 

Protected Attributes

Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > m_data
 
bool m_dataBased
 
Vector< Vector< EBLevelGrid > > m_eblgsMG
 
Vector< Vector< RefCountedPtr< LevelData< EBCellFAB > > > > m_acoefMG
 Time-independent A multigrid coefficients. More...
 
Vector< Vector< RefCountedPtr< LevelData< EBCellFAB > > > > m_acoefMG0
 Beginning-of-step (time-dependent) A multigrid coefficients. More...
 
Vector< Vector< RefCountedPtr< LevelData< EBCellFAB > > > > m_acoefMG1
 End-of-step (time-dependent) A multigrid coefficients. More...
 
Vector< Vector< RefCountedPtr< LevelData< EBFluxFAB > > > > m_bcoefMG
 
Vector< Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > > m_bcoefIrregMG
 
int m_relaxType
 
Vector< EBLevelGridm_eblgs
 
Vector< RefCountedPtr< EBQuadCFInterp > > m_quadCFI
 
Real m_alpha
 
Real m_beta
 
Vector< RefCountedPtr< LevelData< EBCellFAB > > > m_acoef
 Time-independent A coefficients. More...
 
Vector< RefCountedPtr< LevelData< EBFluxFAB > > > m_bcoef
 
Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > m_bcoefIrreg
 
Real m_dxCoarse
 
Vector< int > m_refRatio
 
RefCountedPtr< BaseDomainBCFactorym_domainBCFactory
 
RefCountedPtr< BaseEBBCFactorym_ebBCFactory
 
IntVect m_ghostCellsPhi
 
IntVect m_ghostCellsRhs
 
int m_numLevels
 
std::vector< bool > m_hasMGObjects
 
Vector< Realm_dx
 

Private Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

◆ EBConductivityOpFactory() [1/3]

EBConductivityOpFactory::EBConductivityOpFactory ( const Vector< EBLevelGrid > &  a_eblgs,
const Vector< RefCountedPtr< EBQuadCFInterp > > &  a_quadCFI,
const Real a_alpha,
const Real a_beta,
const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &  a_acoef,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_bcoef,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_bcoefIrreg,
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,
const int &  a_relaxType,
int  a_numLevels = -1 
)

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

◆ ~EBConductivityOpFactory()

virtual EBConductivityOpFactory::~EBConductivityOpFactory ( )
virtual

Destructor.

◆ EBConductivityOpFactory() [2/3]

EBConductivityOpFactory::EBConductivityOpFactory ( )
inlineprivate

weak construction bad

References MayDay::Error().

◆ EBConductivityOpFactory() [3/3]

EBConductivityOpFactory::EBConductivityOpFactory ( const EBConductivityOpFactory a_opin)
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ setData()

virtual void EBConductivityOpFactory::setData ( Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_data)
inlinevirtual

◆ MGnewOp()

virtual EBConductivityOp* EBConductivityOpFactory::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 > >.

Referenced by setData().

◆ createOperator()

EBConductivityOp* EBConductivityOpFactory::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 
)

Referenced by setData().

◆ reclaim()

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

Referenced by setData().

◆ AMRnewOp()

virtual EBConductivityOp* EBConductivityOpFactory::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 > >.

Referenced by setData().

◆ AMRreclaim()

virtual void EBConductivityOpFactory::AMRreclaim ( EBConductivityOp a_reclaim)
virtual

Referenced by setData().

◆ refToFiner()

virtual int EBConductivityOpFactory::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 > >.

Referenced by setData().

◆ setTestRef()

static void EBConductivityOpFactory::setTestRef ( int  a_testRef)
inlinestatic

testRef is the size of the coarsest domain allowed in multigrid. If testRef=2, then the coarsest domain in multigrid will be 2x2(x2)

References s_testRef.

◆ setMaxBoxSize()

static void EBConductivityOpFactory::setMaxBoxSize ( int  a_maxBoxSize)
inlinestatic

References s_maxBoxSize.

◆ resetCoefficients()

void EBConductivityOpFactory::resetCoefficients ( const Real a_alpha,
const Real a_beta,
const Vector< RefCountedPtr< LevelData< EBCellFAB > > > &  a_acoef,
const Vector< RefCountedPtr< LevelData< EBFluxFAB > > > &  a_bcoef,
const Vector< RefCountedPtr< LevelData< BaseIVFAB< Real > > > > &  a_bcoefIrreg 
)
inline

Reset the coefficients for the conductivity operator (time-independent).

References m_acoef, m_alpha, m_bcoef, m_bcoefIrreg, and m_beta.

◆ operator=()

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

References MayDay::Error().

Member Data Documentation

◆ s_testRef

int EBConductivityOpFactory::s_testRef
static

Referenced by setTestRef().

◆ s_maxBoxSize

int EBConductivityOpFactory::s_maxBoxSize
static

Referenced by setMaxBoxSize().

◆ m_data

Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > EBConductivityOpFactory::m_data
protected

Referenced by setData().

◆ m_dataBased

bool EBConductivityOpFactory::m_dataBased
protected

Referenced by setData().

◆ m_eblgsMG

Vector< Vector<EBLevelGrid> > EBConductivityOpFactory::m_eblgsMG
protected

◆ m_acoefMG

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

Time-independent A multigrid coefficients.

◆ m_acoefMG0

Vector< Vector< RefCountedPtr<LevelData<EBCellFAB> > > > EBConductivityOpFactory::m_acoefMG0
protected

Beginning-of-step (time-dependent) A multigrid coefficients.

◆ m_acoefMG1

Vector< Vector< RefCountedPtr<LevelData<EBCellFAB> > > > EBConductivityOpFactory::m_acoefMG1
protected

End-of-step (time-dependent) A multigrid coefficients.

◆ m_bcoefMG

Vector< Vector< RefCountedPtr<LevelData<EBFluxFAB> > > > EBConductivityOpFactory::m_bcoefMG
protected

◆ m_bcoefIrregMG

Vector< Vector< RefCountedPtr<LevelData<BaseIVFAB<Real> > > > > EBConductivityOpFactory::m_bcoefIrregMG
protected

◆ m_relaxType

int EBConductivityOpFactory::m_relaxType
protected

◆ m_eblgs

Vector<EBLevelGrid> EBConductivityOpFactory::m_eblgs
protected

◆ m_quadCFI

Vector<RefCountedPtr<EBQuadCFInterp> > EBConductivityOpFactory::m_quadCFI
protected

◆ m_alpha

Real EBConductivityOpFactory::m_alpha
protected

Referenced by resetCoefficients().

◆ m_beta

Real EBConductivityOpFactory::m_beta
protected

Referenced by resetCoefficients().

◆ m_acoef

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

Time-independent A coefficients.

Referenced by resetCoefficients().

◆ m_bcoef

Vector<RefCountedPtr<LevelData<EBFluxFAB> > > EBConductivityOpFactory::m_bcoef
protected

Referenced by resetCoefficients().

◆ m_bcoefIrreg

Vector<RefCountedPtr<LevelData<BaseIVFAB<Real> > > > EBConductivityOpFactory::m_bcoefIrreg
protected

Referenced by resetCoefficients().

◆ m_dxCoarse

Real EBConductivityOpFactory::m_dxCoarse
protected

◆ m_refRatio

Vector<int> EBConductivityOpFactory::m_refRatio
protected

◆ m_domainBCFactory

RefCountedPtr<BaseDomainBCFactory> EBConductivityOpFactory::m_domainBCFactory
protected

◆ m_ebBCFactory

RefCountedPtr<BaseEBBCFactory> EBConductivityOpFactory::m_ebBCFactory
protected

◆ m_ghostCellsPhi

IntVect EBConductivityOpFactory::m_ghostCellsPhi
protected

◆ m_ghostCellsRhs

IntVect EBConductivityOpFactory::m_ghostCellsRhs
protected

◆ m_numLevels

int EBConductivityOpFactory::m_numLevels
protected

◆ m_hasMGObjects

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

◆ m_dx

Vector<Real> EBConductivityOpFactory::m_dx
protected

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