Go to the documentation of this file.
51 const word& modelType,
57 Tmin_(coeffs_.get<scalar>(
"min")),
58 Tmax_(coeffs_.get<scalar>(
"max")),
59 phase_(coeffs_.getOrDefault<
word>(
"phase", word::null))
69 fieldNames_.resize(1,
thermo.he().name());
71 fv::option::resetApplied();
87 <<
"Minimum temperature limit cannot exceed maximum limit" <<
nl
96 <<
"Minimum temperature limit cannot be negative" <<
nl
126 scalar Tmin0 =
min(
T);
127 scalar Tmax0 =
max(
T);
130 label nLowerTmin = 0;
134 const label celli = cells_[i];
135 if (hec[celli] < heMin[i])
139 else if (hec[celli] > heMax[i])
143 hec[celli]=
max(
min(hec[celli], heMax[i]), heMin[i]);
152 Info<<
type() <<
" " << name_ <<
" Lower limited "
153 << nLowerTmin <<
" ("
154 << 100*scalar(nLowerTmin)/mesh_.globalData().nTotalCells()
155 <<
"%) of cells" <<
endl;
157 Info<<
type() <<
" " << name_ <<
" Upper limited "
159 << 100*scalar(nOverTmax)/mesh_.globalData().nTotalCells()
160 <<
"%) of cells" <<
endl;
162 Info<<
type() <<
" " << name_ <<
" Unlimited Tmax " << Tmax0 <<
nl
163 <<
"Unlimited Tmin " << Tmin0 <<
endl;
168 volScalarField::Boundary& bf =
he.boundaryFieldRef();
187 max(
min(hep[facei], heMaxp[facei]), heMinp[facei]);
195 he.correctBoundaryConditions();
virtual bool read(const dictionary &dict)
Read dictionary.
A class for handling words, derived from Foam::string.
Intermediate abstract class for handling cell-set options for the derived fvOptions.
const word dictName("faMeshDefinition")
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Abstract base-class for fluid and solid thermodynamic properties.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool fixesValue() const
Return true if this patch field fixes a value.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
messageStream Info
Information stream (stdout output on master, null elsewhere)
dictionary coeffs_
Dictionary containing source coefficients.
virtual bool read(const dictionary &dict)
Read source dictionary.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
bool useSubMesh() const noexcept
True if sub-selection should be used.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar Tmin_
Minimum temperature limit [K].
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void correct(volScalarField &he)
Correct the energy field.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
scalar Tmax_
Maximum temperature limit [K].
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
limitTemperature(const word &name, const word &modelType, const dictionary &dict, const fvMesh &mesh)
Construct from components.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)
word dictName() const
The local dictionary name (final part of scoped name)