49 void Foam::fv::limitTemperature::readCoeffs()
51 Tmin_ = coeffs().lookup<scalar>(
"min");
52 Tmax_ = coeffs().lookup<scalar>(
"max");
53 fieldName_ = coeffs().lookupOrDefault<word>(
"field",
word::null);
54 phaseName_ = coeffs().lookupOrDefault<word>(
"phase",
word::null);
63 const word& modelType,
110 const label celli = cells[i];
111 Tc[celli] =
max(
min(Tc[celli], Tmax_), Tmin_);
127 Tp[facei] =
max(
min(Tp[facei], Tmax_), Tmin_);
151 const label celli = cells[i];
152 hec[celli] =
max(
min(hec[celli], heMax[i]), heMin[i]);
175 max(
min(hep[facei], heMaxp[facei]), heMinp[facei]);
195 set_.topoChange(map);
207 set_.distribute(map);
limitTemperature(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
defineTypeNameAndDebug(fixedTemperatureConstraint, 0)
#define forAll(list, i)
Loop across all elements in list.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
const word & name() const
Return name.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
virtual bool movePoints()
Update for mesh motion.
virtual bool fixesValue() const
Return true if this patch field fixes a value.
A list of keyword definitions, which are a keyword followed by any number of values (e...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual bool constrain(volScalarField &he) const
Constrain the energy field.
Macros for easy insertion into run-time selection tables.
virtual volScalarField & he()=0
Enthalpy/Internal energy [J/kg].
const dimensionSet & dimensions() const
Return dimensions.
A class for handling words, derived from string.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
static word groupName(Name name, const word &group)
static const word null
An empty word.
virtual void topoChange(const polyTopoChangeMap &)
Update topology using the given map.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
virtual wordList constrainedFields() const
Return the list of fields constrained by the fvConstraint.
addToRunTimeSelectionTable(fvConstraint, fixedTemperatureConstraint, dictionary)
List< word > wordList
A List of words.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
Mesh data needed to do the Finite Volume discretisation.
virtual bool read(const dictionary &dict)
Read dictionary.
virtual void distribute(const polyDistributionMap &)
Redistribute or update using the given distribution map.
virtual bool read(const dictionary &dict)
Read source dictionary.
Class containing mesh-to-mesh mapping information.
Finite volume options abstract base class.
const dimensionSet dimTemperature