initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / dynamicMesh / setUpdater / setUpdater.H
blobecdb99d9e6e2242cca334e8df384e9eef9d1bc6b
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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 the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
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.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::setUpdater
28 Description
29     Keeps cell/face/vertex sets uptodate. Both the ones loaded and the ones
30     on disk.
32 SourceFiles
33     setUpdater.C
34     setUpdaterTemplates.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef setUpdater_H
39 #define setUpdater_H
41 #include "polyMeshModifier.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
48 /*---------------------------------------------------------------------------*\
49                        Class setUpdater Declaration
50 \*---------------------------------------------------------------------------*/
52 class setUpdater
54     public polyMeshModifier
56     // Private Member Functions
58         //- Updates all sets 
59         template<class Type>
60         void updateSets(const mapPolyMesh& morphMap) const;
62         //- Disallow default bitwise copy construct
63         setUpdater(const setUpdater&);
65         //- Disallow default bitwise assignment
66         void operator=(const setUpdater&);
69 public:
71     //- Runtime type information
72     TypeName("setUpdater");
75     // Constructors
77         //- Construct from dictionary
78         setUpdater
79         (
80             const word& name,
81             const dictionary& dict,
82             const label index,
83             const polyTopoChanger& mme
84         );
87     // Destructor
89         virtual ~setUpdater();
92     // Member Functions
94         //- Check for topology change
95         virtual bool changeTopology() const;
97         //- Insert the layer addition/removal instructions
98         //  into the topological change
99         virtual void setRefinement(polyTopoChange&) const;
101         //- Modify motion points to comply with the topological change
102         virtual void modifyMotionPoints(pointField& motionPoints) const;
104         //- Force recalculation of locally stored data on topological change
105         virtual void updateMesh(const mapPolyMesh&);
107         //- Write
108         virtual void write(Ostream&) const;
110         //- Write dictionary
111         virtual void writeDict(Ostream&) const;
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 } // End namespace Foam
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 #ifdef NoRepository
121 #   include "setUpdaterTemplates.C"
122 #endif
125 #endif
127 // ************************************************************************* //