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

ensightPartFaces.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::ensightPartFaces
00026 
00027 Description
00028     An implementation of ensightPart to hold volume mesh faces.
00029 
00030 SourceFiles
00031     ensightPartFaces.C
00032 
00033 \*---------------------------------------------------------------------------*/
00034 
00035 #ifndef ensightPartFaces_H
00036 #define ensightPartFaces_H
00037 
00038 #include <conversion/ensightPart.H>
00039 
00040 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00041 
00042 namespace Foam
00043 {
00044 
00045 /*---------------------------------------------------------------------------*\
00046                      Class ensightPartFaces Declaration
00047 \*---------------------------------------------------------------------------*/
00048 
00049 class ensightPartFaces
00050 :
00051     public ensightPart
00052 {
00053     // Private Member Functions
00054 
00055         //- Disallow default bitwise assignment
00056         void operator=(const ensightPartFaces&);
00057 
00058         //- track points used
00059         virtual localPoints calcLocalPoints() const;
00060 
00061         //- element connectivity
00062         virtual void writeConnectivity
00063         (
00064             ensightGeoFile& os,
00065             const string& key,
00066             const labelList& idList,
00067             const labelList& pointMap
00068         ) const;
00069 
00070 
00071 protected:
00072 
00073     //- addressable ensight element types
00074     enum elemType
00075     {
00076         tria3Elements,
00077         quad4Elements,
00078         nsidedElements
00079     };
00080 
00081     // Static data members
00082     static List<word> elemTypes_;
00083 
00084 
00085 public:
00086 
00087     //- Runtime type information
00088     TypeName("ensightFaces");
00089 
00090     // Constructors
00091 
00092         //- Construct empty part with number and description
00093         ensightPartFaces(label partNumber, const string& partDescription);
00094 
00095         //- Construct from polyMesh and polyPatch
00096         ensightPartFaces
00097         (
00098             label partNumber,
00099             const polyMesh&,
00100             const polyPatch&
00101         );
00102 
00103         //- Construct as copy
00104         ensightPartFaces(const ensightPartFaces&);
00105 
00106         //- Construct from Istream
00107         ensightPartFaces(Istream&);
00108 
00109         //- Construct on freestore from Istream
00110         static autoPtr<ensightPartFaces> New(Istream& is)
00111         {
00112             return autoPtr<ensightPartFaces>(new ensightPartFaces(is));
00113         }
00114 
00115 
00116     //- Destructor
00117     virtual ~ensightPartFaces();
00118 
00119 
00120     // Member Functions
00121 
00122         //- static listing of the element types
00123         virtual List<word> const& elementTypes() const
00124         {
00125             return elemTypes_;
00126         }
00127 };
00128 
00129 
00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00131 
00132 } // End namespace Foam
00133 
00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00135 
00136 #endif
00137 
00138 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines