Chombo + EB + MF
3.2
|
#include <EBConductivityOpFactory.H>
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 EBConductivityOp * | MGnewOp (const ProblemDomain &a_FineindexSpace, int a_depth, bool a_homoOnly=true) |
EBConductivityOp * | 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 | reclaim (MGLevelOp< LevelData< EBCellFAB > > *a_reclaim) |
virtual EBConductivityOp * | AMRnewOp (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 |
Private Member Functions | |
EBConductivityOpFactory () | |
weak construction bad More... | |
EBConductivityOpFactory (const EBConductivityOpFactory &a_opin) | |
void | operator= (const EBConductivityOpFactory &a_opin) |
Factory class to generate EBConductivityOps. This follows the AMRLevelOpFactory interface.
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.
|
virtual |
Destructor.
|
inlineprivate |
weak construction bad
References MayDay::Error().
|
inlineprivate |
References MayDay::Error().
|
inlinevirtual |
References AMRnewOp(), AMRreclaim(), createOperator(), m_data, m_dataBased, MGnewOp(), reclaim(), and refToFiner().
|
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().
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().
|
virtual |
Referenced by setData().
|
virtual |
return a new operator. this is done with a new call. caller is responsible for deletion
Implements AMRLevelOpFactory< LevelData< EBCellFAB > >.
Referenced by setData().
|
virtual |
Referenced by setData().
|
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().
|
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.
|
inlinestatic |
References s_maxBoxSize.
|
inline |
Reset the coefficients for the conductivity operator (time-independent).
References m_acoef, m_alpha, m_bcoef, m_bcoefIrreg, and m_beta.
|
inlineprivate |
References MayDay::Error().
|
static |
Referenced by setTestRef().
|
static |
Referenced by setMaxBoxSize().
|
protected |
Referenced by setData().
|
protected |
Referenced by setData().
|
protected |
|
protected |
Time-independent A multigrid coefficients.
|
protected |
Beginning-of-step (time-dependent) A multigrid coefficients.
|
protected |
End-of-step (time-dependent) A multigrid coefficients.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by resetCoefficients().
|
protected |
Referenced by resetCoefficients().
|
protected |
Time-independent A coefficients.
Referenced by resetCoefficients().
|
protected |
Referenced by resetCoefficients().
|
protected |
Referenced by resetCoefficients().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |