Class for making electrostatic boundary conditions on EBs in an MFHelmholtzOp context.
More...
#include <CD_MFHelmholtzElectrostaticEBBCFactory.H>
|
|
int | m_order |
| | Stencil order.
|
| |
|
int | m_weight |
| | Stencil weight.
|
| |
|
int | m_domainDropOrder |
| | Special flag for dropping stencil order when domains become coarser than this.
|
| |
|
bool | m_dropOrder |
| | Special flag for dropping stencil order if the cell is a coarsened cell.
|
| |
|
ElectrostaticEbBc | m_electrostaticBCs |
| | Electrostatic boundary conditions.
|
| |
Class for making electrostatic boundary conditions on EBs in an MFHelmholtzOp context.
Users will pass an object of this class to MFHelmholtzOpFactory. The input arguments in the constructor will set the stencil order and weights for the least squares reconstruction that is used in EBHelmholtzEBBC. The actual BC values are passed in through the a_electrostaticBCs argument in the constructor.
◆ MFHelmholtzElectrostaticEBBCFactory() [1/3]
| MFHelmholtzElectrostaticEBBCFactory::MFHelmholtzElectrostaticEBBCFactory |
( |
const int |
a_order, |
|
|
const int |
a_weight, |
|
|
const ElectrostaticEbBc & |
a_electrostaticBCs |
|
) |
| |
Full constructor.
- Parameters
-
| [in] | a_order | Stencil order for least squares reconstruction |
| [in] | a_weight | Equation weights for least squares reconstruction |
| [in] | a_electrostaticBCs | Electrostatic boundary conditions. |
- Note
- EBHelmholtzEBBC will use a stencil radius equal to the order – do not use a stencil order higher than your number of ghost cells.
◆ MFHelmholtzElectrostaticEBBCFactory() [2/3]
No copy construction.
- Parameters
-
◆ MFHelmholtzElectrostaticEBBCFactory() [3/3]
No move construction.
- Parameters
-
◆ create()
Factory method.
- Parameters
-
| [in] | a_iphase | Phase (0=gas and 1=solid). |
| [in] | a_jumpBC | Jump bc object. |
- Returns
- Return value
Implements MFHelmholtzEBBCFactory.
◆ setCoarseGridDropOrder()
| void MFHelmholtzElectrostaticEBBCFactory::setCoarseGridDropOrder |
( |
const bool |
a_dropOrder | ) |
|
|
virtual |
Signal that it should drop the stencil order if the cell is a coarsened cell.
- Parameters
-
◆ setDomainDropOrder()
| void MFHelmholtzElectrostaticEBBCFactory::setDomainDropOrder |
( |
const int |
a_domainSize | ) |
|
|
virtual |
Drop BC order if domain size is equal or below this.
- Parameters
-
| [in] | a_domainSize | Description |
◆ setOrder()
| void MFHelmholtzElectrostaticEBBCFactory::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.
◆ setWeight()
| void MFHelmholtzElectrostaticEBBCFactory::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: