Go to the documentation of this file.
57 return this->getBaseName(
points, valueSetNames) +
".nas";
70 os <<
"TITLE=OpenFOAM "
71 << this->getBaseName(
points, valueSetNames).c_str()
74 <<
"BEGIN BULK" <<
nl;
92 <<
',' << float(pt.
x())
93 <<
',' <<
float(pt.
y())
94 <<
',' <<
float(pt.
z())
101 const label nEdges =
points.size()-1;
102 for (label edgei = 0; edgei < nEdges; ++edgei)
124 os <<
"ENDDATA" <<
nl;
131 const bool writeTracks,
138 if (valueSets.size() != valueSetNames.size())
141 <<
"Number of variables:" << valueSetNames.size() <<
endl
142 <<
"Number of valueSets:" << valueSets.size()
150 os <<
"TITLE=OpenFOAM "
151 << this->getBaseName(tracks[0], valueSetNames).c_str()
154 <<
"BEGIN BULK" <<
nl;
178 os <<
',' << globalPti++
180 <<
',' << float(pt.x())
181 <<
',' <<
float(pt.y())
182 <<
',' <<
float(pt.z())
190 label globalEdgei = 0;
191 label globalPointi = 0;
194 const label nEdges =
points.size()-1;
195 for (label edgei = 0; edgei < nEdges; ++edgei)
211 os <<
',' << globalEdgei+1
212 <<
',' << globalPointi+1
213 <<
',' << globalPointi+2
221 os <<
"ENDDATA" <<
nl;
const Cmpt & x() const
Access to the vector x component.
A class for handling file names.
virtual ~nastranSetWriter()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Cmpt & z() const
Access to the vector z component.
#define forAll(list, i)
Loop across all elements in list.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const
General entry point for writing.
Generic templated field type.
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
Generate file name with correct extension.
nastranSetWriter()
Construct null.
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)
const Cmpt & y() const
Access to the vector y component.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...