57 return this->
getBaseName(points, valueSetNames) +
".agr";
72 <<
"@ title \"" << points.
name() <<
'"' <<
nl 73 <<
"@ xaxis label " <<
'"' << points.
axis() <<
'"' <<
nl;
77 os <<
"@ s" << i <<
" legend " <<
'"' 78 << valueSetNames[i] <<
'"' <<
nl 79 <<
"@target G0.S" << i <<
nl;
91 const bool writeTracks,
98 if (valueSets.size() != valueSetNames.
size())
101 <<
"Number of variables:" << valueSetNames.
size() <<
endl 102 <<
"Number of valueSets:" << valueSets.size()
105 if (trackPoints.
size() > 0)
109 <<
"@ title \"" << trackPoints[0].name() <<
'"' <<
nl 110 <<
"@ xaxis label " <<
'"' << trackPoints[0].axis() <<
'"' <<
nl;
115 forAll(trackPoints, trackI)
119 os <<
"@ s" << sI <<
" legend " <<
'"' 120 << valueSetNames[i] <<
"_track" << i <<
'"' <<
nl 121 <<
"@target G0.S" << sI <<
nl;
122 this->
writeTable(trackPoints[trackI], valueSets[i][trackI], os);
#define forAll(list, i)
Loop across all elements in list.
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.
Base class for graphics format writing. Entry points are.
void size(const label)
Override size to be inconsistent with allocated storage.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual fileName getFileName(const coordSet &, const wordList &) const
Generate file name with correct extension.
Holds list of sampling positions.
Pre-declare SubField and related Field type.
virtual ~xmgraceSetWriter()
Destructor.
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.
xmgraceSetWriter()
Construct null.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
fileName getBaseName(const coordSet &, const wordList &) const
Generates filename from coordSet and sampled fields.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > *> &, Ostream &) const
General entry point for writing.
void writeTable(const coordSet &, const List< Type > &, Ostream &) const
Writes single-column ascii write. Column 1 is coordSet coordinate,.