Base class for passing Neumann MF boundary conditions into MFHelmholtzOp.
More...
#include <CD_MFHelmholtzNeumannEBBC.H>
|
| MFHelmholtzNeumannEBBC (const int a_phase, const RefCountedPtr< MFHelmholtzJumpBC > &a_jumpBC) |
| Full constructor.
|
|
virtual | ~MFHelmholtzNeumannEBBC () |
| Destructor.
|
|
void | setDphiDn (const Real a_DphiDn) |
| Set value of dphi/dn on the MF. More...
|
|
void | setDphiDn (const std::function< Real(const RealVect &a_pos)> &a_DphiDn) |
| Set spatially dependent value of dphi/dn on the MF. More...
|
|
void | setBxDphiDn (const Real a_BxDphiDn) |
| Set the value of B*dphi/dn on the MF. More...
|
|
void | setBxDphiDn (const std::function< Real(const RealVect &a_pos)> &a_BxDphiDn) |
| Set the spatially dependent value of B*dphi/dn on the MF. More...
|
|
| MFHelmholtzEBBC ()=delete |
| Disallowed weak constructor. Factory must call the other version.
|
|
| MFHelmholtzEBBC (const MFHelmholtzEBBC &a_other)=delete |
| Disallowed copy constructor. Factory must call the other version.
|
|
| MFHelmholtzEBBC (const int a_phase, const RefCountedPtr< MFHelmholtzJumpBC > &a_jumpBC) |
| Full constructor.
|
|
virtual | ~MFHelmholtzEBBC () |
| Default constructor.
|
|
virtual void | applyEBFlux (VoFIterator &a_vofit, EBCellFAB &a_Lphi, const EBCellFAB &a_phi, const BaseIVFAB< Real > &a_Bcoef, const DataIndex &a_dit, const Real &a_beta, const bool &a_homogeneousPhysBC) const override |
| Apply the EB flux. This is the version that is called by EBHelmholtzOp. More...
|
|
| EBHelmholtzEBBC () |
| Default constructor.
|
|
virtual | ~EBHelmholtzEBBC () |
| Destructor.
|
|
| EBHelmholtzEBBC (const EBHelmholtzEBBC &a_other)=delete |
| Disallowed – don't see why you would need it.
|
|
EBHelmholtzEBBC & | operator= (const EBHelmholtzEBBC &a_other)=delete |
| Disallowed - don't see why you would need it.
|
|
void | define (const Location::Cell a_dataLocation, const EBLevelGrid &a_eblg, const RealVect &a_probLo, const Real &a_dx, const int a_ghostCF) |
| Define function that is called by EBHelmholtzOp. More...
|
|
const LayoutData< BaseIVFAB< VoFStencil > > & | getGradPhiStencils () const |
| Get the stencil for computing the finite-volume approximation to kappa*Div(F). More...
|
|
|
virtual void | defineSinglePhase () override |
| User define function.
|
|
virtual void | applyEBFluxSinglePhase (VoFIterator &a_singlePhaseVofs, EBCellFAB &a_Lphi, const EBCellFAB &a_phi, const BaseIVFAB< Real > &a_Bcoef, const DataIndex &a_dit, const Real &a_beta, const bool &a_homogeneousPhysBC) const override |
| Apply flux single phase. More...
|
|
void | define () override final |
| User define function.
|
|
void | defineMultiPhase () |
| Define stuff for multi-phase.
|
|
void | applyEBFluxMultiPhase (VoFIterator &a_multiPhaseVofs, EBCellFAB &a_Lphi, const EBCellFAB &a_phi, const BaseIVFAB< Real > &a_Bcoef, const DataIndex &a_dit, const Real &a_beta, const bool &a_homogeneousPhysBC) const |
| Apply flux in multiphase cells. More...
|
|
virtual bool | getLeastSquaresBoundaryGradStencil (std::pair< Real, VoFStencil > &a_stencil, const VolIndex &a_vof, const VofUtils::Neighborhood a_neighborhood, const DataIndex &a_dit, const int a_order, const int a_weight) const |
| Get stencil with specified order. More...
|
|
bool | isStencilValidCF (const VoFStencil &a_stencil, const DataIndex &a_dit) const |
| Check if stencil is valid. More...
|
|
RealVect | getBoundaryPosition (const VolIndex &a_vof, const DataIndex &a_dit) const |
| Returns physical position at the boundary.
|
|
Real | applyStencil (const VoFStencil &a_stencil, const EBCellFAB &a_phi) const |
| Apply stencil to data holder and return result.
|
|
|
constexpr static int | m_comp = 0 |
| Component that everything is defined for. Always have m_comp = 0.
|
|
constexpr static int | m_nComp = 1 |
| Number of components. Always have m_nComp = 1.
|
|
Base class for passing Neumann MF boundary conditions into MFHelmholtzOp.
This allows the user to specify dphi/dn on the boundary or B*dphi/dn, either using a constant value or with a function.
◆ applyEBFluxSinglePhase()
void MFHelmholtzNeumannEBBC::applyEBFluxSinglePhase |
( |
VoFIterator & |
a_singlePhaseVofs, |
|
|
EBCellFAB & |
a_Lphi, |
|
|
const EBCellFAB & |
a_phi, |
|
|
const BaseIVFAB< Real > & |
a_Bcoef, |
|
|
const DataIndex & |
a_dit, |
|
|
const Real & |
a_beta, |
|
|
const bool & |
a_homogeneousPhysBC |
|
) |
| const |
|
overrideprotectedvirtual |
Apply flux single phase.
- Parameters
-
[in,out] | a_singlePhaseVofs | Iterator for single-phase cut-cells |
[in,out] | a_Lphi | Operator kappa*L(phi) |
[in] | a_phi | Phi, cell-centered. |
[in] | a_Bcoef | EB-centered B-coefficient |
[in] | a_dit | Data index
|
[in] | a_beta | Beta. Passed in from operator. |
[in] | a_homogeneousPhysBC | Homogeneous BC or not. |
Implements MFHelmholtzEBBC.
◆ setBxDphiDn() [1/2]
void MFHelmholtzNeumannEBBC::setBxDphiDn |
( |
const Real |
a_BxDphiDn | ) |
|
Set the value of B*dphi/dn on the MF.
- Parameters
-
[in] | a_BxDphiDn | Value of B*dphi/dn. |
- Note
- A positive values gives a flux INTO the domain.
◆ setBxDphiDn() [2/2]
void MFHelmholtzNeumannEBBC::setBxDphiDn |
( |
const std::function< Real(const RealVect &a_pos)> & |
a_BxDphiDn | ) |
|
Set the spatially dependent value of B*dphi/dn on the MF.
- Parameters
-
[in] | a_BxDphiDn | Value of B*dphi/dn. |
- Note
- A positive values gives a flux INTO the domain.
◆ setDphiDn() [1/2]
void MFHelmholtzNeumannEBBC::setDphiDn |
( |
const Real |
a_DphiDn | ) |
|
Set value of dphi/dn on the MF.
- Parameters
-
[in] | a_DphiDn | Value of dphi/dn. |
- Note
- A positive values gives a flux INTO the domain.
◆ setDphiDn() [2/2]
void MFHelmholtzNeumannEBBC::setDphiDn |
( |
const std::function< Real(const RealVect &a_pos)> & |
a_DphiDn | ) |
|
Set spatially dependent value of dphi/dn on the MF.
- Parameters
-
[in] | a_DphiDn | Value of dphi/dn. |
- Note
- A positive values gives a flux INTO the domain.
The documentation for this class was generated from the following files: