11 #ifndef _PETSCCOMPGRIDVTO_H_ 12 #define _PETSCCOMPGRIDVTO_H_ 14 #include "NamespaceHeader.H" 76 for (
int comp=0; comp<
SpaceDim; comp++)
78 m_bcDiri[0][0][comp] =
true;
79 m_bcDiri[0][1][comp] =
true;
80 m_bcDiri[1][0][comp] =
true;
81 m_bcDiri[1][1][comp] =
true;
90 void setDiri(
int dir,
int side,
int comp,
bool a_diri =
true) {m_bcDiri[dir][side][comp] = a_diri;}
91 bool isDiri(
int dir,
int side,
int comp) {
return m_bcDiri[dir][side][comp]; }
92 virtual void createCoefs();
93 virtual void operator()(
FArrayBox& a_state,
106 operator()(a_state, a_valid, a_domain, a_dx, a_homogeneous);
113 #include "NamespaceFooter.H" Definition: PetscCompGrid.H:148
void setAlpha(Real a_b)
Definition: PetscCompGridVTO.H:57
A reference-counting handle class.
Definition: RefCountedPtr.H:173
PetscCompGridVTO(Real a_al=0., Real a_beta=1.0)
Base class constructor. Called by all subclass constructors.
Definition: PetscCompGridVTO.H:33
#define CH_SPACEDIM
Definition: SPACE.H:51
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
virtual ~PetscCompGridVTO()
Destructor.
Definition: PetscCompGridVTO.H:24
Vector< RefCountedPtr< LevelData< FluxBox > > > m_eta
Definition: PetscCompGridVTO.H:65
one dimensional dynamic array
Definition: Vector.H:53
Real m_beta
Definition: PetscCompGridVTO.H:63
std::map< IndexML, StencilTensorValue > StencilTensor
Definition: Stencil.H:137
const int SpaceDim
Definition: SPACE.H:38
Real getBeta() const
Definition: PetscCompGridVTO.H:56
static const IntVect Unit
Definition: IntVect.H:663
bool isDiri(int dir, int side, int comp)
Definition: PetscCompGridVTO.H:91
Definition: PetscCompGrid.H:30
void defineCoefs(Real a_alpha, Real a_beta, Vector< RefCountedPtr< LevelData< FluxBox > > > &a_mu, Vector< RefCountedPtr< LevelData< FluxBox > > > &a_lambda, Vector< RefCountedPtr< LevelData< FArrayBox > > > &a_a)
Definition: PetscCompGridVTO.H:39
Real getAlpha() const
Definition: PetscCompGridVTO.H:55
double Real
Definition: REAL.H:33
Vector< RefCountedPtr< LevelData< FluxBox > > > m_lamb
Definition: PetscCompGridVTO.H:66
void setDiri(int dir, int side, int comp, bool a_diri=true)
Definition: PetscCompGridVTO.H:90
virtual void createOpStencil(IntVect, int, const DataIndex &, StencilTensor &)
Definition: PetscCompGridVTO.H:71
virtual void applyBCs(IntVect, int, const DataIndex &, Box, StencilTensor &)
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
Definition: PetscCompGridVTO.H:19
Definition: DataIndex.H:114
void setBeta(Real a_b)
Definition: PetscCompGridVTO.H:58
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
virtual ~CompGridVTOBC()
Definition: PetscCompGridVTO.H:85
CompGridVTOBC(int a_nSource=1, IntVect a_nGhosts=IntVect::Unit)
Definition: PetscCompGridVTO.H:74
virtual IntVect getGhostVect() const
Definition: PetscCompGridVTO.H:51
Real m_alpha
Definition: PetscCompGridVTO.H:62
Vector< RefCountedPtr< LevelData< FArrayBox > > > m_a
Definition: PetscCompGridVTO.H:67
virtual void operator()(FArrayBox &a_state, const Box &a_valid, const ProblemDomain &a_domain, Real a_dx, const DataIndex &a_index, bool a_homogeneous)
Definition: PetscCompGridVTO.H:99