OpenFOAM logo
Open Source CFD Toolkit

pointSet.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-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     pointSet
00027 
00028 Description
00029     Set of point labels.
00030 
00031 SourceFiles
00032     pointSet.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef pointSet_H
00037 #define pointSet_H
00038 
00039 #include "topoSet.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                            Class pointSet Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class pointSet
00051 :
00052     public topoSet
00053 {
00054 
00055 
00056 public:
00057 
00058     //- Runtime type information
00059     TypeName("pointSet");
00060 
00061 
00062     // Constructors
00063 
00064 
00065         //- Construct from IOobject
00066         pointSet(const IOobject& obj);
00067 
00068         //- Construct from objectRegistry and name
00069         pointSet
00070         (
00071             const polyMesh& mesh,
00072             const word& name,
00073             readOption r=MUST_READ,
00074             writeOption w=NO_WRITE
00075         );
00076 
00077         //- Construct from additional size of labelHashSet
00078         pointSet
00079         (
00080             const polyMesh& mesh,
00081             const word& name,
00082             const label,
00083             writeOption w=NO_WRITE
00084         );
00085 
00086         //- Construct from additional labelHashSet
00087         pointSet
00088         (
00089             const polyMesh& mesh,
00090             const word& name,
00091             const labelHashSet&,
00092             writeOption w=NO_WRITE
00093         );
00094 
00095 
00096     // Destructor
00097 
00098         virtual ~pointSet();
00099 
00100 
00101     // Member functions
00102 
00103         //- Sync set across coupled patches.
00104         //NOTE: to be done!
00105         virtual void sync(const polyMesh& mesh)
00106         {}
00107 
00108         //- Return max index+1.
00109         virtual label maxSize(const polyMesh& mesh) const;
00110 
00111         //- Update any stored data for new labels
00112         virtual void updateMesh(const mapPolyMesh& morphMap);
00113 
00114         //- Update any stored data for new labels
00115         //virtual void updateMesh(const directPolyTopoChange& meshMod);
00116 
00117         //- Write maxLen items with label and coordinates. 
00118         virtual void writeDebug
00119         (
00120             Ostream& os,
00121             const primitiveMesh&,
00122             const label maxLen
00123         ) const;
00124 
00125 };
00126 
00127 
00128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00129 
00130 } // End namespace Foam
00131 
00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00133 
00134 #endif
00135 
00136 // ************************************************************************* //
For further information go to www.openfoam.org