37 namespace functionObjects
43 wallHeatTransferCoeff,
59 writeCommented(
file(),
"Time");
60 writeTabbed(
file(),
"patch");
61 writeTabbed(
file(),
"min");
62 writeTabbed(
file(),
"max");
63 writeTabbed(
file(),
"average");
119 if (patchSet_.empty())
123 if (isA<wallPolyPatch>(pbm[
patchi]))
125 patchSet_.insert(patchi);
129 Info<<
" processing all wall patches" << nl <<
endl;
133 Info<<
" processing wall patches: " <<
nl;
138 if (isA<wallPolyPatch>(pbm[patchi]))
140 filteredPatchSet.
insert(patchi);
146 <<
"Requested wall heat-transferCoeff on non-wall boundary" 153 patchSet_ = filteredPatchSet;
156 coeffModel_->read(dict);
159 resetLocalObjectName(typeName);
168 lookupObject<momentumTransportModel>
170 momentumTransportModel::typeName
174 thtc = coeffModel_->htcByRhoCp(mmtm, patchSet_);
178 thtc.
ref() *= rho_*Cp_;
185 thtc.ref() *= thermo.
rho()*thermo.
Cp();
188 store(
"wallHeatTransferCoeff", thtc);
205 const surfaceScalarField::Boundary& magSf =
206 mesh_.magSf().boundaryField();
215 const scalar minHtcp =
gMin(hfp);
216 const scalar maxHtcp =
gMax(hfp);
217 const scalar averageHtcp =
218 gSum(magSf[patchi]*hfp)/
gSum(magSf[patchi]);
223 << mesh_.time().value()
227 <<
tab << averageHtcp
231 Log <<
" min/max/average(" << pp.
name() <<
") = " 232 << minHtcp <<
", " << maxHtcp <<
", " << averageHtcp <<
endl;
virtual bool write()
Write function.
Calculates the natural logarithm of the specified scalar field.
#define forAll(list, i)
Loop across all elements in list.
virtual bool write()
Write function.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet dimArea
const word & name() const
Return name.
fluidReactionThermo & thermo
Base-class for fluid and solid thermodynamic properties.
virtual tmp< volScalarField > rho() const =0
Density [kg/m^3].
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool write()
Write the wall heat transfer coefficient.
Type gMin(const FieldField< Field, Type > &f)
virtual bool read(const dictionary &)
Read the wallHeatTransferCoeffs data.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
T & ref() const
Return non-const reference or generate a fatal error.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
addToRunTimeSelectionTable(functionObject, Qdot, dictionary)
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static bool master(const label communicator=0)
Am I the master process.
bool insert(const Key &key)
Insert a new entry.
labelHashSet patchSet(const UList< wordRe > &patchNames, const bool warnNotFound=true, const bool usePatchGroups=true) const
Return the set of patch IDs corresponding to the given names.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
virtual void writeFileHeader(const label i)
File header information.
static autoPtr< wallHeatTransferCoeffModel > New(const word &name, const fvMesh &mesh, const dictionary &)
Return a reference to the selected subset.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimTime
virtual bool read(const dictionary &)
Read optional controls.
bool read(const char *, int32_t &)
const fileName & name() const
Return the dictionary name.
Type gSum(const FieldField< Field, Type > &f)
void writeHeader(std::ostream &, const bool isBinary, const std::string &title)
Write header.
A class for handling words, derived from string.
const dimensionSet dimDensity
forAllConstIter(PtrDictionary< phaseModel >, mixture.phases(), phase)
static const word dictName
Name of the thermophysical properties dictionary.
Type gMax(const FieldField< Field, Type > &f)
virtual tmp< volScalarField > Cp() const =0
Heat capacity at constant pressure [J/kg/K].
word name(const complex &)
Return a string representation of a complex.
defineTypeNameAndDebug(Qdot, 0)
wallHeatTransferCoeff(const word &name, const Time &runTime, const dictionary &dict)
Construct from name, mesh and dict.
Abstract base class for turbulence models (RAS, LES and laminar).
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
#define WarningInFunction
Report a warning using Foam::Warning.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
virtual bool execute()
Calculate the wall heat transfer coefficient.
#define Log
Report write to Foam::Info if the local log switch is true.
virtual const word & name() const
Return name.
Specialisation of Foam::functionObject for an Foam::fvMesh, providing a reference to the Foam::fvMesh...
List< wordRe > wordReList
A List of wordRe (word or regular expression)
A class for managing temporary objects.
virtual ~wallHeatTransferCoeff()
Destructor.
const dimensionSet dimTemperature
functionObject base class for creating, maintaining and writing log files e.g. integrated of averaged...