chombo-discharge
Loading...
Searching...
No Matches
CD_PetscHelmholtzJumpBC.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_PETSCHELMHOLTZJUMPBC_H
16#define CD_PETSCHELMHOLTZJUMPBC_H
17
18// Petsc includes
19#include <petsc.h>
20
21// Our includes
23#include <CD_EBAMRData.H>
24#include <CD_NamespaceHeader.H>
25
41{
42public:
46 PetscHelmholtzJumpBC() noexcept;
47
51 virtual ~PetscHelmholtzJumpBC() noexcept;
52
64 virtual void
65 getInterfaceFluxStencil(Real& a_dataWeight,
66 PetscStencil& a_stencil,
67 const int a_phase,
68 const int a_level,
69 const DataIndex& a_din,
70 const IntVect& a_iv,
71 const Real a_bCoefPhase0,
72 const Real a_bCoefPhase1) const noexcept = 0;
73
82 virtual Real
83 getJumpData(const int a_level,
84 const DataIndex& a_din,
85 const IntVect& a_iv,
86 const EBAMRIVData& a_sigma) const noexcept = 0;
87
96 virtual void
97 updateJumpData(const Vec& a_phi, const MFAMRIVData& a_bCoefIrreg) noexcept = 0;
98};
99
100#include <CD_NamespaceFooter.H>
101
102#endif
103
104#endif
Class for holding data across EBAMR hierarchies.
Declaration of the shared EB face stencils for the EB and jump boundary conditions of PetscHelmholtzO...
PetscHelmholtzEBStencils() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzEBStencils.cpp:28
virtual Real getJumpData(const int a_level, const DataIndex &a_din, const IntVect &a_iv, const EBAMRIVData &a_sigma) const noexcept=0
Get the jump data g at an interface cell.
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=0
Get the flux into one side of an interface cell, b_k * D_k, as a linear form.
PetscHelmholtzJumpBC() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzJumpBC.cpp:22
virtual void updateJumpData(const Vec &a_phi, const MFAMRIVData &a_bCoefIrreg) noexcept=0
Update the jump data from the solution, after the solve.
virtual ~PetscHelmholtzJumpBC() noexcept
Destructor.
Definition CD_PetscHelmholtzJumpBC.cpp:27
A linear stencil over global PETSc rows, i.e. a list of (row, weight) pairs.
Definition CD_PetscStencil.H:43