OpenFOAM: API Guide
v2112
The open source CFD toolbox
handleCyclicPatches.H
Go to the documentation of this file.
1
// Detect any cyclic patches and force re-ordering of the faces
2
{
3
bool
hasCyclic =
false
;
4
for
(
const
polyPatch& pp :
mesh
.boundaryMesh())
5
{
6
if
(isA<cyclicPolyPatch>(pp))
7
{
8
hasCyclic =
true
;
9
break
;
10
}
11
}
12
13
if
(hasCyclic)
14
{
15
Info<< nl <<
"Detected cyclic patches; ordering boundary faces"
<< endl;
16
17
const
word oldInstance =
mesh
.instance();
18
polyTopoChange meshMod(
mesh
);
19
meshMod.changeMesh(
mesh
,
false
);
20
mesh
.setInstance(oldInstance);
21
}
22
}
mesh
dynamicFvMesh & mesh
Definition:
createDynamicFvMesh.H:6
applications
utilities
mesh
generation
blockMesh
handleCyclicPatches.H
Generated by
1.9.5
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.