Factory class for making Dirichlet BCs on EBs in EBHelmholtzOp.
More...
#include <CD_EBHelmholtzDirichletEBBCFactory.H>
Factory class for making Dirichlet BCs on EBs in EBHelmholtzOp.
◆ EBHelmholtzDirichletEBBCFactory() [1/2]
EBHelmholtzDirichletEBBCFactory::EBHelmholtzDirichletEBBCFactory |
( |
const int |
a_order, |
|
|
const int |
a_weight, |
|
|
const Real |
a_value |
|
) |
| |
Full constructor which sets order and value on EB.
- Parameters
-
[in] | a_order | Approximation order |
[in] | a_weight | Weighting factor for stencils |
[in] | a_value | Constant value on EB |
- Note
- The order is also the attempted radius of the stencil.
◆ EBHelmholtzDirichletEBBCFactory() [2/2]
EBHelmholtzDirichletEBBCFactory::EBHelmholtzDirichletEBBCFactory |
( |
const int |
a_order, |
|
|
const int |
a_weight, |
|
|
const std::function< Real(const RealVect &a_pos)> & |
a_value |
|
) |
| |
Full constructor which sets order and spatially varying value on EBs.
- Parameters
-
[in] | a_order | Approximation order |
[in] | a_value | Spatially varying value on EBs |
◆ setOrder()
void EBHelmholtzDirichletEBBCFactory::setOrder |
( |
const int |
a_order | ) |
|
|
virtual |
Set BC order.
- Parameters
-
[in] | a_order | Approximation order (1 and 2 are accepted) |
- Note
- For least squares, the order is also the attempted radius of the stencil.
◆ setValue() [1/2]
void EBHelmholtzDirichletEBBCFactory::setValue |
( |
const Real |
a_value | ) |
|
|
virtual |
Set the value on the EB.
- Parameters
-
[in] | a_value | Constant value on EB |
◆ setValue() [2/2]
void EBHelmholtzDirichletEBBCFactory::setValue |
( |
const std::function< Real(const RealVect &a_pos)> & |
a_value | ) |
|
|
virtual |
Set the spatially varying value on the EB.
- Parameters
-
[in] | a_value | Spatially dependent value on EB |
◆ setWeight()
void EBHelmholtzDirichletEBBCFactory::setWeight |
( |
const int |
a_weight | ) |
|
|
virtual |
Set BC order.
- Parameters
-
[in] | a_weight | Weight for least squares stencils. |
- Note
- a_weight = 0 can lead to ill-conditioned least-squares systems.
The documentation for this class was generated from the following files: