Go to the documentation of this file.
49 const word& sourceName,
50 const word& modelType,
61 typeName +
":V_" + regionName_,
69 scalarSigmaVsTPtr_(
nullptr),
70 tensorSigmaVsTPtr_(
nullptr),
73 anisotropicElectricalConductivity_(
false)
75 fieldNames_.setSize(1, TName_);
77 applied_.setSize(fieldNames_.size(),
false);
79 if (anisotropicElectricalConductivity_)
81 Info<<
" Using tensor electrical conductivity" <<
endl;
83 initialiseSigma(coeffs_, tensorSigmaVsTPtr_);
87 Info<<
" Using scalar electrical conductivity" <<
endl;
89 initialiseSigma(coeffs_, scalarSigmaVsTPtr_);
113 for (label i = 0; i < nIter_; ++i)
115 if (anisotropicElectricalConductivity_)
119 updateSigma(tensorSigmaVsTPtr_);
130 updateSigma(scalarSigmaVsTPtr_);
145 if (anisotropicElectricalConductivity_)
150 typeName +
":sigma_" + regionName_
153 eqn += (
h*
sigma & gradV) & gradV;
160 typeName +
":sigma_" + regionName_
163 eqn += (
h*
sigma*gradV) & gradV;
183 anisotropicElectricalConductivity_ =
184 dict.
get<
bool>(
"anisotropicElectricalConductivity");
int debug
Static debugging option.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
bool outputTime() const
Deprecated(2016-05) return true if this is a write time.
A special matrix type and solver, designed for finite area solutions of scalar equations....
A class for handling words, derived from Foam::string.
virtual void addSup(const areaScalarField &h, const areaScalarField &rho, faMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible momentum equation.
Intermediate abstract class for handling face-set options for the derived faOptions.
tmp< GeometricField< typename outerProduct< vector, Type >::type, faPatchField, areaMesh >> grad(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
addToRunTimeSelectionTable(option, contactHeatFluxSource, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
SolverPerformance< Type > solve(const dictionary &)
Solve returning the solution statistics.
const dimensionedScalar h
Planck constant.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
jouleHeatingSource(const word &sourceName, const word &modelType, const dictionary &dict, const fvPatch &patch)
Construct from explicit source name and mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &dict)
Read source dictionary.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &dict)
Read source dictionary.
#define DebugInfo
Report an information message using Foam::Info.
const std::string patch
OpenFOAM patch number as a std::string.
const GeometricField< Type, faPatchField, areaMesh > & psi() const
defineTypeNameAndDebug(faceSetOption, 0)
const Time & time() const
Return the top-level database.
dimensionedScalar sigma("sigma", dimMass/sqr(dimTime), transportProperties)
label timeIndex() const
Return current time index.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const