Chombo + EB  3.2
Public Member Functions | Public Attributes | List of all members
CompGridVTOBC Class Reference

#include <PetscCompGridVTO.H>

Inheritance diagram for CompGridVTOBC:
Inheritance graph
[legend]

Public Member Functions

 CompGridVTOBC (int a_nSource=1, IntVect a_nGhosts=IntVect::Unit)
 
virtual ~CompGridVTOBC ()
 
void setDiri (int dir, int side, int comp, bool a_diri=true)
 
bool isDiri (int dir, int side, int comp)
 
virtual void createCoefs ()
 
virtual void operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, bool a_homogeneous)
 
virtual void operator() (FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, const DataIndex &a_index, bool a_homogeneous)
 
- Public Member Functions inherited from CompBC
 CompBC ()
 
 CompBC (int a_nSource, IntVect a_nGhosts)
 
virtual ~CompBC ()
 
void define (int a_nSource, IntVect a_nGhosts)
 
IntVect nGhosts () const
 
int nSources () const
 
PetscReal getCoef (int a_iSrc, int a_iGhost=0)
 
- Public Member Functions inherited from BCFunction
 BCFunction ()
 Base class constructor. Called by all subclass constructors. More...
 
virtual ~BCFunction ()
 Destructor. More...
 
virtual void setTime (const Real &a_time)
 
void fillGhostCells (const LevelData< FArrayBox > &phi, const Real dx, const bool homogeneous)
 Fill the ghost cells for a single level. More...
 
void fillGhostCells (const Vector< LevelData< FArrayBox > *> &phi, const Real dx0, const Vector< int > &refV, const bool homogeneous)
 Fill the ghost cells for a Hierarchy of levels. More...
 

Public Attributes

bool m_bcDiri [CH_SPACEDIM][2][CH_SPACEDIM]
 

Additional Inherited Members

- Protected Attributes inherited from CompBC
PetscReal * m_Rcoefs
 
IntVect m_nGhosts
 
int m_nSources
 
bool m_isDefined
 

Constructor & Destructor Documentation

◆ CompGridVTOBC()

CompGridVTOBC::CompGridVTOBC ( int  a_nSource = 1,
IntVect  a_nGhosts = IntVect::Unit 
)
inline

References SpaceDim.

◆ ~CompGridVTOBC()

virtual CompGridVTOBC::~CompGridVTOBC ( )
inlinevirtual

Member Function Documentation

◆ setDiri()

void CompGridVTOBC::setDiri ( int  dir,
int  side,
int  comp,
bool  a_diri = true 
)
inline

◆ isDiri()

bool CompGridVTOBC::isDiri ( int  dir,
int  side,
int  comp 
)
inline

◆ createCoefs()

virtual void CompGridVTOBC::createCoefs ( )
virtual

Implements CompBC.

◆ operator()() [1/2]

virtual void CompGridVTOBC::operator() ( FArrayBox a_state,
const Box a_valid,
const ProblemDomain a_domain,
Real  a_dx,
bool  a_homogeneous 
)
virtual

Computes values of a solution, $\phi$, on ghost cells. These ghost values impose the boundary condition represented by the BCFunction object.

Parameters
a_stateThe values of $\phi$ on the box given by a_valid.
a_validThe box on which the boundary condition is to be imposed.
a_domainThe problem domain on which this boundary condition is imposed.
a_dxThe grid spacing.
a_homogeneousIf set to true, ghost values are computed for a homogeneous boundary condition. This is useful for multigrid solves.

Implements CompBC.

◆ operator()() [2/2]

virtual void CompGridVTOBC::operator() ( FArrayBox a_state,
const Box a_valid,
const ProblemDomain a_domain,
Real  a_dx,
const DataIndex a_index,
bool  a_homogeneous 
)
inlinevirtual

Computes the values of $\phi$ on ghost cells specifying a data index. By default, this calls the version of the method without a DataIndex.

Parameters
a_stateThe values of $\phi$ on the box given by a_valid.
a_validThe box on which the boundary condition is to be imposed.
a_domainThe problem domain on which this boundary condition is imposed.
a_dxThe grid spacing.
a_indexA DataIndex that can be used in the calculation.
a_homogeneousIf set to true, ghost values are computed for a homogeneous boundary condition. This is useful for multigrid solves.

Reimplemented from CompBC.

Member Data Documentation

◆ m_bcDiri

bool CompGridVTOBC::m_bcDiri[CH_SPACEDIM][2][CH_SPACEDIM]

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