15#ifndef CD_PETSCHELMHOLTZNATURALJUMPBC_H
16#define CD_PETSCHELMHOLTZNATURALJUMPBC_H
20#include <CD_NamespaceHeader.H>
57 const DataIndex& a_din,
59 const Real a_bCoefPhase0,
60 const Real a_bCoefPhase1)
const noexcept override;
72 const DataIndex& a_din,
74 const EBAMRIVData& a_sigma)
const noexcept override;
82 updateJumpData(
const Vec& a_phi,
const MFAMRIVData& a_bCoefIrreg)
noexcept override;
85#include <CD_NamespaceFooter.H>
Declaration of a base class for the interface (jump) conditions of PetscHelmholtzOp.
PetscHelmholtzJumpBC() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzJumpBC.cpp:22
virtual void getInterfaceFluxStencil(Real &a_dataWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const IntVect &a_iv, const Real a_bCoefPhase0, const Real a_bCoefPhase1) const noexcept override
Get the flux into one side of an interface cell, b_k * D_k, as a linear form.
Definition CD_PetscHelmholtzNaturalJumpBC.cpp:36
virtual Real getJumpData(const int a_level, const DataIndex &a_din, const IntVect &a_iv, const EBAMRIVData &a_sigma) const noexcept override
Get the jump data, i.e. the surface charge density.
Definition CD_PetscHelmholtzNaturalJumpBC.cpp:93
PetscHelmholtzNaturalJumpBC() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzNaturalJumpBC.cpp:22
virtual ~PetscHelmholtzNaturalJumpBC() noexcept
Destructor.
Definition CD_PetscHelmholtzNaturalJumpBC.cpp:27
virtual void updateJumpData(const Vec &a_phi, const MFAMRIVData &a_bCoefIrreg) noexcept override
Does nothing: the surface charge density is an input of this closure, and nothing is kept.
Definition CD_PetscHelmholtzNaturalJumpBC.cpp:108
A linear stencil over global PETSc rows, i.e. a list of (row, weight) pairs.
Definition CD_PetscStencil.H:43