1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2008-2011 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
11 OpenFOAM is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
16 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 Foam::ensightPartCells
28 An implementation of ensightPart to hold volume mesh cells.
33 \*---------------------------------------------------------------------------*/
35 #ifndef ensightPartCells_H
36 #define ensightPartCells_H
38 #include "ensightPart.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class ensightPartCells Declaration
48 \*---------------------------------------------------------------------------*/
50 class ensightPartCells
54 // Private Member Functions
56 //- Disallow default bitwise assignment
57 void operator=(const ensightPartCells&);
59 //- Classify the cell types, set elemLists.
63 const labelUList& idLabels = labelUList::null()
67 virtual localPoints calcLocalPoints() const;
69 //- track the points used
70 // virtual void makeLocalPointMap();
72 //- element connectivity
73 virtual void writeConnectivity
77 const labelUList& idList,
78 const labelUList& pointMap
84 //- addressable ensight element types
95 // Static data members
97 static const List<word> elemTypes_;
103 const polyMesh& mesh_;
108 //- Runtime type information
109 TypeName("ensightCells");
113 //- Construct empty part with number and description
114 ensightPartCells(label partNumber, const string& partDescription);
116 //- Construct from polyMesh without zones
117 ensightPartCells(label partNumber, const polyMesh&);
119 //- Construct from polyMesh and list of (non-zoned) cells
127 //- Construct from polyMesh and cellZone
135 //- Construct as copy
136 ensightPartCells(const ensightPartCells&);
138 //- Reconstruct part characteristics (eg, element types) from Istream
139 // A part reconstructed in this manner can be used when writing fields,
140 // but cannot be used to write a new geometry
141 // \sa Foam::ensightPart::reconstruct
142 ensightPartCells(Istream&);
144 //- Reconstruct part characteristics on freestore from Istream
145 static autoPtr<ensightPartCells> New(Istream& is)
147 return autoPtr<ensightPartCells>(new ensightPartCells(is));
152 virtual ~ensightPartCells();
158 virtual void writeGeometry(ensightGeoFile&) const;
160 //- static listing of the element types
161 virtual const List<word>& elementTypes() const
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //