|
|
|
duplicatePoints.HGo 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-2009 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 Foam::duplicatePoints 00027 00028 Description 00029 Duplicate points 00030 00031 SourceFiles 00032 duplicatePoints.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef duplicatePoints_H 00037 #define duplicatePoints_H 00038 00039 #include "labelList.H" 00040 #include "typeInfo.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 // Forward declaration of classes 00048 class polyMesh; 00049 class polyTopoChange; 00050 class edge; 00051 class face; 00052 class mapPolyMesh; 00053 class localPointRegion; 00054 00055 /*---------------------------------------------------------------------------*\ 00056 Class duplicatePoints Declaration 00057 \*---------------------------------------------------------------------------*/ 00058 00059 class duplicatePoints 00060 { 00061 // Private data 00062 00063 //- Reference to mesh 00064 const polyMesh& mesh_; 00065 00066 //- Per regionSide.pointRegion() the points created. 00067 // element 0 is the original point. 00068 // Can have empty entries if a point only has one region. 00069 labelListList duplicates_; 00070 00071 00072 // Private Member Functions 00073 00074 //- Disallow default bitwise copy construct 00075 duplicatePoints(const duplicatePoints&); 00076 00077 //- Disallow default bitwise assignment 00078 void operator=(const duplicatePoints&); 00079 00080 public: 00081 00082 //- Runtime type information 00083 ClassName("duplicatePoints"); 00084 00085 00086 // Constructors 00087 00088 //- Construct from mesh 00089 duplicatePoints(const polyMesh& mesh); 00090 00091 00092 // Member Functions 00093 00094 // Access 00095 00096 //- Per point in regionSide.pointRegions() the points created. 00097 const labelListList& duplicates() const 00098 { 00099 return duplicates_; 00100 } 00101 00102 00103 // Topology changes 00104 00105 //- Play commands into polyTopoChange to duplicate points. Gets 00106 // localPointRegion structure which is per non-manifold point 00107 // the regions per point. 00108 void setRefinement 00109 ( 00110 const localPointRegion& regionSide, 00111 polyTopoChange& 00112 ); 00113 00114 //- Force recalculation of locally stored data on topological change 00115 void updateMesh(const mapPolyMesh&); 00116 }; 00117 00118 00119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00120 00121 } // End namespace Foam 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 #endif 00126 00127 // ************************************************************************* // |