Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
711ef825
Commit
711ef825
authored
Jul 22, 2009
by
Andrew Heather
Browse files
updated yPlusRAS utility
parent
040962d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/utilities/postProcessing/wall/yPlusRAS/Make/options
View file @
711ef825
...
...
@@ -2,7 +2,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/
RASMo
de
l
\
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/
lnInclu
de \
-I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \
...
...
applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C
View file @
711ef825
...
...
@@ -35,16 +35,20 @@ Description
#include
"RASModel.H"
#include
"wallFvPatch.H"
#include
"wallDist.H"
#include
"nutWallFunctionFvPatchScalarField.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int
main
(
int
argc
,
char
*
argv
[])
{
typedef
incompressible
::
RASModels
::
nutWallFunctionFvPatchScalarField
wallFunctionPatchField
;
timeSelector
::
addOptions
();
#include
"setRootCase.H"
#
include "createTime.H"
#
include
"createTime.H"
instantList
timeDirs
=
timeSelector
::
select0
(
runTime
,
args
);
#
include "createMesh.H"
#
include
"createMesh.H"
forAll
(
timeDirs
,
timeI
)
{
...
...
@@ -90,7 +94,7 @@ int main(int argc, char *argv[])
mesh
);
#
include "createPhi.H"
#
include
"createPhi.H"
singlePhaseTransportModel
laminarTransport
(
U
,
phi
);
...
...
@@ -99,26 +103,28 @@ int main(int argc, char *argv[])
incompressible
::
RASModel
::
New
(
U
,
phi
,
laminarTransport
)
);
const
fvPatchList
&
patches
=
mesh
.
boundary
();
const
volScalarField
::
GeometricBoundaryField
nutPatches
=
RASModel
->
nut
()().
boundaryField
();
forAll
(
p
atches
,
patchi
)
forAll
(
nutP
atches
,
patchi
)
{
const
fvPatch
&
currPatch
=
patches
[
patchi
];
if
(
typeid
(
currPatch
)
==
typeid
(
wallFvPatch
))
if
(
isA
<
wallFunctionPatchField
>
(
nutPatches
[
patchi
]))
{
yPlus
.
boundaryField
()[
patchi
]
=
RASModel
->
yPlus
(
patchi
);
const
wallFunctionPatchField
&
nutPw
=
dynamic_cast
<
const
wallFunctionPatchField
&>
(
nutPatches
[
patchi
]);
yPlus
.
boundaryField
()[
patchi
]
=
nutPw
.
yPlus
();
const
scalarField
&
Yp
=
yPlus
.
boundaryField
()[
patchi
];
Info
<<
"Patch "
<<
patchi
<<
" named "
<<
currP
atch
.
name
()
<<
" named "
<<
nutPw
.
p
atch
()
.
name
()
<<
" y+ : min: "
<<
min
(
Yp
)
<<
" max: "
<<
max
(
Yp
)
<<
" average: "
<<
average
(
Yp
)
<<
nl
<<
endl
;
}
}
Info
<<
"Writing yPlus to field "
<<
yPlus
.
name
()
<<
nl
<<
endl
;
Info
<<
"Writing yPlus to field "
<<
yPlus
.
name
()
<<
nl
<<
endl
;
yPlus
.
write
();
}
...
...
@@ -128,4 +134,5 @@ int main(int argc, char *argv[])
return
0
;
}
// ************************************************************************* //
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment