chombo-discharge
Loading...
Searching...
No Matches
CD_PetscHelmholtzEBBC.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_PETSCHELMHOLTZEBBC_H
16#define CD_PETSCHELMHOLTZEBBC_H
17
18// Our includes
20#include <CD_NamespaceHeader.H>
21
35{
36public:
40 PetscHelmholtzEBBC() noexcept;
41
45 virtual ~PetscHelmholtzEBBC() noexcept;
46
56 virtual void
57 getEBFluxStencil(Real& a_boundaryWeight,
58 PetscStencil& a_stencil,
59 const int a_phase,
60 const int a_level,
61 const DataIndex& a_din,
62 const VolIndex& a_vof) const noexcept = 0;
63
74 virtual Real
75 getBoundaryData(const int a_phase,
76 const int a_level,
77 const DataIndex& a_din,
78 const VolIndex& a_vof) const noexcept = 0;
79};
80
81#include <CD_NamespaceFooter.H>
82
83#endif
84
85#endif
Declaration of the shared EB face stencils for the EB and jump boundary conditions of PetscHelmholtzO...
PetscHelmholtzEBBC() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzEBBC.cpp:22
virtual void getEBFluxStencil(Real &a_boundaryWeight, PetscStencil &a_stencil, const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept=0
Get the flux through the EB face of a cut cell, without the b-coefficient and the face area.
virtual Real getBoundaryData(const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept=0
Get the boundary data g at the EB face of a cut cell.
virtual ~PetscHelmholtzEBBC() noexcept
Destructor.
Definition CD_PetscHelmholtzEBBC.cpp:27
PetscHelmholtzEBStencils() noexcept
Default constructor. Must subsequently set the order and the weight, and call define.
Definition CD_PetscHelmholtzEBStencils.cpp:28
A linear stencil over global PETSc rows, i.e. a list of (row, weight) pairs.
Definition CD_PetscStencil.H:43