chombo-discharge
Loading...
Searching...
No Matches
CD_PetscHelmholtzElectrostaticEBBC.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_PETSCHELMHOLTZELECTROSTATICEBBC_H
16#define CD_PETSCHELMHOLTZELECTROSTATICEBBC_H
17
18// Our includes
21#include <CD_NamespaceHeader.H>
22
30{
31public:
36
41 PetscHelmholtzElectrostaticEBBC(const ElectrostaticEbBc& a_electrostaticBCs) noexcept;
42
46 virtual ~PetscHelmholtzElectrostaticEBBC() noexcept;
47
56 virtual Real
57 getBoundaryData(const int a_phase,
58 const int a_level,
59 const DataIndex& a_din,
60 const VolIndex& a_vof) const noexcept override;
61
62protected:
67
73 virtual Real
74 getElectrodePotential(const RealVect& a_pos) const noexcept;
75};
76
77#include <CD_NamespaceFooter.H>
78
79#endif
80
81#endif
Data holder for holding the voltage at electrodes.
Declaration of a Dirichlet boundary condition on the EB faces for PetscHelmholtzOp.
Class which maps boundary condition types to a side and direction.
Definition CD_ElectrostaticEbBc.H:34
PetscHelmholtzDirichletEBBC() noexcept
Default constructor. Must subsequently set the value, the order and the weight, and call define.
Definition CD_PetscHelmholtzDirichletEBBC.cpp:23
virtual Real getBoundaryData(const int a_phase, const int a_level, const DataIndex &a_din, const VolIndex &a_vof) const noexcept override
Get the boundary data, i.e. the potential of the closest electrode.
Definition CD_PetscHelmholtzElectrostaticEBBC.cpp:44
virtual ~PetscHelmholtzElectrostaticEBBC() noexcept
Destructor.
Definition CD_PetscHelmholtzElectrostaticEBBC.cpp:35
PetscHelmholtzElectrostaticEBBC()=delete
Disallowed default constructor.
virtual Real getElectrodePotential(const RealVect &a_pos) const noexcept
Get the potential of the electrode closest to a position.
Definition CD_PetscHelmholtzElectrostaticEBBC.cpp:60
ElectrostaticEbBc m_electrostaticBCs
Electrode boundary conditions.
Definition CD_PetscHelmholtzElectrostaticEBBC.H:66