11 #ifndef _DIRICHLETVISCOUSTENSORDOMAINBC_H_ 12 #define _DIRICHLETVISCOUSTENSORDOMAINBC_H_ 18 #include "NamespaceHeader.H" 48 const bool& a_useHomogeneous);
64 const bool& a_homogeneous);
73 Box grownBox = a_valid;
79 Box choppedBox = grownBox;
80 choppedBox.
grow(idir,-1);
81 Box toRegion = adjCellBox(choppedBox, idir, sit(), 1);
90 int isign =
sign(sit());
94 for(
int comp = 0; comp <
SpaceDim; comp++)
97 a_phi(iv, comp) = -a_phi(ivneigh, comp) + 2.*value[comp];
117 const bool& a_useHomogeneous);
159 #include "NamespaceFooter.H" bool ok()
Definition: BoxIterator.H:281
#define CH_SPACEDIM
Definition: SPACE.H:51
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
int sign(const CH_XD::Side::LoHiSide &a_side)
Real m_value
Definition: DirichletViscousTensorDomainBC.H:156
Definition: FaceIndex.H:28
Definition: DirichletViscousTensorDomainBC.H:23
DirichletViscousTensorDomainBC()
bool contains(const IntVect &p) const
Definition: Box.H:1887
IntVect BASISV(int dir)
Definition: IntVect.H:1285
iterates through the IntVects of a Box
Definition: BoxIterator.H:37
RefCountedPtr< BaseBCFuncEval > m_func
Definition: DirichletViscousTensorDomainBC.H:157
const int SpaceDim
Definition: SPACE.H:38
virtual ~DirichletViscousTensorDomainBC()
void getDivergenceAndGradient(Real &a_divergence, Real *a_gradient, const int &a_idir, const FaceIndex &a_bndryFace, const VolIndex &a_vof, const EBCellFAB &a_phi, const RealVect &a_probLo, const RealVect &a_dx, const Side::LoHiSide &a_side, const DataIndex &a_dit, const Real &a_time, const bool &a_useHomogeneous)
bool m_onlyHomogeneous
Definition: DirichletViscousTensorDomainBC.H:153
Definition: ViscousBaseDomainBC.H:33
static const RealVect Zero
Definition: RealVect.H:421
virtual void getFaceFlux(BaseFab< Real > &a_faceFlux, const BaseFab< Real > &a_phi, const RealVect &a_probLo, const RealVect &a_dx, const int &a_idir, const Side::LoHiSide &a_side, const DataIndex &a_dit, const Real &a_time, const bool &a_useHomogeneous)
Definition: EBCellFAB.H:29
double Real
Definition: REAL.H:33
virtual void setFunction(RefCountedPtr< BaseBCFuncEval > a_func)
Definition: ViscousBaseDomainBC.H:110
Definition: BaseDomainBC.H:212
LoHiSide
Definition: LoHiSide.H:27
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:469
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Iterator for low and high side.
Definition: LoHiSide.H:74
Definition: DataIndex.H:114
RealVect bcvaluefunc(const RealVect &a_point, const int &a_dir, const Side::LoHiSide &a_side)
Definition: ViscousBaseDomainBC.H:152
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
virtual void setValue(Real a_value)
Definition: ViscousBaseDomainBC.H:98
Definition: FArrayBox.H:45
Volume of Fluid Index.
Definition: VolIndex.H:31
Box & grow(int i)
grow functions
Definition: Box.H:2263
Definition: EBISLayout.H:39
bool m_isFunctional
Definition: DirichletViscousTensorDomainBC.H:154
Definition: DirichletViscousTensorDomainBC.H:121
virtual void fillVelGhost(FArrayBox &a_phi, const Box &a_valid, const Box &a_domain, Real a_dx, bool a_homogeneous)
Definition: DirichletViscousTensorDomainBC.H:67
static RealVect getVoFLocation(const VolIndex &a_vof, const RealVect &a_dx, const RealVect &a_probLo)
I have misspelled this one time too many.
Definition: EBArith.H:623