Go to the documentation of this file.
39 for (label i=0; i <
n; ++i)
50 for (label i=0; i <
n; ++i)
61 for (label i=0; i <
n; ++i)
73 for (label i=0; i <
n; ++i)
94 const std::string& title,
102 template<Foam::vtk::fileTag ContentType>
106 const std::string& title
116 <<
"POINTS " <<
nPoints <<
" float" <<
nl;
128 <<
"POLYGONS " << nPolys <<
' ' << (nPolys + nConnectivity) <<
nl;
139 <<
"FIELD FieldData " << nFields <<
nl;
163 <<
' ' << nCells <<
nl;
189 legacy::floatField<1>(fmt,
"TimeValue", 1);
190 fmt.
write(timeValue);
195 template<Foam::direction nComp>
199 const word& fieldName,
205 << int(nComp) <<
' ' << nEntries <<
" double" <<
nl;
209 template<Foam::direction nComp>
213 const word& fieldName,
219 << int(nComp) <<
' ' << nEntries <<
" float" <<
nl;
223 template<Foam::direction nComp>
227 const word& fieldName,
233 << int(nComp) <<
' ' << nEntries <<
" int" <<
nl;
const Foam::Enum< vtk::fileTag > dataTypeNames
Legacy data type names (CELL_DATA, POINT_DATA)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from Foam::string.
const Foam::Enum< vtk::fileTag > contentNames
Legacy content names (POLYDATA, UNSTRUCTURED_GRID)
void beginPolys(std::ostream &os, label nPolys, label nConnectivity)
Emit header for POLYGONS (with trailing newline).
void beginPointData(vtk::formatter &fmt, label nPoints, label nFields)
Emit legacy POINT_DATA nPoints, FIELD FieldData nFields.
void write< label >(vtk::formatter &fmt, const label &val, const label n)
Template specialization for label.
void fieldData(vtk::formatter &fmt, label nFields)
Emit "FIELD FieldData <n>".
void beginFieldData(vtk::formatter &fmt, label nFields)
Emit legacy FIELD FieldData nFields.
void writeTimeValue(vtk::formatter &fmt, scalar timeValue)
Emit "TimeValue" for a FIELD entry (name as per Catalyst output)
void write< double >(vtk::formatter &fmt, const double &val, const label n)
Template specialization for double.
void beginPoints(std::ostream &os, label nPoints)
Emit header for POINTS (with trailing newline).
void fileHeader(std::ostream &os, const std::string &title, bool binary)
Emit header for legacy file.
fileTag
Some common XML tags for vtk files.
void write< float >(vtk::formatter &fmt, const float &val, const label n)
Template specialization for float.
void beginCellData(vtk::formatter &fmt, label nCells, label nFields)
Emit legacy CELL_DATA nCells, FIELD FieldData nFields.
void floatField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of float field with the specified name.
void intField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of int field with the specified name.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void doubleField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of double field with the specified name.