43 mixedFvPatchScalarField(
p, iF),
51 valueFraction() = 1.0;
64 mixedFvPatchScalarField(ptf,
p, iF, mapper),
80 mixedFvPatchScalarField(
p, iF),
83 mass_(
dict.
get<scalar>(
"mass")),
90 valueFraction() = 1.0;
100 mixedFvPatchScalarField(tppsf),
115 mixedFvPatchScalarField(tppsf, iF),
130 mixedFvPatchScalarField::autoMap(mapper);
141 mixedFvPatchScalarField::rmap(ptf, addr);
155 if (updated() || (curTimeIndex_ == this->db().time().
timeIndex()))
164 const scalar deltaT(db().time().deltaTValue());
166 tmp<scalarField> tkappa(
kappa(Tp));
171 const scalar Q =
gSum(q*magSf);
173 Tp += -(Q/mass_/Cp_)*deltaT;
177 valueFraction() = 1.0;
179 mixedFvPatchScalarField::updateCoeffs();
190 Qout += q[facei]*magSf[facei];
192 else if (q[facei] < 0.0)
194 Qin += q[facei]*magSf[facei];
198 Info<<
patch().boundaryMesh().mesh().name() <<
':' 199 <<
patch().name() <<
':' 200 << this->internalField().name() <<
" :" 201 <<
" heat transfer rate:" << Q
202 <<
" wall temperature " 203 <<
" min:" <<
gMin(*
this)
204 <<
" max:" <<
gMax(*
this)
206 <<
" Qin [W]:" << Qin
207 <<
" Qout [W]:" << Qout
211 curTimeIndex_ = this->db().time().timeIndex();
235 lumpedMassWallTemperatureFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
Employs a lumped mass model for temperature.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Type gMin(const FieldField< Field, Type > &f)
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)=0
Reverse map the given fvPatchField onto this fvPatchField.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
virtual void autoMap(const fvPatchFieldMapper &)=0
Map (and resize as needed) from self given a mapping object.
void write(Ostream &os) const
Write.
virtual void readDict(const dictionary &dict)
Read dictionary entries.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
Type gSum(const FieldField< Field, Type > &f)
fvPatchField< scalar > fvPatchScalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A FieldMapper for finite-volume patch fields.
virtual void rmap(const fvPatchField< scalar > &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
int debug
Static debugging option.
Type gMax(const FieldField< Field, Type > &f)
OBJstream os(runTime.globalPath()/outputName)
Common functions used in temperature coupled boundaries.
Type gAverage(const FieldField< Field, Type > &f)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual void write(Ostream &) const
Write.
void write(Ostream &) const
Write.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
static constexpr const zero Zero
Global zero (0)
lumpedMassWallTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.