38 namespace functionObjects
104 if (!foundObject<basicThermo>(physicalProperties::typeName))
112 patchSet_ = patchSet(
dict,
true);
116 if (patchSet_.empty())
120 if (isA<wallPolyPatch>(pbm[
patchi]))
126 Info<<
" processing all wall patches" <<
nl <<
endl;
130 Info<<
" processing wall patches: " <<
nl;
135 if (isA<wallPolyPatch>(pbm[
patchi]))
143 <<
"Requested wall heat-transferCoeff on non-wall boundary"
150 patchSet_ = filteredPatchSet;
153 coeffModel_->read(
dict);
156 resetLocalObjectName(typeName);
165 lookupObject<momentumTransportModel>
167 momentumTransportModel::typeName
171 thtc = coeffModel_->htcByRhoCp(mmtm, patchSet_);
173 if (!foundObject<basicThermo>(physicalProperties::typeName))
175 thtc.
ref() *= rho_*Cp_;
180 lookupObject<basicThermo>(physicalProperties::typeName);
185 store(
"wallHeatTransferCoeff", thtc);
203 mesh_.magSf().boundaryField();
212 const scalar minHtcp =
gMin(hfp);
213 const scalar maxHtcp =
gMax(hfp);
214 const scalar averageHtcp =
220 << time_.userTimeValue()
224 <<
tab << averageHtcp
228 Log <<
" min/max/average(" << pp.
name() <<
") = "
229 << minHtcp <<
", " << maxHtcp <<
", " << averageHtcp <<
endl;
#define forAll(list, i)
Loop across all elements in list.
#define forAllConstIter(Container, container, iter)
Iterate across all elements in the container object of type.
Macros for easy insertion into run-time selection tables.
Generic GeometricBoundaryField class.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
bool insert(const Key &key)
Insert a new entry.
const word & name() const
Return name.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static bool master(const label communicator=0)
Am I the master process.
Base-class for fluid and solid thermodynamic properties.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Abstract base-class for Time/database functionObjects.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...
OFstream & file()
Return access to the file (if only 1)
virtual bool write()
Write function.
Calculates the natural logarithm of the specified scalar field.
virtual bool read(const dictionary &)
Read optional controls.
Calculates and writes the estimated heat transfer coefficient at wall patches as the volScalarField f...
wallHeatTransferCoeff(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, mesh and dict.
virtual void writeFileHeader(const label i)
File header information.
virtual bool execute()
Calculate the wall heat transfer coefficient.
virtual ~wallHeatTransferCoeff()
Destructor.
virtual bool write()
Write the wall heat transfer coefficient.
virtual bool read(const dictionary &)
Read the wallHeatTransferCoeffs data.
void writeTabbed(Ostream &os, const string &str) const
Write a tabbed string to stream.
void writeHeader(Ostream &os, const string &str) const
Write a commented header to stream.
void writeCommented(Ostream &os, const string &str) const
Write a commented string to stream.
FunctionObject base class for managing a list of objects on behalf of the inheriting function object,...
virtual bool read(const dictionary &)
Read the list of objects to be written.
virtual bool write()
Write function.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual const word & name() const
Return name.
Abstract base class for turbulence models (RAS, LES and laminar).
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
Abstract base class for run time selection of heat transfer coefficient models.
A class for handling words, derived from string.
const fvPatchList & patches
#define WarningInFunction
Report a warning using Foam::Warning.
#define Log
Report write to Foam::Info if the local log switch is true.
defineTypeNameAndDebug(adjustTimeStepToCombustion, 0)
addToRunTimeSelectionTable(functionObject, adjustTimeStepToCombustion, dictionary)
Type gSum(const FieldField< Field, Type > &f)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimTemperature
const dimensionSet dimTime
const dimensionSet dimDensity
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
const dimensionSet dimArea
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
fluidMulticomponentThermo & thermo