Go to the documentation of this file.
60 return this->getBaseName(
points, valueSetNames) +
".agr";
75 <<
"@ title \"" <<
points.name() <<
'"' <<
nl
76 <<
"@ xaxis label " <<
'"' <<
points.axis() <<
'"' <<
nl;
80 os <<
"@ s" << i <<
" legend " <<
'"'
81 << valueSetNames[i] <<
'"' <<
nl
82 <<
"@target G0.S" << i <<
nl;
84 this->writeTable(
points, *valueSets[i],
os);
94 const bool writeTracks,
102 if (valueSets.size() != valueSetNames.size())
105 <<
"Number of variables:" << valueSetNames.size() <<
endl
106 <<
"Number of valueSets:" << valueSets.size()
109 if (tracks.size() > 0)
113 <<
"@ title \"" << tracks[0].name() <<
'"' <<
nl
114 <<
"@ xaxis label " <<
'"' << tracks[0].axis() <<
'"' <<
nl;
123 os <<
"@ s" << sI <<
" legend " <<
'"'
124 << valueSetNames[i] <<
"_track" << i <<
'"' <<
nl
125 <<
"@target G0.S" << sI <<
nl;
126 this->writeTable(tracks[trackI], valueSets[i][trackI],
os);
xmgraceSetWriter()
Default construct.
A class for handling file names.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
Ostream & endl(Ostream &os)
Add newline and flush stream.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...