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),
90 mass_(
dict.
get<scalar>(
"mass")),
94 valueFraction() = 1.0;
107 mixedFvPatchScalarField(tppsf),
122 mixedFvPatchScalarField(tppsf, iF),
137 mixedFvPatchScalarField::autoMap(mapper);
148 mixedFvPatchScalarField::rmap(ptf, addr);
162 if (updated() || (curTimeIndex_ == this->db().time().
timeIndex()))
171 const scalar deltaT(db().time().deltaTValue());
173 tmp<scalarField> tkappa(
kappa(Tp));
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();
242 lumpedMassWallTemperatureFvPatchScalarField
fvPatchField< scalar > fvPatchScalarField
virtual void operator=(const UList< Type > &)
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 &)
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
Common functions used in temperature coupled boundaries.
Ostream & endl(Ostream &os)
Employs a lumped mass model for temperature.
Type gSum(const FieldField< Field, Type > &f)
const dimensionedScalar kappa
virtual void autoMap(const fvPatchFieldMapper &)=0
lumpedMassWallTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Generic templated field type.
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.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)=0
virtual void autoMap(const fvPatchFieldMapper &)
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual tmp< scalarField > kappa(const scalarField &Tp) const
virtual void updateCoeffs()
Ostream & writeEntry(const keyType &key, const T &value)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Foam::fvPatchFieldMapper.
void write(Ostream &os) const
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