Go to the documentation of this file.
53 Foam::fv::limitTemperature::limitTemperature
56 const word& modelType,
62 Tmin_(coeffs_.get<scalar>(
"min")),
63 Tmax_(coeffs_.get<scalar>(
"max")),
64 phase_(coeffs_.getOrDefault<
word>(
"phase", word::null))
74 fieldNames_.setSize(1,
thermo.he().name());
76 applied_.setSize(1,
false);
114 scalar Tmin0 =
min(
T);
115 scalar Tmax0 =
max(
T);
118 label nLowerTmin = 0;
122 const label celli = cells_[i];
123 if (hec[celli] < heMin[i])
127 else if (hec[celli] > heMax[i])
131 hec[celli]=
max(
min(hec[celli], heMax[i]), heMin[i]);
140 Info<<
type() <<
" " << name_ <<
" Lower limited "
141 << nLowerTmin <<
" ("
142 << 100*scalar(nLowerTmin)/mesh_.globalData().nTotalCells()
143 <<
"%) of cells" <<
endl;
145 Info<<
type() <<
" " << name_ <<
" Upper limited "
147 << 100*scalar(nOverTmax)/mesh_.globalData().nTotalCells()
148 <<
"%) of cells" <<
endl;
150 Info<<
type() <<
" " << name_ <<
" Unlimited Tmax " << Tmax0 <<
nl
151 <<
"Unlimited Tmin " << Tmin0 <<
endl;
154 if (selectionMode_ == smAll)
156 volScalarField::Boundary& bf =
he.boundaryFieldRef();
175 max(
min(hep[facei], heMaxp[facei]), heMinp[facei]);
183 he.correctBoundaryConditions();
virtual bool read(const dictionary &dict)
Read dictionary.
A class for handling words, derived from Foam::string.
Cell-set options abstract base class. Provides a base set of controls, e.g.:
const word dictName("blockMeshDict")
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 (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
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 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.
word dictName() const
The local dictionary name (final part of scoped name)
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.
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].
defineTypeNameAndDebug(atmAmbientTurbSource, 0)
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
addToRunTimeSelectionTable(option, atmAmbientTurbSource, dictionary)