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
26 Foam::rawSurfaceWriter
33 \*---------------------------------------------------------------------------*/
35 #ifndef rawSurfaceWriter_H
36 #define rawSurfaceWriter_H
38 #include "surfaceWriter.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
47 \*---------------------------------------------------------------------------*/
50 class rawSurfaceWriter
52 public surfaceWriter<Type>
54 // Private Member Functions
56 static void writeGeometry
58 const pointField& points,
63 static void writeGeometry
65 const pointField& points,
66 const faceList& faces,
73 const fileName& fieldName,
74 const pointField& points,
75 const faceList& faces,
76 const scalarField& values,
82 const fileName& fieldName,
83 const pointField& points,
84 const faceList& faces,
85 const vectorField& values,
91 const fileName& fieldName,
92 const pointField& points,
93 const faceList& faces,
94 const sphericalTensorField& values,
100 const fileName& fieldName,
101 const pointField& points,
102 const faceList& faces,
103 const symmTensorField& values,
107 static void writeData
109 const fileName& fieldName,
110 const pointField& points,
111 const faceList& faces,
112 const tensorField& values,
119 //- Runtime type information
131 virtual ~rawSurfaceWriter();
138 //- Write geometry to file.
141 const fileName& outputDir,
142 const fileName& surfaceName,
143 const pointField& points,
144 const faceList& faces,
145 const bool verbose = false
148 //- Writes single surface to file.
151 const fileName& outputDir,
152 const fileName& surfaceName,
153 const pointField& points,
154 const faceList& faces,
155 const fileName& fieldName,
156 const Field<Type>& values,
157 const bool verbose = false
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
164 } // End namespace Foam
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 # include "rawSurfaceWriter.C"
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //