39 namespace compressible
53 fixedValueFvPatchScalarField(p, iF),
70 fixedValueFvPatchScalarField(p, iF, dict),
88 fixedValueFvPatchScalarField(ptf, p, iF, mapper),
104 fixedValueFvPatchScalarField(fwfpsf, iF),
130 db().time().foundObject<modelType>(
"surfaceFilmProperties");
141 const modelType& filmModel =
142 db().time().lookupObject<modelType>(
"surfaceFilmProperties");
144 const label filmPatchi = filmModel.regionPatchID(patchi);
147 scalarField mDotFilmp = mDotFilm().boundaryField()[filmPatchi];
148 filmModel.toPrimary(filmPatchi, mDotFilmp);
155 thermophysicalTransportModel::typeName,
156 internalField().
group()
177 const scalar Cmu25 =
pow(
Cmu_, 0.25);
183 label faceCelli = patch().faceCells()[facei];
185 scalar
uTau = Cmu25*
sqrt(k[faceCelli]);
187 scalar
yPlus = y[facei]*uTau/nuw[facei];
189 scalar Pr = rhow[facei]*nuw[facei]/alphaw[facei];
192 scalar mStar = mDotFilmp[facei]/(y[facei]*
uTau);
199 mStar/(expTerm*(
pow(yPlusRatio, powTerm)) - 1.0 + rootVSmall);
203 scalar expTerm =
exp(
min(50.0, yPlus*mStar*Pr));
204 factor = mStar/(expTerm - 1.0 + rootVSmall);
207 scalar dx = patch().deltaCoeffs()[facei];
209 scalar alphaEff = dx*rhow[facei]*uTau*factor;
211 alphat[facei] =
max(alphaEff - alphaw[facei], 0.0);
217 fixedValueFvPatchScalarField::updateCoeffs();
const char *const group
Group name for atomic constants.
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
Base class for surface film models.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual const fluidThermo & thermo() const =0
Access function to incompressible transport model.
const compressibleMomentumTransportModel & momentumTransport() const
const Boundary & boundaryField() const
Return const-reference to the boundary field.
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.
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.
virtual const volScalarField & Cp() const =0
Heat capacity at constant pressure [J/kg/K].
dimensionedScalar exp(const dimensionedScalar &ds)
scalar Prt_
Turbulent Prandtl number (default = 0.85)
static word groupName(Name name, const word &group)
Foam::fvPatchFieldMapper.
virtual const volScalarField & kappa() const =0
Thermal conductivity of mixture [W/m/K].
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
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)
Abstract base class for thermophysical transport models (RAS, LES and laminar).
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.
scalar Cmu_
Turbulent Cmu coefficient (default = 0.09)
Base class for single-phase compressible turbulence models.
This boundary condition provides a turbulent thermal diffusivity condition when using wall functions...