49 fixedValueFvPatchScalarField(
p, iF),
63 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
76 fixedValueFvPatchScalarField(
p, iF,
dict),
87 fixedValueFvPatchScalarField(htcpsf),
99 fixedValueFvPatchScalarField(htcpsf, iF),
113 const label patchi =
patch().index();
120 compressible::turbulenceModel::propertiesName,
121 internalField().
group()
130 const scalarField& rhow = turbModel.rho().boundaryField()[patchi];
132 const vectorField& Uw = turbModel.U().boundaryField()[patchi];
133 const scalarField& Tw = turbModel.transport().T().boundaryField()[patchi];
134 const scalarField& pw = turbModel.transport().p().boundaryField()[patchi];
135 const scalarField Cpw(turbModel.transport().Cp(pw, Tw, patchi));
143 label celli =
patch().faceCells()[facei];
145 scalar
Re = rhow[facei]*
mag(Uc[celli] - Uw[facei])*
L_/muw[facei];
153 htc[facei] = 0.037*
pow(
Re, 0.8)*
cbrt(
Pr[facei])*kappaw[facei]/
L_;
157 fixedValueFvPatchScalarField::updateCoeffs();
166 os.writeEntry(
"L",
L_);
167 writeEntry(
"value",
os);
176 convectiveHeatTransferFvPatchScalarField
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
This boundary condition provides a convective heat transfer coefficient condition.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual void write(Ostream &) const
Write.
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
constexpr const char *const group
Group name for atomic constants.
makePatchTypeField(fvPatchScalarField, alphatFixedDmdtWallBoilingWallFunctionFvPatchScalarField)
virtual tmp< volScalarField > alphaEff() const
Return the effective turbulent thermal diffusivity for enthalpy.
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
A FieldMapper for finite-volume patch fields.
dimensionedScalar cbrt(const dimensionedScalar &ds)
scalarField Re(const UList< complex > &cf)
Extract real component.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
convectiveHeatTransferFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
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.
A class for managing temporary objects.
const scalar L_
L Length scale [m].
virtual void write(Ostream &) const
Write.