53 fixedValueFvPatchScalarField(p, iF),
71 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
88 fixedValueFvPatchScalarField(p, iF, dict),
103 fixedValueFvPatchScalarField(fwfpsf),
119 fixedValueFvPatchScalarField(fwfpsf, iF),
145 db().time().foundObject<modelType>(
"surfaceFilmProperties");
156 const modelType& filmModel =
157 db().time().lookupObject<modelType>(
"surfaceFilmProperties");
159 const label filmPatchI = filmModel.regionPatchID(patchi);
162 scalarField mDotFilmp = mDotFilm().boundaryField()[filmPatchI];
163 filmModel.toPrimary(filmPatchI, mDotFilmp);
184 const scalar Cmu25 =
pow(
Cmu_, 0.25);
190 label faceCellI = patch().faceCells()[faceI];
192 scalar
uTau = Cmu25*
sqrt(k[faceCellI]);
194 scalar
yPlus = y[faceI]*uTau/(muw[faceI]/rhow[faceI]);
196 scalar
Pr = muw[faceI]/alphaw[faceI];
199 scalar mStar = mDotFilmp[faceI]/(y[faceI]*
uTau);
206 mStar/(expTerm*(
pow(yPlusRatio, powTerm)) - 1.0 + ROOTVSMALL);
210 scalar expTerm =
exp(
min(50.0, yPlus*mStar*Pr));
211 factor = mStar/(expTerm - 1.0 + ROOTVSMALL);
214 scalar dx = patch().deltaCoeffs()[faceI];
216 scalar
alphaEff = dx*rhow[faceI]*uTau*factor;
218 alphat[faceI] =
max(alphaEff - alphaw[faceI], 0.0);
224 fixedValueFvPatchScalarField::updateCoeffs();
238 writeEntry(
"value", os);
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensionedScalar Pr("Pr", dimless, laminarTransport)
virtual void write(Ostream &) const
Write.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
const char *const group
Group name for atomic constants.
scalar Prt_
Turbulent Prandtl number (default = 0.85)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Foam::fvPatchFieldMapper.
scalar kappa_
Von-Karman constant (default = 0.41)
dimensionedScalar exp(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
alphatFilmWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
static word groupName(Name name, const word &group)
scalar Cmu_
Turbulent Cmu coefficient (default = 0.09)
virtual tmp< volScalarField > alpha() const
Return the laminar thermal diffusivity for enthalpy [kg/m/s].
scalar B_
B Coefficient (default = 5.5)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
label k
Boltzmann constant.
static int & msgType()
Message tag of standard messages.
Macros for easy insertion into run-time selection tables.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
rDeltaT dimensionedInternalField()
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
scalar yPlusCrit_
y+ value for laminar -> turbulent transition (default = 11.05)
Base class for surface film models.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static const word propertiesName
Default name of the turbulence properties dictionary.
makePatchTypeField(fvPatchScalarField, alphatFilmWallFunctionFvPatchScalarField)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Evaluates and outputs turbulence y+ for models. Values written to time directories as field 'yPlus'...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
A class for managing temporary objects.
const volScalarField & alphaEff