rawSurfaceWriter.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef rawSurfaceWriter_H
00036 #define rawSurfaceWriter_H
00037
00038 #include "surfaceWriter.H"
00039
00040
00041
00042 namespace Foam
00043 {
00044
00045
00046
00047
00048
00049 template<class Type>
00050 class rawSurfaceWriter
00051 :
00052 public surfaceWriter<Type>
00053 {
00054
00055
00056 static void writeGeometry
00057 (
00058 const pointField& points,
00059 const label pointI,
00060 Ostream& os
00061 );
00062
00063 static void writeGeometry
00064 (
00065 const pointField& points,
00066 const faceList& faces,
00067 const label faceI,
00068 Ostream& os
00069 );
00070
00071 static void writeData
00072 (
00073 const fileName& fieldName,
00074 const pointField& points,
00075 const faceList& faces,
00076 const scalarField& values,
00077 Ostream& os
00078 );
00079
00080 static void writeData
00081 (
00082 const fileName& fieldName,
00083 const pointField& points,
00084 const faceList& faces,
00085 const vectorField& values,
00086 Ostream& os
00087 );
00088
00089 static void writeData
00090 (
00091 const fileName& fieldName,
00092 const pointField& points,
00093 const faceList& faces,
00094 const sphericalTensorField& values,
00095 Ostream& os
00096 );
00097
00098 static void writeData
00099 (
00100 const fileName& fieldName,
00101 const pointField& points,
00102 const faceList& faces,
00103 const symmTensorField& values,
00104 Ostream& os
00105 );
00106
00107 static void writeData
00108 (
00109 const fileName& fieldName,
00110 const pointField& points,
00111 const faceList& faces,
00112 const tensorField& values,
00113 Ostream& os
00114 );
00115
00116
00117 public:
00118
00119
00120 TypeName("raw");
00121
00122
00123
00124
00125
00126 rawSurfaceWriter();
00127
00128
00129
00130
00131 virtual ~rawSurfaceWriter();
00132
00133
00134
00135
00136
00137
00138
00139 virtual void write
00140 (
00141 const fileName& outputDir,
00142 const fileName& surfaceName,
00143 const pointField& points,
00144 const faceList& faces,
00145 const bool verbose = false
00146 ) const;
00147
00148
00149 virtual void write
00150 (
00151 const fileName& outputDir,
00152 const fileName& surfaceName,
00153 const pointField& points,
00154 const faceList& faces,
00155 const fileName& fieldName,
00156 const Field<Type>& values,
00157 const bool verbose = false
00158 ) const;
00159 };
00160
00161
00162
00163
00164 }
00165
00166
00167
00168 #ifdef NoRepository
00169 # include "rawSurfaceWriter.C"
00170 #endif
00171
00172
00173
00174 #endif
00175
00176
Copyright © 2000-2009 OpenCFD Ltd