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
03d6e658
Commit
03d6e658
authored
Sep 04, 2013
by
mattijs
Browse files
BUG: autoLayerDriver: initialisation of face merge candidates
parent
f41faf5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
View file @
03d6e658
...
...
@@ -2450,17 +2450,17 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
const
dictionary
&
motionDict
)
{
scalar
minCos
=
Foam
::
cos
(
degToRad
(
layerParams
.
featureAngle
()));
// Clip to 45 degrees
scalar
planarAngle
=
min
(
45
.
0
,
layerParams
.
featureAngle
());
scalar
minCos
=
Foam
::
cos
(
degToRad
(
planarAngle
));
scalar
concaveCos
=
Foam
::
cos
(
degToRad
(
layerParams
.
concaveAngle
()));
scalar
concaveCos
=
Foam
::
cos
(
degToRad
(
layerParams
.
concaveAngle
()));
Info
<<
nl
<<
"Merging all faces of a cell"
<<
nl
<<
"---------------------------"
<<
nl
<<
" - which are on the same patch"
<<
nl
<<
" - which make an angle < "
<<
la
yerParams
.
feature
Angle
()
<<
" - which make an angle < "
<<
p
la
nar
Angle
<<
" degrees"
<<
nl
<<
" (cos:"
<<
minCos
<<
')'
<<
nl
...
...
@@ -2478,7 +2478,7 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
concaveCos
,
meshRefiner_
.
meshedPatches
(),
motionDict
,
labelList
(
mesh
.
nFaces
()
-
1
)
labelList
(
mesh
.
nFaces
()
,
-
1
)
);
nChanged
+=
meshRefiner_
.
mergeEdgesUndo
(
minCos
,
motionDict
);
...
...
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