Go to the documentation of this file.
58 return this->getBaseName(
points, valueSetNames) +
".nas";
71 os <<
"TITLE=OpenFOAM "
72 << this->getBaseName(
points, valueSetNames).c_str()
75 <<
"BEGIN BULK" <<
nl;
93 <<
',' << float(pt.
x())
94 <<
',' << float(pt.
y())
95 <<
',' << float(pt.
z())
102 const label nEdges =
points.size()-1;
103 for (label edgei = 0; edgei < nEdges; ++edgei)
125 os <<
"ENDDATA" <<
nl;
132 const bool writeTracks,
140 if (valueSets.size() != valueSetNames.size())
143 <<
"Number of variables:" << valueSetNames.size() <<
endl
144 <<
"Number of valueSets:" << valueSets.size()
152 os <<
"TITLE=OpenFOAM "
153 << this->getBaseName(tracks[0], valueSetNames).c_str()
156 <<
"BEGIN BULK" <<
nl;
166 for (
const coordSet&
points : tracks)
180 os <<
',' << globalPti++
182 <<
',' << float(pt.x())
183 <<
',' << float(pt.y())
184 <<
',' << float(pt.z())
192 label globalEdgei = 0;
193 label globalPointi = 0;
194 for (
const coordSet&
points : tracks)
196 const label nEdges =
points.size()-1;
197 for (label edgei = 0; edgei < nEdges; ++edgei)
213 os <<
',' << globalEdgei+1
214 <<
',' << globalPointi+1
215 <<
',' << globalPointi+2
223 os <<
"ENDDATA" <<
nl;
A class for handling file names.
Ostream & endl(Ostream &os)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
Istream and Ostream manipulators taking arguments.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
virtual fileName getFileName(const coordSet &, const wordList &) const
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Macros for easy insertion into run-time selection tables.
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
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
vector point
Point is a vector.