1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2010 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::rawSurfaceWriter
32 \*---------------------------------------------------------------------------*/
34 #ifndef rawSurfaceWriter_H
35 #define rawSurfaceWriter_H
37 #include "surfaceWriter.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
46 \*---------------------------------------------------------------------------*/
49 class rawSurfaceWriter
51 public surfaceWriter<Type>
53 // Private Member Functions
55 static void writeGeometry
57 const pointField& points,
62 static void writeGeometry
64 const pointField& points,
65 const faceList& faces,
72 const fileName& fieldName,
73 const pointField& points,
74 const faceList& faces,
75 const scalarField& values,
81 const fileName& fieldName,
82 const pointField& points,
83 const faceList& faces,
84 const vectorField& values,
90 const fileName& fieldName,
91 const pointField& points,
92 const faceList& faces,
93 const sphericalTensorField& values,
99 const fileName& fieldName,
100 const pointField& points,
101 const faceList& faces,
102 const symmTensorField& values,
106 static void writeData
108 const fileName& fieldName,
109 const pointField& points,
110 const faceList& faces,
111 const tensorField& values,
118 //- Runtime type information
130 virtual ~rawSurfaceWriter();
137 //- Write geometry to file.
140 const fileName& outputDir,
141 const fileName& surfaceName,
142 const pointField& points,
143 const faceList& faces,
144 const bool verbose = false
147 //- Writes single surface to file.
150 const fileName& outputDir,
151 const fileName& surfaceName,
152 const pointField& points,
153 const faceList& faces,
154 const fileName& fieldName,
155 const Field<Type>& values,
156 const bool verbose = false
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 } // End namespace Foam
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 # include "rawSurfaceWriter.C"
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 // ************************************************************************* //