Declaration of a domain boundary condition class for PetscHelmholtzOp.
PetscHelmholtzDomainBC()
Default constructor. Must subsequently call define.
Definition CD_PetscHelmholtzDomainBC.cpp:23
PetscHelmholtzNeumannDomainBC()
Default constructor. Must subsequently call setDphiDn.
Definition CD_PetscHelmholtzNeumannDomainBC.cpp:23
virtual ~PetscHelmholtzNeumannDomainBC()
Destructor.
Definition CD_PetscHelmholtzNeumannDomainBC.cpp:42
bool m_useConstant
Use a constant value or not.
Definition CD_PetscHelmholtzNeumannDomainBC.H:118
Real m_constantDphiDn
Constant dphi/dn.
Definition CD_PetscHelmholtzNeumannDomainBC.H:128
void getFaceFluxStencil(Real &a_boundaryWeight, VoFStencil &a_stencilCoar, VoFStencil &a_stencil, VoFStencil &a_stencilFine, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const int a_dir, const Side::LoHiSide a_side) const override
Get the stencil of the face flux through a domain face. The stencil is empty and w_B = -s,...
Definition CD_PetscHelmholtzNeumannDomainBC.cpp:68
Real getBoundaryData(const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const int a_dir, const Side::LoHiSide a_side) const override
Get the boundary data, i.e. dphi/dn on the boundary.
Definition CD_PetscHelmholtzNeumannDomainBC.cpp:91
std::function< Real(const RealVect &a_pos)> m_functionDphiDn
Spatially varying dphi/dn.
Definition CD_PetscHelmholtzNeumannDomainBC.H:133
void setDphiDn(const Real a_DphiDn)
Set a constant normal derivative on the boundary.
Definition CD_PetscHelmholtzNeumannDomainBC.cpp:48
bool m_useFunction
Use a spatially varying value or not.
Definition CD_PetscHelmholtzNeumannDomainBC.H:123