158#ifndef functionObjects_electricPotential_H
159#define functionObjects_electricPotential_H
168namespace functionObjects
175class electricPotential
177 public fvMeshFunctionObject
182 dictionary phasesDict_;
188 UPtrList<volScalarField> phases_;
191 PtrList<dimensionedScalar> sigmas_;
197 PtrList<dimensionedScalar> epsilonrs_;
210 bool writeDerivedFields_;
219 tmp<volScalarField> sigma()
const;
222 tmp<volScalarField> epsilonm()
const;
226 electricPotential(
const electricPotential&) =
delete;
229 void operator=(
const electricPotential&) =
delete;
245 const dictionary&
dict
256 virtual bool read(
const dictionary&
dict);
262 virtual bool write();
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const word & name() const noexcept
Return the name of this functionObject.
Computes the steady-state equation of charge conservation to obtain the electric potential by strictl...
virtual bool read(const dictionary &dict)
Read the function object data.
virtual ~electricPotential()=default
Destructor.
TypeName("electricPotential")
Runtime type information.
virtual bool execute()
Calculate the function object.
virtual bool write()
Write the function object output.
Specialization of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
List< word > wordList
A List of words.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.