42 fixedTemperatureConstraint,
48 const char* NamedEnum<fv::fixedTemperatureConstraint::temperatureMode, 2>::
62 void Foam::fv::fixedTemperatureConstraint::readCoeffs()
64 mode_ = modeNames_.read(coeffs().
lookup(
"mode"));
68 case temperatureMode::uniform:
78 TName_ = coeffs().lookupOrDefault<word>(
"T",
"T");
83 phaseName_ = coeffs().lookupOrDefault<word>(
"phase",
word::null);
92 const word& modelType,
99 mode_(temperatureMode::uniform),
125 const word& fieldName
138 case temperatureMode::uniform:
140 const scalar t =
mesh().time().value();
161 set_.updateMesh(mpm);
virtual bool read(const dictionary &dict)
Read dictionary.
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...
static const NamedEnum< temperatureMode, 2 > modeNames_
String representation of mode enums.
fixedTemperatureConstraint(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void updateMesh(const mapPolyMesh &)
Update for mesh changes.
virtual bool constrain(fvMatrix< scalar > &eqn, const word &fieldName) const
Constrain energy equation to fix the temperature.
Initialise the NamedEnum HashTable from the static list of names.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
stressControl lookup("compactNormalStress") >> compactNormalStress
A class for handling words, derived from string.
static word groupName(Name name, const word &group)
void setValues(const labelUList &cells, const UList< Type > &values)
Set solution in given cells to the specified values.
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.
virtual wordList constrainedFields() const
Return the list of fields constrained by the fvConstraint.
static const word dictName
Name of the thermophysical properties dictionary.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
Mesh data needed to do the Finite Volume discretisation.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
virtual bool read(const dictionary &dict)
Read source dictionary.
Finite volume options abstract base class.
static autoPtr< Function1< scalar > > New(const word &name, const dictionary &dict)
Selector.