38 namespace functionObjects
104 if (!foundObject<basicThermo>(physicalProperties::typeName))
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);
169 coeffModel_->htcByRhoCp(transport, patchSet_)
172 if (!foundObject<basicThermo>(physicalProperties::typeName))
174 thtc.ref() *= rho_*Cp_;
179 lookupObject<basicThermo>(physicalProperties::typeName);
184 store(
"wallHeatTransferCoeff", thtc);
202 mesh_.magSf().boundaryField();
213 const scalar minHtcp =
gMin(hfp);
214 const scalar maxHtcp =
gMax(hfp);
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
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 label size() const
Return size.
virtual const word & name() const
Return name.
Abstract base class for turbulence models (RAS, LES and laminar).
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the patch set corresponding to the given names.
A class for managing temporary objects.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const dimensionSet dimTemperature
const dimensionSet dimTime
const dimensionSet dimDensity
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
const dimensionSet dimArea
Type gMin(const FieldField< Field, Type > &f)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
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