57 return this->
getBaseName(points, valueSetNames) +
".gplt";
70 os <<
"set term postscript color" <<
nl 71 <<
"set output \"" << points.
name() <<
".ps\"" <<
nl 81 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
97 const bool writeTracks,
104 if (valueSets.size() != valueSetNames.
size())
107 <<
"Number of variables:" << valueSetNames.
size() <<
endl 108 <<
"Number of valueSets:" << valueSets.size()
111 if (trackPoints.
size() > 0)
113 os <<
"set term postscript color" <<
nl 114 <<
"set output \"" << trackPoints[0].name() <<
".ps\"" <<
nl;
116 forAll(trackPoints, trackI)
127 os <<
" \"-\" title \"" << valueSetNames[i] <<
"\" with lines";
133 this->
writeTable(trackPoints[trackI], valueSets[i][trackI], os);
#define forAll(list, i)
Loop across all elements in list.
fileName getBaseName(const coordSet &, const wordList &) const
Generates filename from coordSet and sampled fields.
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.
Base class for graphics format writing. Entry points are.
Macros for easy insertion into run-time selection tables.
Holds list of sampling positions.
virtual ~gnuplotSetWriter()
Destructor.
Pre-declare SubField and related Field type.
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...
const word & name() const
label size() const
Return the number of elements in the UPtrList.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
gnuplotSetWriter()
Construct null.