OpenFOAM logo
Open Source CFD Toolkit

cellAddressing.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     cellAddressing
00027 
00028 Description
00029     Additional addressing for a cellModel. (cellModel themselves only
00030     contain cell-points). Used in cellFeatures class.
00031 
00032 SourceFiles
00033     cellAddressing.C
00034 
00035 \*---------------------------------------------------------------------------*/
00036 
00037 #ifndef cellAddressing_H
00038 #define cellAddressing_H
00039 
00040 #include "cellModel.H"
00041 
00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00043 
00044 namespace Foam
00045 {
00046 
00047 // Class forward declarations
00048 class cellModel;
00049 
00050 /*---------------------------------------------------------------------------*\
00051                            Class cellAddressing Declaration
00052 \*---------------------------------------------------------------------------*/
00053 
00054 class cellAddressing
00055 {
00056     // Private data
00057 
00058         faceList modelFaces_;
00059 
00060         edgeList edges_;
00061 
00062         labelListList edgeFaces_;
00063 
00064         labelListList faceEdges_;
00065 
00066         labelListList pointEdges_;
00067 
00068     // Private static functions        
00069 
00070         static labelList makeIdentity(const label size);
00071 
00072     // Private static functions        
00073 
00074         label findEdge(const edge& e); 
00075 
00076 public:
00077 
00078     // Constructors
00079 
00080         //- Construct from components
00081         cellAddressing(const cellModel& model);
00082 
00083     // Destructor
00084 
00085     // Member Functions
00086 
00087         // Access
00088 
00089             inline const faceList& modelFaces() const
00090             {
00091                 return modelFaces_;
00092             }
00093 
00094             inline const edgeList& edges() const
00095             {
00096                 return edges_;
00097             }
00098 
00099             inline const labelListList& edgeFaces() const
00100             {
00101                 return edgeFaces_;
00102             }
00103 
00104             inline const labelListList& faceEdges() const
00105             {
00106                 return faceEdges_;
00107             }
00108 
00109             inline const labelListList& pointEdges() const
00110             {
00111                 return pointEdges_;
00112             }
00113 
00114 
00115         // Check
00116 
00117         // Edit
00118 
00119         // Write
00120 
00121 
00122     // Member Operators
00123 
00124     // Friend Functions
00125 
00126     // Friend Operators
00127 
00128     // IOstream Operators
00129 
00130 };
00131 
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 } // End namespace Foam
00136 
00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00138 
00139 //#include "cellAddressingI.H"
00140 
00141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00142 
00143 #endif
00144 
00145 // ************************************************************************* //
For further information go to www.openfoam.org