15#ifndef CD_PETSCHELMHOLTZELECTROSTATICEBBC_H
16#define CD_PETSCHELMHOLTZELECTROSTATICEBBC_H
21#include <CD_NamespaceHeader.H>
59 const DataIndex& a_din,
60 const VolIndex& a_vof) const noexcept override;
77#include <CD_NamespaceFooter.H>
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