Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
dynamicMesh
polyTopoChange
repatchPolyTopoChanger
repatchPolyTopoChanger.H
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
Class
25
Foam::repatchPolyTopoChanger
26
27
Description
28
A mesh which allows changes in the patch distribution of the
29
boundary faces. The change in patching is set using changePatchID. For a
30
boundary face, a new patch ID is given.
31
32
SourceFiles
33
repatchPolyTopoChanger.C
34
35
\*---------------------------------------------------------------------------*/
36
37
#ifndef repatchPolyTopoChanger_H
38
#define repatchPolyTopoChanger_H
39
40
#include <
OpenFOAM/polyMesh.H
>
41
#include <
dynamicMesh/polyTopoChange.H
>
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
48
/*---------------------------------------------------------------------------*\
49
Class repatchPolyTopoChanger Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
repatchPolyTopoChanger
53
{
54
// Private data
55
56
//- The polyMesh to be repatched
57
polyMesh
& mesh_;
58
59
//- Topological change to accumulated all mesh changes
60
autoPtr<polyTopoChange>
meshModPtr_;
61
62
63
// Private Member Functions
64
65
//- Demand driven access to polyTopoChange
66
polyTopoChange
& meshMod();
67
68
//- Disallow default bitwise copy construct
69
repatchPolyTopoChanger
(
const
repatchPolyTopoChanger
&);
70
71
//- Disallow default bitwise assignment
72
void
operator=(
const
repatchPolyTopoChanger
&);
73
74
75
public
:
76
77
// Constructors
78
79
//- Construct for given mesh
80
explicit
repatchPolyTopoChanger
(
polyMesh
&
mesh
);
81
82
83
// Destructor
84
85
virtual
~repatchPolyTopoChanger
()
86
{}
87
88
89
// Member Functions
90
91
//- Change patches.
92
void
changePatches
(
const
List<polyPatch*>
&
patches
);
93
94
//- Change patch ID for a boundary face. Note: patchID should be in new
95
// numbering.
96
void
changePatchID
97
(
98
const
label faceID,
99
const
label patchID
100
);
101
102
//- Set zone ID for a face
103
void
setFaceZone
104
(
105
const
label faceID,
106
const
label zoneID,
107
const
bool
zoneFlip
108
);
109
110
//- Change anchor point (zero'th point of face) for a boundary face.
111
void
changeAnchorPoint
112
(
113
const
label faceID,
114
const
label fp
115
);
116
117
118
//- Re-patch the mesh
119
void
repatch
();
120
};
121
122
123
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124
125
}
// End namespace Foam
126
127
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
128
129
#endif
130
131
// ************************ vim: set sw=4 sts=4 et: ************************ //