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
setUpdater
setUpdater.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::setUpdater
26
27
Description
28
Keeps cell/face/vertex sets uptodate. Both the ones loaded and the ones
29
on disk.
30
31
SourceFiles
32
setUpdater.C
33
setUpdaterTemplates.C
34
35
\*---------------------------------------------------------------------------*/
36
37
#ifndef setUpdater_H
38
#define setUpdater_H
39
40
#include <
dynamicMesh/polyMeshModifier.H
>
41
42
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43
44
namespace
Foam
45
{
46
47
/*---------------------------------------------------------------------------*\
48
Class setUpdater Declaration
49
\*---------------------------------------------------------------------------*/
50
51
class
setUpdater
52
:
53
public
polyMeshModifier
54
{
55
// Private Member Functions
56
57
//- Updates all sets
58
template
<
class
Type>
59
void
updateSets(
const
mapPolyMesh
& morphMap)
const
;
60
61
//- Disallow default bitwise copy construct
62
setUpdater
(
const
setUpdater
&);
63
64
//- Disallow default bitwise assignment
65
void
operator=(
const
setUpdater
&);
66
67
68
public
:
69
70
//- Runtime type information
71
TypeName
(
"setUpdater"
);
72
73
74
// Constructors
75
76
//- Construct from dictionary
77
setUpdater
78
(
79
const
word
&
name
,
80
const
dictionary
& dict,
81
const
label
index
,
82
const
polyTopoChanger
& mme
83
);
84
85
86
// Destructor
87
88
virtual
~setUpdater
();
89
90
91
// Member Functions
92
93
//- Check for topology change
94
virtual
bool
changeTopology
()
const
;
95
96
//- Insert the layer addition/removal instructions
97
// into the topological change
98
virtual
void
setRefinement
(
polyTopoChange
&)
const
;
99
100
//- Modify motion points to comply with the topological change
101
virtual
void
modifyMotionPoints
(
pointField
& motionPoints)
const
;
102
103
//- Force recalculation of locally stored data on topological change
104
virtual
void
updateMesh
(
const
mapPolyMesh
&);
105
106
//- Write
107
virtual
void
write
(
Ostream
&)
const
;
108
109
//- Write dictionary
110
virtual
void
writeDict
(
Ostream
&)
const
;
111
};
112
113
114
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116
}
// End namespace Foam
117
118
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119
#ifdef NoRepository
120
# include <
dynamicMesh/setUpdaterTemplates.C
>
121
#endif
122
123
124
#endif
125
126
// ************************ vim: set sw=4 sts=4 et: ************************ //