Go to the documentation of this file.
57 const auto* filmModelPtr = db().time().findObject
67 const label patchi =
patch().index();
70 const auto& filmModel = *filmModelPtr;
72 const label filmPatchi = filmModel.regionPatchID(patchi);
75 scalarField mDotFilmp = mDotFilm().boundaryField()[filmPatchi];
76 filmModel.toPrimary(filmPatchi, mDotFilmp);
85 internalField().
group()
95 const scalar Cmu25 =
pow(
Cmu_, 0.25);
99 label faceCelli =
patch().faceCells()[facei];
101 scalar ut = Cmu25*
sqrt(
k[faceCelli]);
103 scalar
yPlus =
y[facei]*ut/nuw[facei];
105 scalar mStar = mDotFilmp[facei]/(
y[facei]*ut);
110 scalar expTerm =
exp(
min(50.0,
B_*mStar));
112 factor = mStar/(expTerm*powTerm - 1.0 + ROOTVSMALL);
116 scalar expTerm =
exp(
min(50.0, mStar));
117 factor = mStar/(expTerm*
yPlus - 1.0 + ROOTVSMALL);
129 const label patchi =
patch().index();
136 internalField().
group()
148 sqr(
calcUTau(magGradU))/(magGradU + ROOTVSMALL) - nuw
162 filmRegionName_(
"surfaceFilmProperties"),
177 filmRegionName_(ptf.filmRegionName_),
193 dict.getOrDefault<
word>(
"filmRegion",
"surfaceFilmProperties")
195 B_(
dict.getOrDefault(
"B", 5.5)),
196 yPlusCrit_(
dict.getOrDefault(
"yPlusCrit", 11.05))
206 filmRegionName_(wfpsf.filmRegionName_),
208 yPlusCrit_(wfpsf.yPlusCrit_)
219 filmRegionName_(wfpsf.filmRegionName_),
221 yPlusCrit_(wfpsf.yPlusCrit_)
229 const label patchi =
patch().index();
236 internalField().
group()
252 os.writeEntryIfDifferent<
word>
255 "surfaceFilmProperties",
259 os.writeEntry(
"B",
B_);
261 writeEntry(
"value",
os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
virtual void write(Ostream &) const
virtual tmp< Field< Type > > snGrad() const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual void write(Ostream &os) const
A class for handling words, derived from Foam::string.
constexpr const char *const group
A class for managing temporary objects.
static constexpr const zero Zero
virtual tmp< scalarField > yPlus() const
virtual tmp< scalarField > calcNut() const
makePatchTypeField(fvPatchScalarField, alphatFilmWallFunctionFvPatchScalarField)
static const word propertiesName
nutkFilmWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
dimensionedScalar exp(const dimensionedScalar &ds)
label min(const labelHashSet &set, label minValue=labelMax)
Generic templated field type.
Base class for surface film models.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
virtual tmp< scalarField > calcUTau(const scalarField &magGradU) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
This boundary condition provides a turbulent viscosity condition when using wall functions,...
Foam::fvPatchFieldMapper.
static word groupName(StringType base, const word &group)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Generic GeometricField class.
virtual void writeLocalEntries(Ostream &) const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition provides a wall constraint on the turbulent viscosity, i.e....