39 namespace compressible
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);
171 internalField().
group()
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();
const char *const group
Group name for atomic constants.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Base class for surface film models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
dimensionedScalar sqrt(const dimensionedScalar &ds)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
scalar yPlusCrit_
y+ value for laminar -> turbulent transition (default = 11.05)
makePatchTypeField(fvPatchScalarField, alphatFilmWallFunctionFvPatchScalarField)
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
static int & msgType()
Message tag of standard messages.
label k
Boltzmann constant.
Templated wrapper class to provide compressible turbulence models thermal diffusivity based thermal t...
virtual void write(Ostream &) const
Write.
scalar kappa_
Von-Karman constant (default = 0.41)
alphatFilmWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Macros for easy insertion into run-time selection tables.
dimensionedScalar exp(const dimensionedScalar &ds)
scalar Prt_
Turbulent Prandtl number (default = 0.85)
static const word propertiesName
Default name of the turbulence properties dictionary.
static word groupName(Name name, const word &group)
Foam::fvPatchFieldMapper.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar B_
B Coefficient (default = 5.5)
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
virtual tmp< volScalarField > alpha() const
Thermal diffusivity for enthalpy of mixture [kg/m/s].
scalar Cmu_
Turbulent Cmu coefficient (default = 0.09)
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions...