OpenFOAM
4.1
The OpenFOAM Foundation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
applications
solvers
incompressible
boundaryFoam
evaluateNearWall.H
Go to the documentation of this file.
1
{
2
// Evaluate near-wall behaviour
3
4
scalar nu =
turbulence
->nu()().boundaryField()[
patchId
][
faceId
];
5
scalar nut =
turbulence
->nut()().boundaryField()[
patchId
][
faceId
];
6
symmTensor
R =
turbulence
->devReff()().boundaryField()[
patchId
][
faceId
];
7
scalar epsilon =
turbulence
->epsilon()()[
cellId
];
8
// scalar omega = turbulence->omega()()[cellId];
9
scalar k =
turbulence
->k()()[
cellId
];
10
scalar magUp =
mag
(
U
[
cellId
] -
U
.boundaryField()[
patchId
][
faceId
]);
11
12
scalar tauw =
flowDirection
& R &
wallNormal
;
13
14
scalar uTau =
::sqrt
(
mag
(tauw));
15
16
scalar
yPlus
= uTau*
y
[
cellId
]/(nu + ROOTVSMALL);
17
18
scalar
uPlus
= magUp/(uTau + ROOTVSMALL);
19
20
scalar
nutPlus
= nut/
nu
;
21
22
scalar
kPlus
= k/(
sqr
(uTau) + ROOTVSMALL);
23
24
scalar
epsilonPlus
= epsilon*nu/(
pow4
(uTau) + ROOTVSMALL);
25
26
// scalar omegaPlus = omega*nu/(sqr(uTau) + ROOTVSMALL);
27
28
scalar
Rey
= magUp*
y
[
cellId
]/
nu
;
29
30
Info
<<
"Rey = "
<< Rey <<
", uTau = "
<< uTau <<
", nut+ = "
<< nutPlus
31
<<
", y+ = "
<< yPlus <<
", u+ = "
<< uPlus
32
<<
", k+ = "
<< kPlus <<
", epsilon+ = "
<< epsilonPlus
33
<<
endl
;
34
}
turbulence
autoPtr< compressible::turbulenceModel > turbulence
Definition:
createFields.H:23
patchId
label patchId(-1)
uPlus
scalar uPlus
Definition:
evaluateNearWall.H:18
U
U
Definition:
pEqn.H:83
faceId
label faceId(-1)
Rey
scalar Rey
Definition:
evaluateNearWall.H:28
Foam::sqr
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Definition:
dimensionedSymmTensor.C:49
epsilonPlus
scalar epsilonPlus
Definition:
evaluateNearWall.H:24
flowDirection
vector flowDirection
Definition:
createFields.H:41
Foam::sqrt
dimensionedScalar sqrt(const dimensionedScalar &ds)
Definition:
dimensionedScalar.C:142
Foam::endl
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition:
Ostream.H:253
y
scalar y
Definition:
LISASMDCalcMethod1.H:14
Foam::symmTensor
SymmTensor< scalar > symmTensor
SymmTensor of scalars.
Definition:
symmTensor.H:48
kPlus
scalar kPlus
Definition:
evaluateNearWall.H:22
yPlus
scalar yPlus
Definition:
evaluateNearWall.H:16
cellId
label cellId
Definition:
interrogateWallPatches.H:67
Foam::pow4
dimensionedScalar pow4(const dimensionedScalar &ds)
Definition:
dimensionedScalar.C:98
Foam::Info
messageStream Info
Foam::mag
dimensioned< scalar > mag(const dimensioned< Type > &)
wallNormal
vector wallNormal(Zero)
nu
volScalarField & nu
Definition:
readMechanicalProperties.H:176
nutPlus
scalar nutPlus
Definition:
evaluateNearWall.H:20
Generated by
1.8.11