42convectiveHeatTransferFvPatchScalarField::
43convectiveHeatTransferFvPatchScalarField
49 fixedValueFvPatchScalarField(
p, iF),
54convectiveHeatTransferFvPatchScalarField::
55convectiveHeatTransferFvPatchScalarField
63 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
68convectiveHeatTransferFvPatchScalarField::
69convectiveHeatTransferFvPatchScalarField
76 fixedValueFvPatchScalarField(
p, iF,
dict),
77 L_(
dict.get<scalar>(
"L"))
81convectiveHeatTransferFvPatchScalarField::
82convectiveHeatTransferFvPatchScalarField
87 fixedValueFvPatchScalarField(htcpsf),
92convectiveHeatTransferFvPatchScalarField::
93convectiveHeatTransferFvPatchScalarField
99 fixedValueFvPatchScalarField(htcpsf, iF),
113 const label patchi = patch().index();
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();
167 writeEntry(
"value",
os);
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
static word groupName(StringType base, const word &group)
Create dot-delimited name.group string.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual tmp< volScalarField > alphaEff() const
Return the effective turbulent thermal diffusivity for enthalpy.
This boundary condition provides a convective heat transfer coefficient condition.
const scalar L_
L Length scale [m].
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool write()
Write the output fields.
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
static const word propertiesName
Default name of the phase properties dictionary.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
#define makePatchTypeField(PatchTypeField, typePatchTypeField)
scalarField Re(const UList< complex > &cf)
Extract real component.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar cbrt(const dimensionedScalar &ds)
dimensionedScalar Pr("Pr", dimless, laminarTransport)
#define forAll(list, i)
Loop across all elements in list.