attachPolyTopoChanger.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9  Copyright (C) 2019 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::attachPolyTopoChanger
29 
30 Description
31  This class is derived from polyMesh and serves as a tool for
32  statically connecting pieces of a mesh by executing the mesh
33  modifiers and cleaning the mesh.
34 
35  The idea is that a mesh can be built from pieces and put together
36  using various mesh modifiers (mainly sliding interfaces) which are
37  not needed during the run. Therefore, once the mesh is assembled
38  and mesh modification triggered, the newly created point, face and
39  cell zones can be cleared together with the mesh modifiers thus
40  creating a singly connected static mesh.
41 
42  Note:
43  All point, face and cell zoning will be lost! Do it after
44  attaching the parts of the mesh, as the point, face and cell
45  numbering changes.
46 
47 \*---------------------------------------------------------------------------*/
48 
49 #ifndef attachPolyTopoChanger_H
50 #define attachPolyTopoChanger_H
51 
52 #include "polyTopoChanger.H"
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 namespace Foam
57 {
58 
59 /*---------------------------------------------------------------------------*\
60  Class attachPolyTopoChanger Declaration
61 \*---------------------------------------------------------------------------*/
62 
64 :
65  public polyTopoChanger
66 {
67  // Private data
68 
69  // Private Member Functions
70 
71  //- No copy construct
73 
74  //- No copy assignment
75  void operator=(const attachPolyTopoChanger&) = delete;
76 
77 
78 public:
79 
80  // Constructors
81 
82  //- Read constructor from IOobject and a polyMesh
84 
85  //- Read constructor for given polyMesh
87 
88 
89  //- Destructor
90  virtual ~attachPolyTopoChanger() = default;
91 
92 
93  // Member Functions
94 
95  //- Attach mesh. By default filter out empty patches.
96  void attach(const bool removeEmptyPatches = true);
97 };
98 
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 } // End namespace Foam
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::attachPolyTopoChanger::attach
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
Definition: attachPolyTopoChanger.C:55
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:169
Foam::polyTopoChanger
List of mesh modifiers defining the mesh dynamics.
Definition: polyTopoChanger.H:62
polyTopoChanger.H
Foam::attachPolyTopoChanger
This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh b...
Definition: attachPolyTopoChanger.H:62
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::attachPolyTopoChanger::~attachPolyTopoChanger
virtual ~attachPolyTopoChanger()=default
Destructor.