![]() |
|
00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2005 OpenCFD Ltd. 00006 \\/ M anipulation | 00007 ------------------------------------------------------------------------------- 00008 License 00009 This file is part of OpenFOAM. 00010 00011 OpenFOAM is free software; you can redistribute it and/or modify it 00012 under the terms of the GNU General Public License as published by the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 option) any later version. 00015 00016 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00019 for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with OpenFOAM; if not, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 setUpdater 00027 00028 Description 00029 Keeps cell/face/vertex sets uptodate. Both the ones loaded and the ones 00030 on disk. 00031 00032 SourceFiles 00033 setUpdater.C 00034 setUpdaterTemplates.C 00035 00036 \*---------------------------------------------------------------------------*/ 00037 00038 #ifndef setUpdater_H 00039 #define setUpdater_H 00040 00041 #include "polyMeshModifier.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class setUpdater Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class setUpdater 00053 : 00054 public polyMeshModifier 00055 { 00056 // Private Member Functions 00057 00058 //- Updates all sets 00059 template<class Type> 00060 void updateSets(const mapPolyMesh& morphMap) const; 00061 00062 //- Disallow default bitwise copy construct 00063 setUpdater(const setUpdater&); 00064 00065 //- Disallow default bitwise assignment 00066 void operator=(const setUpdater&); 00067 00068 00069 public: 00070 00071 //- Runtime type information 00072 TypeName("setUpdater"); 00073 00074 00075 // Constructors 00076 00077 //- Construct from dictionary 00078 setUpdater 00079 ( 00080 const word& name, 00081 const dictionary& dict, 00082 const label index, 00083 const polyTopoChanger& mme 00084 ); 00085 00086 00087 // Destructor 00088 00089 virtual ~setUpdater(); 00090 00091 00092 // Member Functions 00093 00094 //- Check for topology change 00095 virtual bool changeTopology() const; 00096 00097 //- Insert the layer addition/removal instructions 00098 // into the topological change 00099 virtual void setRefinement(polyTopoChange&) const; 00100 00101 //- Modify motion points to comply with the topological change 00102 virtual void modifyMotionPoints(pointField& motionPoints) const; 00103 00104 //- Force recalculation of locally stored data on topological change 00105 virtual void updateMesh(const mapPolyMesh&); 00106 00107 //- Write 00108 virtual void write(Ostream&) const; 00109 00110 //- Write dictionary 00111 virtual void writeDict(Ostream&) const; 00112 }; 00113 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 } // End namespace Foam 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 #ifdef NoRepository 00121 # include "setUpdaterTemplates.C" 00122 #endif 00123 00124 00125 #endif 00126 00127 // ************************************************************************* //