Go to the documentation of this file.
40 namespace incompressible
52 if (!isA<wallFvPatch>(
patch()))
55 <<
"Invalid wall function specification" <<
nl
56 <<
" Patch type for patch " <<
patch().name()
57 <<
" must be wall" <<
nl
69 const label patchi =
patch().index();
73 if (isA<nutWallFunctionFvPatchScalarField>(
nut.boundaryField()[patchi]))
78 nut.boundaryField()[patchi]
90 /turbModel.
nu(patchi);
100 return 9.24*(
pow(Prat, 0.75) - 1.0)*(1.0 + 0.28*
exp(-0.007*Prat));
115 scalar df = 1.0 - 1.0/(ypt*
kappa_*Prat);
116 scalar yptNew = ypt -
f/df;
145 fixedValueFvPatchScalarField(
p, iF),
163 fixedValueFvPatchScalarField(ptf,
p, iF, mapper),
180 fixedValueFvPatchScalarField(
p, iF,
dict),
182 kappa_(
dict.getOrDefault<scalar>(
"kappa", 0.41)),
183 E_(
dict.getOrDefault<scalar>(
"E", 9.8))
195 fixedValueFvPatchScalarField(wfpsf),
197 kappa_(wfpsf.kappa_),
211 fixedValueFvPatchScalarField(wfpsf, iF),
213 kappa_(wfpsf.kappa_),
229 const label patchi =
patch().index();
238 internalField().
group()
261 scalar
yPlus = yPlusp[facei];
273 scalar
nu = nuw[facei];
275 alphatw[facei] =
max(0.0, kt);
279 alphatw[facei] = 0.0;
290 os.writeEntry(
"Prt",
Prt_);
292 os.writeEntry(
"E",
E_);
293 writeEntry(
"value",
os);
302 alphatJayatillekeWallFunctionFvPatchScalarField
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual void write(Ostream &) const
virtual tmp< Field< Type > > snGrad() const
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
virtual tmp< volScalarField > nu() const =0
constexpr const char *const group
A class for managing temporary objects.
virtual tmp< volScalarField > nut() const =0
IOdictionary transportProperties(IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static const word propertiesName
virtual tmp< scalarField > yPlus() const =0
Ostream & endl(Ostream &os)
dimensionedScalar exp(const dimensionedScalar &ds)
const nearWallDist & y() const
tmp< scalarField > yPlus(const turbulenceModel &turbModel) const
virtual void updateCoeffs()
This boundary condition provides a kinematic turbulent thermal conductivity for using wall functions,...
scalar Psmooth(const scalar Prat) const
virtual void write(Ostream &) const
Generic templated field type.
alphatJayatillekeWallFunctionFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Abstract base class for turbulence models (RAS, LES and laminar).
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
scalar yPlusTherm(const scalar P, const scalar Prat) const
dimensionedScalar log(const dimensionedScalar &ds)
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
errorManip< error > abort(error &err)
virtual void updateCoeffs()
fvPatchField< vector > fvPatchVectorField
#define FatalErrorInFunction
virtual tmp< volScalarField > nu() const
dimensionedScalar sqrt(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
Templated abstract base class for single-phase incompressible turbulence models.
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,...
makePatchTypeField(fvPatchScalarField, alphatJayatillekeWallFunctionFvPatchScalarField)
Generic GeometricField class.
virtual tmp< volScalarField > nuEff() const =0
The class nutWallFunction is a base class that parents the derived boundary conditions which provide ...
const Boundary & boundaryField() const
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const dimensionSet dimless
const volVectorField & U() const