15#ifndef CD_PETSCHELMHOLTZSATURATIONCHARGEJUMPBC_H
16#define CD_PETSCHELMHOLTZSATURATIONCHARGEJUMPBC_H
21#include <CD_NamespaceHeader.H>
53 clear() noexcept override;
71 const DataIndex& a_din,
73 const Real a_bCoefPhase0,
74 const Real a_bCoefPhase1) const noexcept override;
86 const DataIndex& a_din,
88 const EBAMRIVData& a_sigma) const noexcept override;
96 updateJumpData(const Vec& a_phi, const MFAMRIVData& a_bCoefIrreg) noexcept override;
104 virtual const EBAMRIVData&
120#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
phase::which_phase m_phase
Phase on whose side the normal derivative is zero.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.H:111
virtual void updateJumpData(const Vec &a_phi, const MFAMRIVData &a_bCoefIrreg) noexcept override
Compute the surface charge density from the solution, sigma = b_0 * D_0 + b_1 * D_1,...
Definition CD_PetscHelmholtzSaturationChargeJumpBC.cpp:127
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_PetscHelmholtzSaturationChargeJumpBC.cpp:55
EBAMRIVData m_sigma
The surface charge density computed from the solution by updateJumpData.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.H:117
virtual ~PetscHelmholtzSaturationChargeJumpBC() noexcept
Destructor.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.cpp:33
PetscHelmholtzSaturationChargeJumpBC()=delete
Disallowed default constructor.
virtual const EBAMRIVData & getSigma() const noexcept
Get the surface charge density computed by the last call to updateJumpData.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.cpp:303
virtual void clear() noexcept override
Release the computed surface charge density, the stored stencils and the grids.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.cpp:42
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, which is zero: this closure has none.
Definition CD_PetscHelmholtzSaturationChargeJumpBC.cpp:113
A linear stencil over global PETSc rows, i.e. a list of (row, weight) pairs.
Definition CD_PetscStencil.H:43
Phase names namespace.
Definition CD_MultiFluidIndexSpace.H:28
which_phase
Enumeration of supported phases.
Definition CD_MultiFluidIndexSpace.H:38