1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 A collection of several ensightPart elements
35 \*---------------------------------------------------------------------------*/
37 #ifndef ensightParts_H
38 #define ensightParts_H
40 #include "ensightPart.H"
41 #include "ensightPartFaces.H"
42 #include "ensightPartCells.H"
43 #include <finiteVolume/volFields.H>
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class ensightParts Declaration
52 \*---------------------------------------------------------------------------*/
59 PtrList<ensightPart> partsList_;
61 // Private Member Functions
63 //- Disallow default bitwise copy construct
64 ensightParts(const ensightParts&);
66 //- Disallow default bitwise assignment
67 void operator=(const ensightParts&);
74 //- Construct from polyMesh
75 ensightParts(const polyMesh&);
77 //- Construct from IOobject
78 ensightParts(const IOobject&);
87 //- clear old information and construct anew from polyMesh
88 void recalculate(const polyMesh&);
93 const labelList& origCellId,
94 const labelList& origFaceId
100 return partsList_.size();
103 //- write the geometry
104 void writeGeometry(ensightGeoFile&) const;
106 //- write summary information about the objects
107 bool writeSummary(Ostream&) const;
110 void writeData(Ostream&) const;
112 //- write scalar field
113 void writeScalarField
116 const List<scalar>& field,
117 bool useFaceData = false
120 //- write vector field components
121 void writeVectorField
124 const List<scalar>& field0,
125 const List<scalar>& field1,
126 const List<scalar>& field2,
127 bool useFaceData = false
131 //- write generalized field components
132 template <class Type>
136 const GeometricField<Type, fvPatchField, volMesh>&
142 friend ensightGeoFile& operator<<
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 } // End namespace Foam
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
157 # include "ensightPartsI.H"
162 // ************************ vim: set sw=4 sts=4 et: ************************ //