45#ifndef Foam_vtk_output_H
46#define Foam_vtk_output_H
91 void writeIdentity(vtk::formatter& fmt,
const label len, label start=0);
95 void writeList(vtk::formatter& fmt,
const UList<uint8_t>& values);
99 inline void write(vtk::formatter& fmt,
const Type& val,
const label
n=1);
115 void writeList(vtk::formatter& fmt,
const UList<Type>& values);
119 template<
class Type,
unsigned N>
120 void writeList(vtk::formatter& fmt,
const FixedList<Type, N>& values);
129 const UList<Type>& values,
139 const UList<Type>& values,
140 const bitSet& selected
149 const UList<Type>& values1,
150 const UList<Type>& values2,
161 const UList<Type>& values
169 const UList<label>& values,
170 const globalIndex& procOffset
179 const UList<Type>& values,
189 const UList<Type>& values,
190 const bitSet& selected
199 const UList<Type>& values1,
200 const UList<Type>& values2
209 const UList<Type>& values1,
210 const UList<Type>& values2,
226 void fileHeader(std::ostream&
os,
const std::string& title,
bool binary);
234 const std::string& title,
235 const std::string& contentType
244 const std::string& title,
251 template<vtk::fileTag ContentType>
252 inline void fileHeader(vtk::formatter& fmt,
const std::string& title);
266 label nConnectivity = 0
278 label nConnectivity = 0
285 inline void beginPolys(std::ostream&
os, label nPolys, label nConnectivity);
289 inline void fieldData(vtk::formatter& fmt, label nFields);
312 inline void writeTimeValue(vtk::formatter& fmt, scalar timeValue);
315 template<direction nComp>
324 template<direction nComp>
333 template<direction nComp>
static unsigned int defaultPrecision() noexcept
Return the default precision.
OBJstream os(runTime.globalPath()/outputName)
void intField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of int field with the specified name.
void beginPolys(std::ostream &os, label nPolys, label nConnectivity)
Emit header for POLYGONS (with trailing newline).
void beginLines(std::ostream &os, label nLines, label nConnectivity=0)
Emit header for LINES (with trailing newline).
void doubleField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of double field with the specified name.
void fieldData(vtk::formatter &fmt, label nFields)
Emit "FIELD FieldData <n>".
void beginPoints(std::ostream &os, label nPoints)
Emit header for POINTS (with trailing newline).
void beginCellData(vtk::formatter &fmt, label nCells, label nFields)
Emit legacy CELL_DATA nCells, FIELD FieldData nFields.
void fileHeader(std::ostream &os, const std::string &title, bool binary)
Emit header for legacy file (vtk DataFile Version 2.0)
void beginPointData(vtk::formatter &fmt, label nPoints, label nFields)
Emit legacy POINT_DATA nPoints, FIELD FieldData nFields.
void writeTimeValue(vtk::formatter &fmt, scalar timeValue)
Emit "TimeValue" for a FIELD entry (name as per Catalyst output)
void floatField(vtk::formatter &fmt, const word &name, const label nEntries)
Start output of float field with the specified name.
void beginVerts(std::ostream &os, label nVerts, label nConnectivity=0)
Emit header for VERTICES (with trailing newline).
void beginFieldData(vtk::formatter &fmt, label nFields)
Emit legacy FIELD FieldData nFields.
void writeIdentity(vtk::formatter &fmt, const label len, label start=0)
Write an identity list of labels.
fileTag
Some common XML tags for vtk files.
formatType
The output format type for file contents.
void writeListsParallel(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2)
Write a list of values and another list of values.
autoPtr< vtk::formatter > newFormatter(std::ostream &os, unsigned prec=IOstream::defaultPrecision())
Return a default asciiFormatter.
void writeLists(vtk::formatter &fmt, const UList< Type > &values1, const UList< Type > &values2, const labelUList &addressing)
Write a list of values and a list of values via indirect addressing.
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
Write a list of values.
void writeValueParallel(vtk::formatter &fmt, const Type &val, const label count=1)
Component-wise write of a value (N times) in parallel.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
UList< label > labelUList
A UList of labels.