Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9dad3779
Commit
9dad3779
authored
Oct 01, 2013
by
mattijs
Browse files
ENH: snappyHexMesh: disable patch face merging across baffles
parent
96bf92a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoLayerDriver.C
View file @
9dad3779
...
...
@@ -2450,8 +2450,8 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
const
dictionary
&
motionDict
)
{
// Clip to
45
degrees
scalar
planarAngle
=
min
(
45
.
0
,
layerParams
.
featureAngle
());
// Clip to
30
degrees
scalar
planarAngle
=
min
(
30
.
0
,
layerParams
.
featureAngle
());
scalar
minCos
=
Foam
::
cos
(
degToRad
(
planarAngle
));
scalar
concaveCos
=
Foam
::
cos
(
degToRad
(
layerParams
.
concaveAngle
()));
...
...
@@ -2472,13 +2472,30 @@ void Foam::autoLayerDriver::mergePatchFacesUndo
const
fvMesh
&
mesh
=
meshRefiner_
.
mesh
();
List
<
labelPair
>
couples
(
meshRefiner_
.
getDuplicateFaces
// get all baffles
(
identity
(
mesh
.
nFaces
()
-
mesh
.
nInternalFaces
())
+
mesh
.
nInternalFaces
()
)
);
labelList
duplicateFace
(
mesh
.
nFaces
(),
-
1
);
forAll
(
couples
,
i
)
{
const
labelPair
&
cpl
=
couples
[
i
];
duplicateFace
[
cpl
[
0
]]
=
cpl
[
1
];
duplicateFace
[
cpl
[
1
]]
=
cpl
[
0
];
}
label
nChanged
=
meshRefiner_
.
mergePatchFacesUndo
(
minCos
,
concaveCos
,
meshRefiner_
.
meshedPatches
(),
motionDict
,
labelList
(
mesh
.
nFaces
(),
-
1
)
duplicateFace
);
nChanged
+=
meshRefiner_
.
mergeEdgesUndo
(
minCos
,
motionDict
);
...
...
Write
Preview
Markdown
is supported
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