Go to the documentation of this file.
43 mixedFvPatchScalarField(
p, iF),
58 valueFraction() = 1.0;
71 mixedFvPatchScalarField(ptf,
p, iF, mapper),
87 mixedFvPatchScalarField(
p, iF),
89 Cp_(
dict.get<scalar>(
"Cp")),
90 mass_(
dict.get<scalar>(
"mass")),
94 valueFraction() = 1.0;
107 mixedFvPatchScalarField(tppsf),
122 mixedFvPatchScalarField(tppsf, iF),
134 if (updated() || (curTimeIndex_ == this->db().time().
timeIndex()))
143 const scalar deltaT(db().time().deltaTValue());
150 const scalar Q =
gSum(q*magSf);
152 Tp += -(Q/mass_/Cp_)*deltaT;
156 valueFraction() = 1.0;
158 mixedFvPatchScalarField::updateCoeffs();
169 Qout += q[facei]*magSf[facei];
171 else if (q[facei] < 0.0)
173 Qin += q[facei]*magSf[facei];
177 Info<<
patch().boundaryMesh().mesh().name() <<
':'
178 <<
patch().name() <<
':'
179 << this->internalField().name() <<
" :"
180 <<
" heat transfer rate:" << Q
181 <<
" wall temperature "
182 <<
" min:" <<
gMin(*
this)
183 <<
" max:" <<
gMax(*
this)
185 <<
" Qin [W]:" << Qin
186 <<
" Qout [W]:" << Qout
190 curTimeIndex_ = this->db().time().timeIndex();
int debug
Static debugging option.
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
Common functions used in temperature coupled boundaries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Employs a lumped mass model for temperature.
Type gSum(const FieldField< Field, Type > &f)
lumpedMassWallTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (uses stdout - output is on the master only)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const std::string patch
OpenFOAM patch number as a std::string.
virtual tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Foam::fvPatchFieldMapper.
void write(Ostream &os) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
Type gMin(const FieldField< Field, Type > &f)
Type gMax(const FieldField< Field, Type > &f)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
void write(Ostream &) const
Write.