Go to the documentation of this file.
48 mixedFvPatchScalarField(
p, iF),
50 TnbrName_(
"undefined-Tnbr"),
55 this->refValue() = 0.0;
56 this->refGrad() = 0.0;
57 this->valueFraction() = 1.0;
70 mixedFvPatchScalarField(ptf,
p, iF, mapper),
87 mixedFvPatchScalarField(
p, iF),
89 TnbrName_(
dict.lookup(
"Tnbr")),
94 if (!isA<mappedPatchBase>(this->patch().patch()))
97 <<
"' not type '" << mappedPatchBase::typeName <<
"'"
98 <<
"\n for patch " <<
p.name()
104 if (
dict.found(
"thicknessLayers"))
106 dict.lookup(
"thicknessLayers") >> thicknessLayers_;
107 dict.lookup(
"kappaLayers") >> kappaLayers_;
109 if (thicknessLayers_.size() > 0)
112 forAll (thicknessLayers_, iLayer)
114 contactRes_ += thicknessLayers_[iLayer]/kappaLayers_[iLayer];
116 contactRes_ = 1.0/contactRes_;
122 if (
dict.found(
"refValue"))
134 valueFraction() = 1.0;
146 mixedFvPatchScalarField(wtcsf, iF),
171 refCast<const mappedPatchBase>(patch().patch());
175 refCast<const fvMesh>(nbrMesh).boundary()[samplePatchI];
198 nbrIntFld() = nbrField.patchInternalField();
203 nbrIntFld() = nbrField;
228 this->refValue() = nbrIntFld();
229 this->refGrad() = 0.0;
230 this->valueFraction() = nbrKDelta()/(nbrKDelta() + myKDelta());
232 mixedFvPatchScalarField::updateCoeffs();
238 Info<< patch().boundaryMesh().mesh().name() <<
':'
239 << patch().name() <<
':'
241 << nbrMesh.
name() <<
':'
242 << nbrPatch.
name() <<
':'
244 <<
" heat transfer rate:" << Q
245 <<
" walltemperature "
246 <<
" min:" <<
gMin(*
this)
247 <<
" max:" <<
gMax(*
this)
265 thicknessLayers_.writeEntry(
"thicknessLayers", os);
266 kappaLayers_.writeEntry(
"kappaLayers", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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.
makePatchTypeField(fvPatchScalarField, thermalBaffleFvPatchScalarField)
scalar contactRes_
Total contact resistance.
#define forAll(list, i)
Loop across all elements in list.
A class for managing temporary objects.
Type gAverage(const FieldField< Field, Type > &f)
scalarList thicknessLayers_
Thickness of layers.
rDeltaT dimensionedInternalField()
scalarList kappaLayers_
Conductivity of layers.
const polyPatch & samplePolyPatch() const
Get the patch on the region.
turbulentTemperatureCoupledBaffleMixedFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Common functions for use in temperature coupled boundaries.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
Determines a mapping between patch face centres and mesh cell or face centres and processors they're ...
virtual void write(Ostream &) const
Write.
Mesh consisting of general polyhedral cells.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const word & name() const
Return name.
This function object calculates and outputs the second invariant of the velocity gradient tensor [1/s...
const polyMesh & sampleMesh() const
Get the region mesh.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void distribute(List< Type > &lst) const
Wrapper around map/interpolate data distribution.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Mixed boundary condition for temperature, to be used for heat-transfer on back-to-back baffles....
const word & name() const
Return name.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
A list of keyword definitions, which are a keyword followed by any number of values (e....
const word TnbrName_
Name of field on the neighbour region.
Macros for easy insertion into run-time selection tables.
To & refCast(From &r)
Reference type cast template function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
static int & msgType()
Message tag of standard messages.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const scalarField & deltaCoeffs() const
Return the face - cell distance coeffient.
tmp< scalarField > kappa(const scalarField &Tp) const
Given patch temperature calculate corresponding K field.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
const GeometricField::PatchFieldType & lookupPatchField(const word &name, const GeometricField *=NULL, const Type *=NULL) const
Lookup and return the patchField of the named field from the.
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Type gMin(const FieldField< Field, Type > &f)
void write(Ostream &) const
Write.
label index() const
Return the index of this patch in the boundaryMesh.
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...