41 solidEquilibriumEnergySource,
50 void Foam::fv::solidEquilibriumEnergySource::readCoeffs()
52 phaseName_ = coeffs().lookupOrDefault<word>(
"phase",
word::null);
54 solidPhaseName_ = coeffs().lookup<word>(
"solidPhase");
59 Foam::fv::solidEquilibriumEnergySource::solidAlpha()
const 63 if (!
mesh().foundObject<volScalarField>(alphaName))
71 mesh().time().constant(),
87 Foam::fv::solidEquilibriumEnergySource::solidThermo()
const 89 const word thermoName =
92 if (!
mesh().foundObject<Foam::solidThermo>(thermoName))
109 const word& modelType,
114 fvModel(name, modelType, dict, mesh),
148 const word& fieldName
162 "laplacian(" + alphahe.
name() +
"," + eqn.
psi().
name() +
")" 172 const word& fieldName
186 "laplacian(" + alphahe.
name() +
"," + eqn.
psi().
name() +
")" defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
const word & name() const
Return name.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool read(const dictionary &dict)
Read dictionary.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
static autoPtr< solidThermo > New(const fvMesh &, const word &phaseName=word::null)
Standard selection based on fvMesh.
virtual bool read(const dictionary &dict)
Read source dictionary.
Calculate the matrix for the laplacian of the field.
virtual ~solidEquilibriumEnergySource()
Destructor.
virtual wordList addSupFields() const
Return the list of fields for which the fvModel adds source term.
Finite volume model abstract base class.
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual const IOdictionary & properties() const =0
Return the dictionary.
bool read(const char *, int32_t &)
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
Calculate the matrix for the first temporal derivative.
static const word null
An empty word.
A special matrix type and solver, designed for finite volume solutions of scalar equations. Face addressing is used to make all matrix assembly and solution loops vectorise.
void store()
Transfer ownership of this object to its registry.
static const word dictName
Name of the thermophysical properties dictionary.
Base-class for solid thermodynamic properties.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Mesh data needed to do the Finite Volume discretisation.
virtual void addSup(const volScalarField &, fvMatrix< scalar > &, const word &fieldName) const
Explicit and implicit sources for compressible equations.
solidEquilibriumEnergySource(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.