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
00036 #ifndef writeFunctions_H
00037 #define writeFunctions_H
00038
00039 #include "floatScalar.H"
00040 #include "DynamicList.H"
00041 #include "volFieldsFwd.H"
00042 #include "pointFieldsFwd.H"
00043 #include "vtkMesh.H"
00044 #include "volPointInterpolation.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053
00054
00055 class writeFuns
00056 {
00057
00058
00059
00060
00061 static void swapWord(label& word32);
00062 static void swapWords(const label nWords, label* words32);
00063
00064
00065 public:
00066
00067
00068
00069 static void write(std::ostream&, const bool, List<floatScalar>&);
00070 static void write(std::ostream&, const bool, DynamicList<floatScalar>&);
00071 static void write(std::ostream&, const bool, labelList&);
00072 static void write(std::ostream&, const bool, DynamicList<label>&);
00073
00074
00075
00076
00077 static void writeHeader(std::ostream&, const bool, const string&);
00078 static void writeCellDataHeader(std::ostream&, const label, const label);
00079 static void writePointDataHeader
00080 (
00081 std::ostream&,
00082 const label,
00083 const label
00084 );
00085
00086
00087
00088
00089 static void insert(const scalar&, DynamicList<floatScalar>&);
00090 static void insert(const point&, DynamicList<floatScalar>&);
00091 static void insert(const sphericalTensor&, DynamicList<floatScalar>&);
00092 static void insert(const symmTensor&, DynamicList<floatScalar>&);
00093 static void insert(const tensor&, DynamicList<floatScalar>&);
00094
00095
00096
00097 static void insert(const labelList&, DynamicList<label>&);
00098 template<class Type>
00099 static void insert(const List<Type>&, DynamicList<floatScalar>&);
00100
00101
00102 template<class Type>
00103 static void write
00104 (
00105 std::ostream&,
00106 const bool binary,
00107 const GeometricField<Type, fvPatchField, volMesh>&,
00108 const vtkMesh&
00109 );
00110
00111
00112
00113 template<class Type>
00114 static void write
00115 (
00116 std::ostream&,
00117 const bool binary,
00118 const GeometricField<Type, pointPatchField, pointMesh>&,
00119 const vtkMesh&
00120 );
00121
00122
00123
00124 template<class Type>
00125 static void write
00126 (
00127 std::ostream&,
00128 const bool binary,
00129 const GeometricField<Type, fvPatchField, volMesh>&,
00130 const GeometricField<Type, pointPatchField, pointMesh>&,
00131 const vtkMesh&
00132 );
00133
00134
00135 template<class Type, template<class> class PatchField, class GeoMesh>
00136 static void write
00137 (
00138 std::ostream&,
00139 const bool binary,
00140 const PtrList<GeometricField<Type, PatchField, GeoMesh> >&,
00141 const vtkMesh&
00142 );
00143
00144
00145 template<class Type>
00146 static void write
00147 (
00148 std::ostream&,
00149 const bool binary,
00150 const volPointInterpolation&,
00151 const PtrList<GeometricField<Type, fvPatchField, volMesh> >&,
00152 const vtkMesh&
00153 );
00154 };
00155
00156
00157
00158
00159 }
00160
00161
00162
00163 #ifdef NoRepository
00164 # include "writeFunsTemplates.C"
00165 #endif
00166
00167
00168
00169 #endif
00170
00171