Skip to content
GitLab
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
37bf8b44
Commit
37bf8b44
authored
Apr 12, 2013
by
mattijs
Browse files
ENH: layerParameters: added smoothing parameter
parent
81a8da13
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C
View file @
37bf8b44
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -138,6 +138,7 @@ Foam::layerParameters::layerParameters
readLabel
(
dict
.
lookup
(
"nSmoothSurfaceNormals"
))
),
nSmoothNormals_
(
readLabel
(
dict
.
lookup
(
"nSmoothNormals"
))),
nSmoothDisplacement_
(
dict
.
lookupOrDefault
(
"nSmoothDisplacement"
,
0
)),
nSmoothThickness_
(
readLabel
(
dict
.
lookup
(
"nSmoothThickness"
))),
maxFaceThicknessRatio_
(
...
...
@@ -278,7 +279,7 @@ Foam::layerParameters::layerParameters
const
keyType
&
key
=
iter
().
keyword
();
const
labelHashSet
patchIDs
(
boundaryMesh
.
patchSet
(
List
<
wordRe
>
(
1
,
key
))
boundaryMesh
.
patchSet
(
List
<
wordRe
>
(
1
,
wordRe
(
key
))
)
);
if
(
patchIDs
.
size
()
==
0
)
...
...
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.H
View file @
37bf8b44
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -119,6 +119,8 @@ private:
label
nSmoothNormals_
;
label
nSmoothDisplacement_
;
label
nSmoothThickness_
;
scalar
maxFaceThicknessRatio_
;
...
...
@@ -275,6 +277,12 @@ public:
return
layerTerminationCos_
;
}
//- Smooth internal displacement
label
nSmoothDisplacement
()
const
{
return
nSmoothDisplacement_
;
}
//- Smooth layer thickness over surface patches
label
nSmoothThickness
()
const
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment