FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

setUpdater.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 Class
00025     Foam::setUpdater
00026 
00027 Description
00028     Keeps cell/face/vertex sets uptodate. Both the ones loaded and the ones
00029     on disk.
00030 
00031 SourceFiles
00032     setUpdater.C
00033     setUpdaterTemplates.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef setUpdater_H
00038 #define setUpdater_H
00039 
00040 #include <dynamicMesh/polyMeshModifier.H>
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 /*---------------------------------------------------------------------------*\
00048                        Class setUpdater Declaration
00049 \*---------------------------------------------------------------------------*/
00050 
00051 class setUpdater
00052 :
00053     public polyMeshModifier
00054 {
00055     // Private Member Functions
00056 
00057         //- Updates all sets 
00058         template<class Type>
00059         void updateSets(const mapPolyMesh& morphMap) const;
00060 
00061         //- Disallow default bitwise copy construct
00062         setUpdater(const setUpdater&);
00063 
00064         //- Disallow default bitwise assignment
00065         void operator=(const setUpdater&);
00066 
00067 
00068 public:
00069 
00070     //- Runtime type information
00071     TypeName("setUpdater");
00072 
00073 
00074     // Constructors
00075 
00076         //- Construct from dictionary
00077         setUpdater
00078         (
00079             const word& name,
00080             const dictionary& dict,
00081             const label index,
00082             const polyTopoChanger& mme
00083         );
00084 
00085 
00086     // Destructor
00087 
00088         virtual ~setUpdater();
00089 
00090 
00091     // Member Functions
00092 
00093         //- Check for topology change
00094         virtual bool changeTopology() const;
00095 
00096         //- Insert the layer addition/removal instructions
00097         //  into the topological change
00098         virtual void setRefinement(polyTopoChange&) const;
00099 
00100         //- Modify motion points to comply with the topological change
00101         virtual void modifyMotionPoints(pointField& motionPoints) const;
00102 
00103         //- Force recalculation of locally stored data on topological change
00104         virtual void updateMesh(const mapPolyMesh&);
00105 
00106         //- Write
00107         virtual void write(Ostream&) const;
00108 
00109         //- Write dictionary
00110         virtual void writeDict(Ostream&) const;
00111 };
00112 
00113 
00114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00115 
00116 } // End namespace Foam
00117 
00118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00119 #ifdef NoRepository
00120 #   include <dynamicMesh/setUpdaterTemplates.C>
00121 #endif
00122 
00123 
00124 #endif
00125 
00126 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines