|
chombo-discharge
|
Dirichlet domain boundary condition for PetscHelmholtzOp. More...
#include <CD_PetscHelmholtzDirichletDomainBC.H>


Public Member Functions | |
| PetscHelmholtzDirichletDomainBC () | |
| Default constructor. Must subsequently call setValue. | |
| PetscHelmholtzDirichletDomainBC (const Real a_value) | |
| Constructor with a constant value. | |
| PetscHelmholtzDirichletDomainBC (const std::function< Real(const RealVect &a_pos)> &a_value) | |
| Constructor with a spatially varying value. | |
| virtual | ~PetscHelmholtzDirichletDomainBC () |
| Destructor. | |
| void | setValue (const Real a_value) |
| Set a constant value on the boundary. | |
| void | setValue (const std::function< Real(const RealVect &a_pos)> &a_value) |
| Set a spatially varying value on the boundary. | |
| void | getFaceFluxStencil (Real &a_boundaryWeight, VoFStencil &a_stencilCoar, VoFStencil &a_stencil, VoFStencil &a_stencilFine, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const int a_dir, const Side::LoHiSide a_side) const override |
| Get the stencil of the face flux through a domain face. | |
| Real | getBoundaryData (const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const int a_dir, const Side::LoHiSide a_side) const override |
| Get the boundary data, i.e. phi on the boundary. | |
| Public Member Functions inherited from PetscHelmholtzDomainBC | |
| PetscHelmholtzDomainBC () | |
| Default constructor. Must subsequently call define. | |
| virtual | ~PetscHelmholtzDomainBC () |
| Destructor. | |
| PetscHelmholtzDomainBC (const PetscHelmholtzDomainBC &a_other)=delete | |
| Disallowed copy constructor. | |
| PetscHelmholtzDomainBC (const PetscHelmholtzDomainBC &&a_other)=delete | |
| Disallowed move constructor. | |
| PetscHelmholtzDomainBC & | operator= (const PetscHelmholtzDomainBC &a_other)=delete |
| Disallowed copy assignment operator. | |
| PetscHelmholtzDomainBC & | operator= (const PetscHelmholtzDomainBC &&a_other)=delete |
| Disallowed move assignment operator. | |
| virtual void | define (const RefCountedPtr< PetscGrid > &a_petscGrid, const RealVect &a_probLo, const Vector< Real > &a_dx) |
| Define the BC over the AMR hierarchy. | |
Protected Attributes | |
| bool | m_useConstant |
| Use a constant value or not. | |
| bool | m_useFunction |
| Use a spatially varying value or not. | |
| Real | m_constantValue |
| Constant value. | |
| std::function< Real(const RealVect &a_pos)> | m_functionValue |
| Spatially varying value. | |
| Protected Attributes inherited from PetscHelmholtzDomainBC | |
| bool | m_isDefined |
| Is defined or not. | |
| RefCountedPtr< PetscGrid > | m_petscGrid |
| PETSc grid. | |
| RealVect | m_probLo |
| Lower-left corner of the computational domain. | |
| Vector< Real > | m_dx |
| Grid resolution on each level. | |
Additional Inherited Members | |
| Protected Member Functions inherited from PetscHelmholtzDomainBC | |
| RealVect | getBoundaryPosition (const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const int a_dir, const Side::LoHiSide a_side) const noexcept |
| Get the physical position of the centroid of a domain face. | |
Dirichlet domain boundary condition for PetscHelmholtzOp.
The face derivative is the one-sided difference between the cell center and the face, (phi_B - phi)/(dx/2) on the high side and (phi - phi_B)/(dx/2) on the low side, as in EBHelmholtzDirichletDomainBC.
| PetscHelmholtzDirichletDomainBC::PetscHelmholtzDirichletDomainBC | ( | const Real | a_value | ) |
Constructor with a constant value.
| [in] | a_value | Value of phi on the boundary |
| PetscHelmholtzDirichletDomainBC::PetscHelmholtzDirichletDomainBC | ( | const std::function< Real(const RealVect &a_pos)> & | a_value | ) |
Constructor with a spatially varying value.
| [in] | a_value | Value of phi on the boundary |
|
overridevirtual |
Get the boundary data, i.e. phi on the boundary.
| [in] | a_phase | Phase |
| [in] | a_level | Grid level |
| [in] | a_din | Grid index on the level |
| [in] | a_vof | Cell adjacent to the domain face |
| [in] | a_dir | Coordinate direction of the face |
| [in] | a_side | Domain side of the face |
Implements PetscHelmholtzDomainBC.
|
overridevirtual |
Get the stencil of the face flux through a domain face.
| [out] | a_boundaryWeight | Weight w_B of the boundary data in the flux, see getBoundaryData |
| [out] | a_stencilCoar | Stencil over cells on level a_level - 1 |
| [out] | a_stencil | Stencil over cells on level a_level |
| [out] | a_stencilFine | Stencil over cells on level a_level + 1 |
| [in] | a_phase | Phase |
| [in] | a_level | Grid level |
| [in] | a_din | Grid index on the level |
| [in] | a_vof | Cell adjacent to the domain face |
| [in] | a_dir | Coordinate direction of the face |
| [in] | a_side | Domain side of the face |
Implements PetscHelmholtzDomainBC.
| void PetscHelmholtzDirichletDomainBC::setValue | ( | const Real | a_value | ) |
Set a constant value on the boundary.
| [in] | a_value | Value of phi on the boundary |
| void PetscHelmholtzDirichletDomainBC::setValue | ( | const std::function< Real(const RealVect &a_pos)> & | a_value | ) |
Set a spatially varying value on the boundary.
| [in] | a_value | Value of phi on the boundary |