|
|
| PetscHelmholtzNeumannEBBC () noexcept |
| | Default constructor. Must subsequently set the normal derivative, and call define.
|
|
virtual | ~PetscHelmholtzNeumannEBBC () noexcept |
| | Destructor.
|
| virtual void | setDphiDn (const Real a_DphiDn) noexcept |
| | Set a constant normal derivative on the EB.
|
| virtual void | setDphiDn (const std::function< Real(const RealVect &a_pos)> &a_DphiDn) noexcept |
| | Set a spatially varying normal derivative on the EB.
|
| virtual void | define (const RefCountedPtr< PetscGrid > &a_petscGrid, const Vector< MFMultigridInterpolator > &a_interpolators, const RealVect &a_probLo, const Vector< Real > &a_dx) noexcept override |
| | Define over the AMR hierarchy.
|
| virtual void | getEBFluxStencil (Real &a_boundaryWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept override |
| | Get the flux through the EB face of a cut cell. The stencil is empty and w_B = 1.
|
| virtual Real | getBoundaryData (const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept override |
| | Get the boundary data, i.e. dphi/dn on the EB.
|
|
| PetscHelmholtzEBBC () noexcept |
| | Default constructor. Must subsequently set the order and the weight, and call define.
|
|
virtual | ~PetscHelmholtzEBBC () noexcept |
| | Destructor.
|
|
| PetscHelmholtzEBStencils () noexcept |
| | Default constructor. Must subsequently set the order and the weight, and call define.
|
|
virtual | ~PetscHelmholtzEBStencils () noexcept |
| | Destructor.
|
| | PetscHelmholtzEBStencils (const PetscHelmholtzEBStencils &a_other)=delete |
| | Disallowed copy constructor.
|
| | PetscHelmholtzEBStencils (const PetscHelmholtzEBStencils &&a_other)=delete |
| | Disallowed move constructor.
|
| PetscHelmholtzEBStencils & | operator= (const PetscHelmholtzEBStencils &a_other)=delete |
| | Disallowed copy assignment operator.
|
| PetscHelmholtzEBStencils & | operator= (const PetscHelmholtzEBStencils &&a_other)=delete |
| | Disallowed move assignment operator.
|
| virtual long long | getNumCellsWithoutStencil () const noexcept |
| | Get the number of cut cells, summed over phases, levels and ranks, that have an EB face but no stencil.
|
| virtual void | setOrder (const int a_order) noexcept |
| | Set the order of the stencils.
|
| virtual void | setWeight (const int a_weight) noexcept |
| | Set the least-squares weighting.
|
| virtual void | clear () noexcept |
| | Release the stored stencils, the grids and the interpolators, so that the object can be defined again, e.g. after a regrid.
|
|
|
bool | m_useConstant |
| | Use the constant normal derivative or not.
|
|
bool | m_useFunction |
| | Use the spatially varying normal derivative or not.
|
|
Real | m_constantDphiDn |
| | Constant normal derivative on the EB.
|
|
std::function< Real(const RealVect &a_pos)> | m_functionDphiDn |
| | Spatially varying normal derivative on the EB.
|
|
bool | m_isDefined |
| | Is defined or not.
|
|
long long | m_numCellsWithoutStencil |
| | Number of cut cells, summed over phases, levels and ranks, that have an EB face but no stencil.
|
|
bool | m_verbose |
| | Verbose output or not.
|
|
int | m_order |
| | Highest order of the stencils, or -1 if not set.
|
|
int | m_weight |
| | Least-squares weighting, or -1 if not set.
|
|
RefCountedPtr< PetscGrid > | m_petscGrid |
| | PETSc grid.
|
|
Vector< MFMultigridInterpolator > | m_interpolators |
| | Coarse-fine ghost cell interpolators of both phases, on each level.
|
|
RealVect | m_probLo |
| | Lower-left corner of the computational domain.
|
|
Vector< Real > | m_dx |
| | Grid resolution on each level.
|
| Vector< RefCountedPtr< LayoutData< BaseIVFAB< PetscStencil > > > > | m_derivStencils [2] |
| | The stencils of the one-sided normal derivatives, over PETSc rows.
|
| Vector< RefCountedPtr< LayoutData< BaseIVFAB< Real > > > > | m_derivWeights [2] |
| | The weights w_B of the boundary value in the one-sided normal derivatives.
|
|
| virtual void | getNormalDerivativeStencil (Real &a_boundaryWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept |
| | Get the stored one-sided normal derivative at the EB face of a cut cell.
|
| virtual void | computeNormalDerivativeStencil (Real &a_boundaryWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept |
| | Compute the one-sided normal derivative at the EB face of a cut cell.
|
| virtual bool | getLeastSquaresStencil (Real &a_boundaryWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof, const VofUtils::Neighborhood a_neighborhood, const int a_order) const noexcept |
| | Try to compute the one-sided normal derivative at the EB face of a cut cell, for one neighbourhood and one order.
|
| virtual RealVect | getBoundaryPosition (const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept |
| | Get the physical position of the centroid of the EB face of a cut cell.
|
Neumann boundary condition dphi/dn = g on the EB faces, for PetscHelmholtzOp.
n points out of the cell, into the EB, as in EBHelmholtzNeumannEBBC. The flux is the given normal derivative, so the stencil is empty and w_B = 1.
| void PetscHelmholtzNeumannEBBC::define |
( |
const RefCountedPtr< PetscGrid > & | a_petscGrid, |
|
|
const Vector< MFMultigridInterpolator > & | a_interpolators, |
|
|
const RealVect & | a_probLo, |
|
|
const Vector< Real > & | a_dx ) |
|
overridevirtualnoexcept |
Define over the AMR hierarchy.
The flux is the given normal derivative, so the one-sided normal derivative stencils are not computed; only the grids are kept, for getBoundaryPosition. For the same reason, getNumCellsWithoutStencil returns 0.
- Parameters
-
| [in] | a_petscGrid | PETSc grid |
| [in] | a_interpolators | Coarse-fine ghost cell interpolators of both phases, on each level. Not used. |
| [in] | a_probLo | Lower-left corner of the computational domain |
| [in] | a_dx | Grid resolution on each level |
Reimplemented from PetscHelmholtzEBStencils.