Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
9ff25596
Commit
9ff25596
authored
15 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
added feedback in the case that no valid nut/mut BCs are identified
parent
567453c7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C
+18
-0
18 additions, 0 deletions
...cations/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C
with
18 additions
and
0 deletions
applications/utilities/postProcessing/wall/yPlusRAS/yPlusRAS.C
+
18
−
0
View file @
9ff25596
...
@@ -71,10 +71,13 @@ void calcIncompressibleYPlus
...
@@ -71,10 +71,13 @@ void calcIncompressibleYPlus
const
volScalarField
::
GeometricBoundaryField
nutPatches
=
const
volScalarField
::
GeometricBoundaryField
nutPatches
=
RASModel
->
nut
()().
boundaryField
();
RASModel
->
nut
()().
boundaryField
();
bool
foundNutPatch
=
false
;
forAll
(
nutPatches
,
patchi
)
forAll
(
nutPatches
,
patchi
)
{
{
if
(
isA
<
wallFunctionPatchField
>
(
nutPatches
[
patchi
]))
if
(
isA
<
wallFunctionPatchField
>
(
nutPatches
[
patchi
]))
{
{
foundNutPatch
=
true
;
const
wallFunctionPatchField
&
nutPw
=
const
wallFunctionPatchField
&
nutPw
=
dynamic_cast
<
const
wallFunctionPatchField
&>
dynamic_cast
<
const
wallFunctionPatchField
&>
(
nutPatches
[
patchi
]);
(
nutPatches
[
patchi
]);
...
@@ -88,6 +91,12 @@ void calcIncompressibleYPlus
...
@@ -88,6 +91,12 @@ void calcIncompressibleYPlus
<<
" average: "
<<
average
(
Yp
)
<<
nl
<<
endl
;
<<
" average: "
<<
average
(
Yp
)
<<
nl
<<
endl
;
}
}
}
}
if
(
!
foundNutPatch
)
{
Info
<<
" no "
<<
wallFunctionPatchField
::
typeName
<<
" patches"
<<
endl
;
}
}
}
...
@@ -142,10 +151,13 @@ void calcCompressibleYPlus
...
@@ -142,10 +151,13 @@ void calcCompressibleYPlus
const
volScalarField
::
GeometricBoundaryField
mutPatches
=
const
volScalarField
::
GeometricBoundaryField
mutPatches
=
RASModel
->
mut
()().
boundaryField
();
RASModel
->
mut
()().
boundaryField
();
bool
foundMutPatch
=
false
;
forAll
(
mutPatches
,
patchi
)
forAll
(
mutPatches
,
patchi
)
{
{
if
(
isA
<
wallFunctionPatchField
>
(
mutPatches
[
patchi
]))
if
(
isA
<
wallFunctionPatchField
>
(
mutPatches
[
patchi
]))
{
{
foundMutPatch
=
true
;
const
wallFunctionPatchField
&
mutPw
=
const
wallFunctionPatchField
&
mutPw
=
dynamic_cast
<
const
wallFunctionPatchField
&>
dynamic_cast
<
const
wallFunctionPatchField
&>
(
mutPatches
[
patchi
]);
(
mutPatches
[
patchi
]);
...
@@ -159,6 +171,12 @@ void calcCompressibleYPlus
...
@@ -159,6 +171,12 @@ void calcCompressibleYPlus
<<
" average: "
<<
average
(
Yp
)
<<
nl
<<
endl
;
<<
" average: "
<<
average
(
Yp
)
<<
nl
<<
endl
;
}
}
}
}
if
(
!
foundMutPatch
)
{
Info
<<
" no "
<<
wallFunctionPatchField
::
typeName
<<
" patches"
<<
endl
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment