MFPoissonOpFactory Class Reference

#include <MFPoissonOpFactory.H>

Inheritance diagram for MFPoissonOpFactory:

Inheritance graph
[legend]

List of all members.


Detailed Description

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

Public Member Functions

virtual ~MFPoissonOpFactory ()
 MFPoissonOpFactory (const RefCountedPtr< MFIndexSpace > &a_mfis, const Vector< DisjointBoxLayout > &a_dilbos, const Vector< int > &a_refRatio, const ProblemDomain &a_domainCoar, const RealVect &a_dxCoarse, const RealVect &a_origin, const Vector< RefCountedPtr< BaseDomainBC > > &a_bc, const Vector< Real > &a_alpha, const Vector< Real > &a_beta, const int &a_ncomp, const IntVect &a_ghostCellsPhi, const IntVect &a_ghostCellsRHS, int a_numLevels=-1)
void setJump (const Real &a_gD, const Real &a_gN)
void setJump (const RealVect &a_gD, const RealVect &a_gN)
void setJump (const Vector< RefCountedPtr< BaseBCValue > > &a_phiValVect, const Vector< RefCountedPtr< BaseBCValue > > &a_flxValVect)
virtual MGLevelOp< LevelData
< MFCellFAB > > * 
MGnewOp (const ProblemDomain &a_FineindexSpace, int a_depth, bool a_homoOnly=true)
MFPoissonOpcreateOperator (const DisjointBoxLayout &a_dilboMGLevel, const DisjointBoxLayout &a_dilboCoarMG, const ProblemDomain &a_domainMGLevel, const bool &a_hasMGObjects, const bool &a_layoutChanged, const RealVect &a_dxMGLevel, const RealVect &a_dxCoar, const int &a_whichLevel, const int &a_mgLevel)
virtual void reclaim (MGLevelOp< LevelData< EBCellFAB > > *a_reclaim)
virtual AMRLevelOp< LevelData
< MFCellFAB > > * 
AMRnewOp (const ProblemDomain &a_FineindexSpace)
virtual void AMRreclaim (MFPoissonOp *a_reclaim)
virtual int refToFiner (const ProblemDomain &a_domain) const

Static Public Member Functions

static void setTestRef (int a_testRef)
static void setRelaxType (int a_relaxType)

Protected Attributes

bool m_isDefined
bool m_isScalarJump
bool m_analyticJump
int m_numLevels
int m_ncomp
RefCountedPtr< MFIndexSpacem_mfis
Vector< DisjointBoxLayoutm_dilboVec
Vector< ProblemDomainm_domainVec
Vector< Vector
< DisjointBoxLayout > > 
m_dilboVecMG
Vector< Vector< ProblemDomain > > m_domainVecMG
std::vector< bool > m_hasMGObjects
std::vector< bool > m_layoutChanged
std::vector< std::vector< bool > > m_layoutChangedMG
Vector< int > m_refRatioVec
Vector< RealVectm_dxVec
RealVect m_origin
Vector< Realm_alpha
Vector< Realm_beta
const IntVect m_ghostCellsPhi
const IntVect m_ghostCellsRHS
Real m_scalarGD
Real m_scalarGN
RealVect m_vectorGD
RealVect m_vectorGN
Vector< RefCountedPtr
< BaseBCValue > > 
m_phiValVect
Vector< RefCountedPtr
< BaseBCValue > > 
m_flxValVect
Vector< RefCountedPtr
< BaseDomainBC > > 
m_bc

Static Protected Attributes

static int s_testRef
static int s_relaxType

Private Member Functions

 MFPoissonOpFactory ()
 weak construction bad
 MFPoissonOpFactory (const MFPoissonOpFactory &a_opin)
void operator= (const MFPoissonOpFactory &a_opin)

Constructor & Destructor Documentation

virtual MFPoissonOpFactory::~MFPoissonOpFactory (  )  [virtual]

MFPoissonOpFactory::MFPoissonOpFactory ( const RefCountedPtr< MFIndexSpace > &  a_mfis,
const Vector< DisjointBoxLayout > &  a_dilbos,
const Vector< int > &  a_refRatio,
const ProblemDomain a_domainCoar,
const RealVect a_dxCoarse,
const RealVect a_origin,
const Vector< RefCountedPtr< BaseDomainBC > > &  a_bc,
const Vector< Real > &  a_alpha,
const Vector< Real > &  a_beta,
const int &  a_ncomp,
const IntVect a_ghostCellsPhi,
const IntVect a_ghostCellsRHS,
int  a_numLevels = -1 
)

a_dilbos : layouts at each AMR level \ a_domainFactory : domain boundary conditions \ a_ebBCFactory: eb boundary conditions \ a_dxCoarse: grid spacing at coarsest level \ a_origin: offset to lowest corner of the domain \ a_refRatio: refinement ratios. refRatio[i] is between levels i and i+1 \ a_preCondIters: number of iterations to do for pre-conditioning \ a_alpha: coefficent of identity \ a_beta: coefficient of laplacian.\ a_time: time for boundary conditions \ a_ghostCellsPhi: Number of ghost cells in phi, correction (typically one)\ a_ghostCellsRhs: Number of ghost cells in RHS, residual, lphi (typically zero)\ Ghost cell arguments are there for caching reasons. Once you set them, an error is thrown if you send in data that does not match. Use numlevels = -1 if you want to use the size of the vectors for numlevels.

MFPoissonOpFactory::MFPoissonOpFactory (  )  [inline, private]

weak construction bad

References MayDay::Error().

MFPoissonOpFactory::MFPoissonOpFactory ( const MFPoissonOpFactory a_opin  )  [inline, private]

References MayDay::Error().


Member Function Documentation

void MFPoissonOpFactory::setJump ( const Real a_gD,
const Real a_gN 
)

void MFPoissonOpFactory::setJump ( const RealVect a_gD,
const RealVect a_gN 
)

void MFPoissonOpFactory::setJump ( const Vector< RefCountedPtr< BaseBCValue > > &  a_phiValVect,
const Vector< RefCountedPtr< BaseBCValue > > &  a_flxValVect 
)

virtual MGLevelOp<LevelData<MFCellFAB> >* MFPoissonOpFactory::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< MFCellFAB > >.

MFPoissonOp* MFPoissonOpFactory::createOperator ( const DisjointBoxLayout a_dilboMGLevel,
const DisjointBoxLayout a_dilboCoarMG,
const ProblemDomain a_domainMGLevel,
const bool &  a_hasMGObjects,
const bool &  a_layoutChanged,
const RealVect a_dxMGLevel,
const RealVect a_dxCoar,
const int &  a_whichLevel,
const int &  a_mgLevel 
)

virtual void MFPoissonOpFactory::reclaim ( MGLevelOp< LevelData< EBCellFAB > > *  a_reclaim  )  [virtual]

virtual AMRLevelOp<LevelData<MFCellFAB> >* MFPoissonOpFactory::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< MFCellFAB > >.

virtual void MFPoissonOpFactory::AMRreclaim ( MFPoissonOp a_reclaim  )  [virtual]

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

static void MFPoissonOpFactory::setTestRef ( int  a_testRef  )  [inline, static]

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.

static void MFPoissonOpFactory::setRelaxType ( int  a_relaxType  )  [inline, static]

References s_relaxType.

void MFPoissonOpFactory::operator= ( const MFPoissonOpFactory a_opin  )  [inline, private]

References MayDay::Error().


Member Data Documentation

int MFPoissonOpFactory::s_testRef [static, protected]

Referenced by setTestRef().

int MFPoissonOpFactory::s_relaxType [static, protected]

Referenced by setRelaxType().

int MFPoissonOpFactory::m_ncomp [protected]

std::vector<bool> MFPoissonOpFactory::m_hasMGObjects [protected]

std::vector<bool> MFPoissonOpFactory::m_layoutChanged [protected]

std::vector< std::vector<bool> > MFPoissonOpFactory::m_layoutChangedMG [protected]


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

Generated on Wed Mar 29 03:27:09 2017 for Chombo + EB + MF by  doxygen 1.5.5