OpenFOAM
v2312
The open source CFD toolbox
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
63
class
attachPolyTopoChanger
64
:
65
public
polyTopoChanger
66
{
67
public
:
68
69
// Generated Methods
70
71
//- No copy construct
72
attachPolyTopoChanger
(
const
attachPolyTopoChanger
&) =
delete
;
73
74
//- No copy assignment
75
void
operator=
(
const
attachPolyTopoChanger
&) =
delete
;
76
77
78
// Constructors
79
80
//- Read constructor from IOobject and a polyMesh
81
attachPolyTopoChanger
(
const
IOobject
&
io
,
polyMesh
&);
82
83
//- Read constructor for given polyMesh
84
explicit
attachPolyTopoChanger
(
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
// ************************************************************************* //
Foam::attachPolyTopoChanger::attachPolyTopoChanger
attachPolyTopoChanger(const attachPolyTopoChanger &)=delete
No copy construct.
Foam::attachPolyTopoChanger::attach
void attach(const bool removeEmptyPatches=true)
Attach mesh. By default filter out empty patches.
Definition:
attachPolyTopoChanger.C:49
Foam::polyTopoChanger
List of mesh modifiers defining the mesh dynamics.
Definition:
polyTopoChanger.H:58
Foam::attachPolyTopoChanger
This class is derived from polyMesh and serves as a tool for statically connecting pieces of a mesh b...
Definition:
attachPolyTopoChanger.H:56
Foam::attachPolyTopoChanger::~attachPolyTopoChanger
virtual ~attachPolyTopoChanger()=default
Destructor.
polyTopoChanger.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition:
polyMesh.H:74
io
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
Foam::IOobject
Defines the attributes of an object for which implicit objectRegistry management is supported...
Definition:
IOobject.H:172
Foam::attachPolyTopoChanger::operator=
void operator=(const attachPolyTopoChanger &)=delete
No copy assignment.
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:26
src
dynamicMesh
polyTopoChange
attachPolyTopoChanger
attachPolyTopoChanger.H
Generated by
1.8.14