|
chombo-discharge
|
Domain boundary conditions for PetscHelmholtzOp, taken from ElectrostaticDomainBc. More...
#include <CD_PetscHelmholtzElectrostaticDomainBC.H>


Public Member Functions | |
| PetscHelmholtzElectrostaticDomainBC ()=delete | |
| Disallowed default constructor. | |
| PetscHelmholtzElectrostaticDomainBC (const ElectrostaticDomainBc &a_electrostaticBCs) | |
| Constructor. Creates a Dirichlet or Neumann BC object on each domain side. | |
| PetscHelmholtzElectrostaticDomainBC (const PetscHelmholtzElectrostaticDomainBC &a_other)=delete | |
| Disallowed copy constructor. | |
| PetscHelmholtzElectrostaticDomainBC (const PetscHelmholtzElectrostaticDomainBC &&a_other)=delete | |
| Disallowed move constructor. | |
| ~PetscHelmholtzElectrostaticDomainBC () | |
| Destructor. | |
| PetscHelmholtzElectrostaticDomainBC & | operator= (const PetscHelmholtzElectrostaticDomainBC &a_other)=delete |
| Disallowed copy assignment operator. | |
| PetscHelmholtzElectrostaticDomainBC & | operator= (const PetscHelmholtzElectrostaticDomainBC &&a_other)=delete |
| Disallowed move assignment operator. | |
| void | define (const RefCountedPtr< PetscGrid > &a_petscGrid, const RealVect &a_probLo, const Vector< Real > &a_dx) override final |
| Define the BC objects on every domain side. | |
| 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 final |
| Get the face flux stencil from the BC object on the domain side. | |
| 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 final |
| Get the boundary data from the BC object on the domain side. | |
| 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. | |
Protected Attributes | |
| ElectrostaticDomainBc | m_electrostaticBCs |
| Electrostatic domain boundary conditions. | |
| std::map< ElectrostaticDomainBc::DomainSide, std::shared_ptr< PetscHelmholtzDomainBC > > | m_bcObjects |
| BC objects on each domain side, created in the constructor. | |
| 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. | |
Domain boundary conditions for PetscHelmholtzOp, taken from ElectrostaticDomainBc.
This mirrors EBHelmholtzElectrostaticDomainBC: it holds a Dirichlet or Neumann BC object on each domain side and routes the calls to it. The BC values are evaluated whenever getBoundaryData is called, so time-dependent values (FieldSolver captures its time by reference) enter through the right-hand side.
| PetscHelmholtzElectrostaticDomainBC::PetscHelmholtzElectrostaticDomainBC | ( | const ElectrostaticDomainBc & | a_electrostaticBCs | ) |
Constructor. Creates a Dirichlet or Neumann BC object on each domain side.
| [in] | a_electrostaticBCs | Electrostatic domain boundary conditions |
|
delete |
Disallowed copy constructor.
| [in] | a_other | Other BC |
|
delete |
Disallowed move constructor.
| [in] | a_other | Other BC |
|
finaloverridevirtual |
Define the BC objects on every domain side.
| [in] | a_petscGrid | PETSc grid |
| [in] | a_probLo | Lower-left corner of the computational domain |
| [in] | a_dx | Grid resolution on each level |
Reimplemented from PetscHelmholtzDomainBC.
|
finaloverridevirtual |
Get the boundary data from the BC object on the domain side.
| [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.
|
finaloverridevirtual |
Get the face flux stencil from the BC object on the domain side.
| [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.
|
delete |
Disallowed move assignment operator.
| [in] | a_other | Other BC |
|
delete |
Disallowed copy assignment operator.
| [in] | a_other | Other BC |