50 fixedTemperatureConstraint,
51 "fixedTemperatureConstraint"
67 void Foam::fv::fixedTemperature::readCoeffs(
const dictionary&
dict)
80 mesh().time().userUnits(),
89 TName_ =
dict.lookupOrDefault<word>(
"T",
"T");
97 dict.found(
"fraction")
101 mesh().time().userUnits(),
105 : autoPtr<Function1<scalar>>();
114 const word& modelType,
124 phaseName_(
word::null)
147 const word& fieldName
162 case temperatureMode::uniform:
167 if (fraction_.valid())
183 case temperatureMode::lookup:
190 if (fraction_.valid())
221 zone_.topoChange(map);
233 zone_.distribute(map);
241 zone_.read(coeffs(
dict));
242 readCoeffs(coeffs(
dict));
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
Finite volume options abstract base class.
virtual bool read(const dictionary &dict)
Read source dictionary.
const dictionary & coeffs(const dictionary &) const
Return the coefficients sub-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.
const Time & time() const
Return the top-level database.
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.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type and name.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
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.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTemperature
List< scalar > scalarList
A List of scalars.
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const unitConversion unitFraction
fluidMulticomponentThermo & thermo