Declaration of a domain boundary condition class for PetscHelmholtzOp.
void setValue(const Real a_value)
Set a constant value on the boundary.
Definition CD_PetscHelmholtzDirichletDomainBC.cpp:49
Real m_constantValue
Constant value.
Definition CD_PetscHelmholtzDirichletDomainBC.H:126
std::function< Real(const RealVect &a_pos)> m_functionValue
Spatially varying value.
Definition CD_PetscHelmholtzDirichletDomainBC.H:131
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. phi on the boundary.
Definition CD_PetscHelmholtzDirichletDomainBC.cpp:94
bool m_useFunction
Use a spatially varying value or not.
Definition CD_PetscHelmholtzDirichletDomainBC.H:121
virtual ~PetscHelmholtzDirichletDomainBC()
Destructor.
Definition CD_PetscHelmholtzDirichletDomainBC.cpp:43
bool m_useConstant
Use a constant value or not.
Definition CD_PetscHelmholtzDirichletDomainBC.H:116
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.
Definition CD_PetscHelmholtzDirichletDomainBC.cpp:69
PetscHelmholtzDirichletDomainBC()
Default constructor. Must subsequently call setValue.
Definition CD_PetscHelmholtzDirichletDomainBC.cpp:23
PetscHelmholtzDomainBC()
Default constructor. Must subsequently call define.
Definition CD_PetscHelmholtzDomainBC.cpp:23