chombo-discharge
|
Factory class for passing Dirichlet domain boundary conditions into EBHelmholtzOp. More...
#include <CD_EBHelmholtzDirichletDomainBCFactory.H>
Public Member Functions | |
EBHelmholtzDirichletDomainBCFactory () | |
Constructor. | |
EBHelmholtzDirichletDomainBCFactory (const Real a_value) | |
Constructor. | |
EBHelmholtzDirichletDomainBCFactory (const std::function< Real(const RealVect &a_pos)> &a_value) | |
Full constructor. | |
virtual | ~EBHelmholtzDirichletDomainBCFactory () |
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 override |
Factory method. | |
![]() | |
EBHelmholtzDomainBCFactory () | |
Constructor. | |
virtual | ~EBHelmholtzDomainBCFactory () |
Destructor. | |
EBHelmholtzDomainBCFactory (const EBHelmholtzDomainBCFactory &a_other)=delete | |
Disallowed – don't see why you would need it. | |
EBHelmholtzDomainBCFactory & | operator= (const EBHelmholtzDomainBCFactory &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 EBHelmholtzOp.
Constructor.
[in] | a_value | Constant value on domain side |
EBHelmholtzDirichletDomainBCFactory::EBHelmholtzDirichletDomainBCFactory | ( | 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 EBHelmholtzDomainBCFactory.
Set the constant value on the domain side.
[in] | a_value | Constant value on all domain sides. |
void EBHelmholtzDirichletDomainBCFactory::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. |