56 return this->
getBaseName(points, valueSetNames) +
".csv";
69 writeHeader(points,valueSetNames,os);
76 columns[i] = valueSets[i];
86 const bool writeTracks,
93 writeHeader(points[0],valueSetNames,os);
95 if (valueSets.size() != valueSetNames.
size())
98 <<
"Number of variables:" << valueSetNames.
size() <<
endl 99 <<
"Number of valueSets:" << valueSets.size()
110 columns[i] = &valueSets[i][trackI];
113 this->
writeTable(points[trackI], columns, os);
137 writeCoordHeader(points, os);
145 os << valueSetNames[i];
161 writeCoordHeader(points, os);
165 for (
label j=0; j<Type::nComponents; j++)
171 os << valueSetNames[i] <<
"_" << j;
192 word::const_iterator iter = axisName.begin();
193 iter != axisName.end();
virtual ~csvSetWriter()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
fileName getBaseName(const coordSet &, const wordList &) const
Generates filename from coordSet and sampled fields.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > *> &, Ostream &) const
General entry point for writing.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool hasVectorAxis() const
Is axis specification a vector.
Base class for graphics format writing. Entry points are.
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
Holds list of sampling positions.
csvSetWriter()
Construct null.
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
void writeTable(const coordSet &, const List< Type > &, Ostream &) const
Writes single-column ascii write. Column 1 is coordSet coordinate,.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual void writeSeparator(Ostream &) const
Writes a separator. Used by write functions.