41 mixedFvPatchScalarField(
p, iF),
42 Tinf_(
p.size(),
Zero),
43 alphaWall_(
p.size(),
Zero)
47 valueFraction() = 0.0;
59 mixedFvPatchScalarField(ptf,
p, iF, mapper),
60 Tinf_(ptf.Tinf_, mapper),
61 alphaWall_(ptf.alphaWall_, mapper)
72 mixedFvPatchScalarField(
p, iF),
73 Tinf_(
"Tinf",
dict,
p.size()),
74 alphaWall_(
"alphaWall",
dict,
p.size())
78 valueFraction() = 0.0;
80 if (!this->readValueEntry(
dict))
89 const wallHeatTransferFvPatchScalarField& tppsf
92 mixedFvPatchScalarField(tppsf),
94 alphaWall_(tppsf.alphaWall_)
104 mixedFvPatchScalarField(tppsf, iF),
106 alphaWall_(tppsf.alphaWall_)
119 alphaWall_.autoMap(m);
129 mixedFvPatchScalarField::rmap(ptf, addr);
132 refCast<const wallHeatTransferFvPatchScalarField>(ptf);
134 Tinf_.
rmap(tiptf.Tinf_, addr);
135 alphaWall_.rmap(tiptf.alphaWall_, addr);
152 internalField().
group()
156 const label patchi =
patch().index();
162 + turbModel.kappaEff(patchi)*
patch().deltaCoeffs()/alphaWall_
165 mixedFvPatchScalarField::updateCoeffs();
172 Tinf_.writeEntry(
"Tinf",
os);
173 alphaWall_.writeEntry(
"alphaWall",
os);
185 wallHeatTransferFvPatchScalarField
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
void writeValueEntry(Ostream &os) const
Write *this field as a "value" entry.
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
constexpr const char *const group
Group name for atomic constants.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
fvPatchField< scalar > fvPatchScalarField
static const word propertiesName
Default name of the turbulence properties dictionary.
A FieldMapper for finite-volume patch fields.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
This boundary condition provides an enthalpy condition for wall heat transfer.
OBJstream os(runTime.globalPath()/outputName)
void autoMap(const FieldMapper &map, const bool applyFlip=true)
Map from self.
virtual void write(Ostream &) const
Write.
string evaluate(label fieldWidth, const std::string &s, size_t pos=0, size_t len=std::string::npos)
String evaluation with specified (positive, non-zero) field width.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
const std::string patch
OpenFOAM patch number as a std::string.
wallHeatTransferFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
makePatchTypeField(fvPatchScalarField, atmBoundaryLayerInletEpsilonFvPatchScalarField)
static constexpr const zero Zero
Global zero (0)