11 #ifndef _DIRICHLETCONDUCTIVITYDOMAINBC_H_ 12 #define _DIRICHLETCONDUCTIVITYDOMAINBC_H_ 18 #include "NamespaceHeader.H" 38 const bool& a_useHomogeneous);
49 const bool& a_useHomogeneous);
69 const bool& a_useHomogeneous);
81 const bool& a_useAreaFrac,
83 const bool& a_useHomogeneous);
102 Box grownBox = a_valid;
109 Box choppedBox = grownBox;
110 choppedBox.
grow(idir,-1);
111 Box toRegion = adjCellBox(choppedBox, idir, sit(), 1);
121 int isign =
sign(sit());
124 if(a_homogeneous) value = 0.;
126 a_phi(iv, 0) = -a_phi(ivneigh, 0) + 2.*value;
160 #include "NamespaceFooter.H" bool ok()
Definition: BoxIterator.H:281
virtual int whichBC(int a_idir, Side::LoHiSide a_side)
virtual void getFaceGradPhi(Real &a_faceFlux, const FaceIndex &a_face, const int &a_comp, const EBCellFAB &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_useAreaFrac, const RealVect &a_centroid, const bool &a_useHomogeneous)
#define CH_SPACEDIM
Definition: SPACE.H:51
A class to facilitate interaction with physical boundary conditions.
Definition: ProblemDomain.H:141
void setFunction(RefCountedPtr< BaseBCFuncEval > a_func)
Definition: ConductivityBaseDomainBC.H:52
Definition: DirichletConductivityDomainBC.H:20
int sign(const CH_XD::Side::LoHiSide &a_side)
Definition: FaceIndex.H:28
Definition: ConductivityBaseDomainBC.H:32
bool contains(const IntVect &p) const
Definition: Box.H:1871
IntVect BASISV(int dir)
Definition: IntVect.H:1266
iterates through the IntVects of a Box
Definition: BoxIterator.H:37
Definition: DirichletConductivityDomainBC.H:137
virtual void fillPhiGhost(FArrayBox &a_phi, const Box &a_valid, const Box &a_domain, Real a_dx, bool a_homogeneous)
Definition: DirichletConductivityDomainBC.H:96
A EBFaceFAB-like container for edge-centered fluxes.
Definition: EBFluxFAB.H:25
bool m_isFunction
Definition: DirichletConductivityDomainBC.H:154
static const RealVect Zero
Definition: RealVect.H:421
virtual void getHigherOrderFaceFlux(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)
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)
virtual bool isDirichletDom(const VolIndex &a_ivof, const VolIndex &a_jvof, const EBCellFAB &a_phi)
Definition: DirichletConductivityDomainBC.H:52
Definition: EBCellFAB.H:29
double Real
Definition: REAL.H:33
Definition: BaseDomainBC.H:212
Real m_value
Definition: DirichletConductivityDomainBC.H:156
RefCountedPtr< BaseBCFuncEval > m_flux
Definition: DirichletConductivityDomainBC.H:157
LoHiSide
Definition: LoHiSide.H:27
void setValue(Real a_value)
Definition: ConductivityBaseDomainBC.H:44
A Rectangular Domain on an Integer Lattice.
Definition: Box.H:465
A Real vector in SpaceDim-dimensional space.
Definition: RealVect.H:41
Iterator for low and high side.
Definition: LoHiSide.H:74
Definition: DataIndex.H:112
virtual ~DirichletConductivityDomainBC()
Real bcvaluefunc(const RealVect &a_point, const int &a_dir, const Side::LoHiSide &a_side)
Definition: ConductivityBaseDomainBC.H:78
bool m_onlyHomogeneous
Definition: DirichletConductivityDomainBC.H:153
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
Volume of Fluid Index.
Definition: VolIndex.H:31
Box & grow(int i)
grow functions
Definition: Box.H:2247
Definition: EBISLayout.H:39
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
virtual void getFaceVel(Real &a_faceFlux, const FaceIndex &a_face, const EBFluxFAB &a_vel, const RealVect &a_probLo, const RealVect &a_dx, const int &a_idir, const int &a_icomp, const Real &a_time, const Side::LoHiSide &a_side)
DirichletConductivityDomainBC()