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
31bfd400
Commit
31bfd400
authored
Aug 14, 2019
by
mattijs
Committed by
Andrew Heather
Aug 14, 2019
Browse files
ENH: globalMeshData - added else branch so that in the case of a cyclic baffle
edge it sets the globalEdgeOrientation See
#1367
parent
dec82168
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/meshes/polyMesh/globalMeshData/globalMeshData.C
View file @
31bfd400
...
...
@@ -1185,35 +1185,37 @@ void Foam::globalMeshData::calcGlobalEdgeOrientation() const
forAll
(
coupledPatch
().
edges
(),
edgeI
)
{
if
(
masterEdgeVerts
[
edgeI
]
==
labelPair
(
labelMax
,
labelMax
))
// Test that edge is not single edge on cyclic baffle
if
(
masterEdgeVerts
[
edgeI
]
!=
labelPair
(
labelMax
,
labelMax
))
{
// Skip single edge on cyclic baffle
continue
;
}
const
edge
&
e
=
coupledPatch
().
edges
()[
edgeI
];
const
labelPair
masterE
(
masterPoint
[
e
[
0
]],
masterPoint
[
e
[
1
]]
);
const
edge
&
e
=
coupledPatch
().
edges
()[
edgeI
];
const
labelPair
masterE
(
masterPoint
[
e
[
0
]],
masterPoint
[
e
[
1
]]
);
const
int
stat
=
labelPair
::
compare
(
masterE
,
masterEdgeVerts
[
edgeI
]
);
if
(
stat
==
0
)
{
FatalErrorInFunction
<<
"problem : my edge:"
<<
e
<<
" in master points:"
<<
masterE
<<
" v.s. masterEdgeVerts:"
<<
masterEdgeVerts
[
edgeI
]
<<
exit
(
FatalError
);
const
int
stat
=
labelPair
::
compare
(
masterE
,
masterEdgeVerts
[
edgeI
]
);
if
(
stat
==
0
)
{
FatalErrorInFunction
<<
"problem : my edge:"
<<
e
<<
" in master points:"
<<
masterE
<<
" v.s. masterEdgeVerts:"
<<
masterEdgeVerts
[
edgeI
]
<<
exit
(
FatalError
);
}
else
{
globalEdgeOrientation
.
set
(
edgeI
,
(
stat
==
1
));
}
}
else
{
globalEdgeOrientation
.
set
(
edgeI
,
(
stat
==
1
)
);
globalEdgeOrientation
.
set
(
edgeI
,
true
);
}
}
}
...
...
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