50 fixedTemperatureConstraint,
51 "fixedTemperatureConstraint"
61 {
"uniform",
"lookup"};
70 void Foam::fv::fixedTemperature::readCoeffs()
83 mesh().time().userUnits(),
104 mesh().time().userUnits(),
108 : autoPtr<Function1<scalar>>();
117 const word& modelType,
123 set_(mesh, coeffs()),
127 phaseName_(
word::null)
150 const word& fieldName
161 const scalar t = mesh().time().value();
165 case temperatureMode::uniform:
170 if (fraction_.valid())
186 case temperatureMode::lookup:
193 if (fraction_.valid())
224 set_.topoChange(map);
236 set_.distribute(map);
Macros for easy insertion into run-time selection tables.
static autoPtr< Function1< scalar > > New(const word &name, const Function1s::unitConversions &units, const dictionary &dict)
Select from dictionary.
Generic GeometricField class.
static word groupName(Name name, const word &group)
Initialise the NamedEnum HashTable from the static list of names.
Enum read(Istream &) const
Read a word from Istream and return the corresponding.
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e....
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T, if not found return the given default.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Finite volume options abstract base class.
const dictionary & coeffs() const
Return dictionary.
virtual bool read(const dictionary &dict)
Read source dictionary.
const fvMesh & mesh() const
Return const access to the mesh database.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void setValues(const labelUList &cells, const ListType< Type > &values)
Set solution in given cells to the specified values.
Mesh data needed to do the Finite Volume discretisation.
Fixed temperature equation constraint.
virtual bool movePoints()
Update for mesh motion.
static const NamedEnum< temperatureMode, 2 > modeNames_
String representation of mode enums.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual bool constrain(fvMatrix< scalar > &eqn, const word &fieldName) const
Constrain energy equation to fix the temperature.
fixedTemperature(const word &name, const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from components.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
temperatureMode
Temperature mode.
virtual wordList constrainedFields() const
Return the list of fields constrained by the fvConstraint.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
A class for handling words, derived from string.
static const word null
An empty word.
A special matrix type and solver, designed for finite volume solutions of scalar equations.
addToRunTimeSelectionTable(fvConstraint, bound, dictionary)
defineTypeNameAndDebug(bound, 0)
addBackwardCompatibleToRunTimeSelectionTable(fvConstraint, fixedTemperature, dictionary, fixedTemperatureConstraint, "fixedTemperatureConstraint")
List< word > wordList
A List of words.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimTemperature
List< scalar > scalarList
A List of scalars.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const unitConversion unitFraction
fluidMulticomponentThermo & thermo