OpenFOAM: API Guide
v2112
The open source CFD toolbox
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
}
y
scalar y
Definition:
LISASMDCalcMethod1.H:14
U
U
Definition:
pEqn.H:72
nutPlus
scalar nutPlus
Definition:
evaluateNearWall.H:20
uPlus
scalar uPlus
Definition:
evaluateNearWall.H:18
yPlus
scalar yPlus
Definition:
evaluateNearWall.H:16
epsilonPlus
scalar epsilonPlus
Definition:
evaluateNearWall.H:24
kPlus
scalar kPlus
Definition:
evaluateNearWall.H:22
magUp
scalar magUp
Definition:
evaluateNearWall.H:10
uTau
scalar uTau
Definition:
evaluateNearWall.H:14
tauw
scalar tauw
Definition:
evaluateNearWall.H:12
R
symmTensor R
Definition:
evaluateNearWall.H:6
epsilon
scalar epsilon
Definition:
evaluateNearWall.H:7
k
scalar k
Definition:
evaluateNearWall.H:9
Rey
scalar Rey
Definition:
evaluateNearWall.H:28
nut
scalar nut
Definition:
evaluateNearWall.H:5
turbulence
compressible::turbulenceModel & turbulence
Definition:
setRegionFluidFields.H:30
wallNormal
vector wallNormal(Zero)
cellId
label cellId
Definition:
interrogateWallPatches.H:67
patchId
label patchId(-1)
faceId
label faceId(-1)
nu
volScalarField & nu
Definition:
readMechanicalProperties.H:176
flowDirection
vector flowDirection
Definition:
createFields.H:41
applications
solvers
incompressible
boundaryFoam
evaluateNearWall.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.