Go to the documentation of this file.
58 return this->getBaseName(
points, valueSetNames) +
".csv";
78 columns[i] = valueSets[i];
81 this->writeTable(
points, columns, os);
88 const bool writeTracks,
97 if (valueSets.size() != valueSetNames.size())
100 <<
"Number of variables:" << valueSetNames.size() <<
endl
101 <<
"Number of valueSets:" << valueSets.size()
112 columns[i] = &valueSets[i][trackI];
115 this->writeTable(
points[trackI], columns, os);
139 writeCoordHeader(
points, os);
147 os << valueSetNames[i];
163 writeCoordHeader(
points, os);
167 for (label j=0; j<Type::nComponents; j++)
173 os << valueSetNames[i] <<
"_" << j;
188 const word axisName(
points.axis());
190 if (
points.hasVectorAxis())
192 for (
auto iter = axisName.cbegin(); iter != axisName.cend(); ++iter)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
A class for handling file names.
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void writeHeader(Ostream &os, const word &fieldName)
#define forAll(list, i)
Loop across all elements in list.
virtual ~csvSetWriter()
Destructor.
List< word > wordList
A List of words.
Generic templated field type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Base class for graphics format writing. Entry points are.
Holds list of sampling positions.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
csvSetWriter()
Construct null.
virtual void writeSeparator(Ostream &) const
Writes a separator. Used by write functions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...