chombo-discharge
Loading...
Searching...
No Matches
CD_PetscHelmholtzNaturalJumpBC.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
12
13#ifdef CH_USE_PETSC
14
15#ifndef CD_PETSCHELMHOLTZNATURALJUMPBC_H
16#define CD_PETSCHELMHOLTZNATURALJUMPBC_H
17
18// Our includes
20#include <CD_NamespaceHeader.H>
21
29{
30public:
35
39 virtual ~PetscHelmholtzNaturalJumpBC() noexcept;
40
52 virtual void
53 getInterfaceFluxStencil(Real& a_dataWeight,
54 PetscStencil& a_stencil,
55 const int a_phase,
56 const int a_level,
57 const DataIndex& a_din,
58 const IntVect& a_iv,
59 const Real a_bCoefPhase0,
60 const Real a_bCoefPhase1) const noexcept override;
61
70 virtual Real
71 getJumpData(const int a_level,
72 const DataIndex& a_din,
73 const IntVect& a_iv,
74 const EBAMRIVData& a_sigma) const noexcept override;
75
81 virtual void
82 updateJumpData(const Vec& a_phi, const MFAMRIVData& a_bCoefIrreg) noexcept override;
83};
84
85#include <CD_NamespaceFooter.H>
86
87#endif
88
89#endif
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