11 #ifndef _NEUMANNCONDUCTIVITYDOMAINBC_H_ 12 #define _NEUMANNCONDUCTIVITYDOMAINBC_H_ 18 #include "NamespaceHeader.H" 45 const bool& a_useHomogeneous);
57 const bool& a_useHomogeneous);
69 const bool& a_useAreaFrac,
71 const bool& a_useHomogeneous);
90 Box grownBox = a_valid;
97 Box choppedBox = grownBox;
98 choppedBox.
grow(idir,-1);
99 Box toRegion = adjCellBox(choppedBox, idir, sit(), 1);
109 int isign =
sign(sit());
112 if(a_homogeneous) value = 0;
113 a_phi(iv, 0) = a_phi(ivneigh, 0) + a_dx*value;
148 #include "NamespaceFooter.H" bool ok()
Definition: BoxIterator.H:281
RefCountedPtr< BaseBCFuncEval > m_flux
Definition: NeumannConductivityDomainBC.H:144
#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
int sign(const CH_XD::Side::LoHiSide &a_side)
virtual void fillPhiGhost(FArrayBox &a_phi, const Box &a_valid, const Box &a_domain, Real a_dx, bool a_homogeneous)
Definition: NeumannConductivityDomainBC.H:84
Definition: FaceIndex.H:28
Real m_value
Definition: NeumannConductivityDomainBC.H:143
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
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)
NeumannConductivityDomainBC()
A EBFaceFAB-like container for edge-centered fluxes.
Definition: EBFluxFAB.H:25
static const RealVect Zero
Definition: RealVect.H:421
Definition: EBCellFAB.H:29
bool m_onlyHomogeneous
Definition: NeumannConductivityDomainBC.H:140
double Real
Definition: REAL.H:33
bool m_isFunction
Definition: NeumannConductivityDomainBC.H:141
Definition: BaseDomainBC.H:212
LoHiSide
Definition: LoHiSide.H:27
void setValue(Real a_value)
Definition: ConductivityBaseDomainBC.H:44
virtual int whichBC(int a_idir, Side::LoHiSide a_side)
bool isDirichletDom(const VolIndex &a_ivof, const VolIndex &a_jvof, const EBCellFAB &a_phi) const
Definition: NeumannConductivityDomainBC.H:30
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: NeumannConductivityDomainBC.H:124
Definition: DataIndex.H:112
Real bcvaluefunc(const RealVect &a_point, const int &a_dir, const Side::LoHiSide &a_side)
Definition: ConductivityBaseDomainBC.H:78
An integer Vector in SpaceDim-dimensional space.
Definition: CHArray.H:42
Definition: FArrayBox.H:45
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)
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 ~NeumannConductivityDomainBC()
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: NeumannConductivityDomainBC.H:20