chombo-discharge
|
Factory class for passing Dirichlet domain boundary conditions into MFHelmholtzOp. More...
#include <CD_MFHelmholtzDirichletDomainBCFactory.H>
Public Member Functions | |
MFHelmholtzDirichletDomainBCFactory () | |
Constructor. | |
MFHelmholtzDirichletDomainBCFactory (const Real a_value) | |
Constructor. | |
MFHelmholtzDirichletDomainBCFactory (const std::function< Real(const RealVect &a_pos)> &a_value) | |
Full constructor. | |
virtual | ~MFHelmholtzDirichletDomainBCFactory () |
Destructor. | |
void | setValue (const Real a_value) |
Set the constant value on the domain side. | |
void | setValue (const std::function< Real(const RealVect &a_pos)> &a_value) |
Set the spatially dependent value on the domain side. | |
virtual RefCountedPtr< EBHelmholtzDomainBC > | create (const int a_iphase) const override |
Factory method. | |
![]() | |
MFHelmholtzDomainBCFactory () | |
Constructor. | |
virtual | ~MFHelmholtzDomainBCFactory () |
Destructor. | |
MFHelmholtzDomainBCFactory (const MFHelmholtzDomainBCFactory &a_other)=delete | |
Disallowed – don't see why you would need it. | |
MFHelmholtzDomainBCFactory & | operator= (const MFHelmholtzDomainBCFactory &a_other)=delete |
Disallowed - don't see why you would need it. | |
Protected Attributes | |
bool | m_useConstant |
Use constant for BC. | |
bool | m_useFunction |
Use function for BC value. | |
Real | m_constantValue |
Value on EB. | |
std::function< Real(const RealVect &a_pos)> | m_functionValue |
Value on the EB. | |
Factory class for passing Dirichlet domain boundary conditions into MFHelmholtzOp.
Constructor.
[in] | a_value | Constant value on domain side |
MFHelmholtzDirichletDomainBCFactory::MFHelmholtzDirichletDomainBCFactory | ( | const std::function< Real(const RealVect &a_pos)> & | a_value | ) |
Full constructor.
[in] | a_value | Spatially dependent value on domain side |
|
overridevirtual |
Factory method.
Implements MFHelmholtzDomainBCFactory.
Set the constant value on the domain side.
[in] | a_value | Constant value on all domain sides. |
void MFHelmholtzDirichletDomainBCFactory::setValue | ( | const std::function< Real(const RealVect &a_pos)> & | a_value | ) |
Set the spatially dependent value on the domain side.
[in] | a_value | Spatially dependent value on all domain sides. |