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 Foam_attachPolyTopoChanger_H
50 #define Foam_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 public:
68 
69  // Generated Methods
70 
71  //- No copy construct
73 
74  //- No copy assignment
75  void operator=(const attachPolyTopoChanger&) = delete;
76 
77 
78  // Constructors
79 
80  //- Read constructor from IOobject and a polyMesh
82 
83  //- Read constructor for given polyMesh
85 
86 
87  //- Destructor
88  virtual ~attachPolyTopoChanger() = default;
89 
90 
91  // Member Functions
92 
93  //- Attach mesh. By default filter out empty patches.
94  void attach(const bool removeEmptyPatches = true);
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 #endif
106 
107 // ************************************************************************* //
attachPolyTopoChanger(const attachPolyTopoChanger &)=delete
No copy construct.
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
List of mesh modifiers defining the mesh dynamics.
This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh b...
virtual ~attachPolyTopoChanger()=default
Destructor.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:73
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition: IOobject.H:171
void operator=(const attachPolyTopoChanger &)=delete
No copy assignment.
Namespace for OpenFOAM.