1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
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
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
29 Keeps cell/face/vertex sets uptodate. Both the ones loaded and the ones
36 \*---------------------------------------------------------------------------*/
41 #include "polyMeshModifier.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class setUpdater Declaration
50 \*---------------------------------------------------------------------------*/
54 public polyMeshModifier
56 // Private Member Functions
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&);
71 //- Runtime type information
72 TypeName("setUpdater");
77 //- Construct from dictionary
81 const dictionary& dict,
83 const polyTopoChanger& mme
89 virtual ~setUpdater();
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&);
108 virtual void write(Ostream&) const;
111 virtual void writeDict(Ostream&) const;
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 } // End namespace Foam
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
121 # include "setUpdaterTemplates.C"
127 // ************************************************************************* //