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
d0e866f2
Commit
d0e866f2
authored
Nov 21, 2009
by
mattijs
Browse files
synchronise flipping on coupled boundaries
parent
a4cfc67f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mesh/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C
View file @
d0e866f2
...
...
@@ -2411,6 +2411,9 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::zonify
}
syncTools
::
swapBoundaryFaceList
(
mesh_
,
neiCellZone
,
false
);
// Get per face whether is it master (of a coupled set of faces)
PackedBoolList
isMasterFace
(
syncTools
::
getMasterFaces
(
mesh_
));
// Set owner as no-flip
forAll
(
patches
,
patchI
)
{
...
...
@@ -2428,14 +2431,27 @@ Foam::autoPtr<Foam::mapPolyMesh> Foam::meshRefinement::zonify
label
neiZone
=
neiCellZone
[
faceI
-
mesh_
.
nInternalFaces
()];
bool
flip
;
if
(
ownZone
==
max
(
ownZone
,
neiZone
))
label
maxZone
=
max
(
ownZone
,
neiZone
);
if
(
maxZone
==
-
1
)
{
flip
=
false
;
}
else
else
if
(
ownZone
==
neiZone
)
{
// Can only happen for coupled boundaries. Keep master
// face unflipped.
flip
=
!
isMasterFace
[
faceI
];
}
else
if
(
neiZone
==
maxZone
)
{
flip
=
true
;
}
else
{
flip
=
false
;
}
meshMod
.
setAction
(
...
...
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