15#ifndef CD_PETSCHELMHOLTZDOMAINBC_H
16#define CD_PETSCHELMHOLTZDOMAINBC_H
19#include <EBLevelGrid.H>
23#include <RefCountedPtr.H>
28#include <CD_NamespaceHeader.H>
99 define(
const RefCountedPtr<PetscGrid>& a_petscGrid,
const RealVect& a_probLo,
const Vector<Real>& a_dx);
127 VoFStencil& a_stencilCoar,
128 VoFStencil& a_stencil,
129 VoFStencil& a_stencilFine,
132 const DataIndex& a_din,
133 const VolIndex& a_vof,
135 const Side::LoHiSide a_side)
const = 0;
152 const DataIndex& a_din,
153 const VolIndex& a_vof,
155 const Side::LoHiSide a_side)
const = 0;
196 const DataIndex& a_din,
197 const VolIndex& a_vof,
199 const Side::LoHiSide a_side)
const noexcept;
202#include <CD_NamespaceFooter.H>
File containing declaration of PetscGrid.
PetscHelmholtzDomainBC(const PetscHelmholtzDomainBC &&a_other)=delete
Disallowed move constructor.
PetscHelmholtzDomainBC & operator=(const PetscHelmholtzDomainBC &a_other)=delete
Disallowed copy assignment operator.
bool m_isDefined
Is defined or not.
Definition CD_PetscHelmholtzDomainBC.H:161
virtual void define(const RefCountedPtr< PetscGrid > &a_petscGrid, const RealVect &a_probLo, const Vector< Real > &a_dx)
Define the BC over the AMR hierarchy.
Definition CD_PetscHelmholtzDomainBC.cpp:34
Vector< Real > m_dx
Grid resolution on each level.
Definition CD_PetscHelmholtzDomainBC.H:179
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.
Definition CD_PetscHelmholtzDomainBC.cpp:51
PetscHelmholtzDomainBC & operator=(const PetscHelmholtzDomainBC &&a_other)=delete
Disallowed move assignment operator.
PetscHelmholtzDomainBC(const PetscHelmholtzDomainBC &a_other)=delete
Disallowed copy constructor.
virtual ~PetscHelmholtzDomainBC()
Destructor.
Definition CD_PetscHelmholtzDomainBC.cpp:28
RefCountedPtr< PetscGrid > m_petscGrid
PETSc grid.
Definition CD_PetscHelmholtzDomainBC.H:169
virtual 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 =0
Get the stencil of the face flux through a domain face, and the weight of the boundary data.
PetscHelmholtzDomainBC()
Default constructor. Must subsequently call define.
Definition CD_PetscHelmholtzDomainBC.cpp:23
virtual 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 =0
Get the boundary data g at a domain face.
RealVect m_probLo
Lower-left corner of the computational domain.
Definition CD_PetscHelmholtzDomainBC.H:174