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),
137 mixedFvPatchScalarField::autoMap(mapper);
138 temperatureCoupledBase::autoMap(mapper);
148 mixedFvPatchScalarField::rmap(ptf, addr);
156 temperatureCoupledBase::rmap(tiptf, addr);
162 if (updated() || (curTimeIndex_ == this->db().time().
timeIndex()))
171 const scalar deltaT(db().time().deltaTValue());
178 const scalar Q =
gSum(q*magSf);
180 Tp += -(Q/mass_/Cp_)*deltaT;
184 valueFraction() = 1.0;
186 mixedFvPatchScalarField::updateCoeffs();
197 Qout += q[facei]*magSf[facei];
199 else if (q[facei] < 0.0)
201 Qin += q[facei]*magSf[facei];
205 Info<<
patch().boundaryMesh().mesh().name() <<
':'
206 <<
patch().name() <<
':'
207 << this->internalField().name() <<
" :"
208 <<
" heat transfer rate:" << Q
209 <<
" wall temperature "
210 <<
" min:" <<
gMin(*
this)
211 <<
" max:" <<
gMax(*
this)
213 <<
" Qin [W]:" << Qin
214 <<
" Qout [W]:" << Qout
218 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.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
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 (stdout output on master, null elsewhere)
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,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
To & refCast(From &r)
Reference type cast template function.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
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.