37 const word& fieldName,
41 if (
coords_.size() != fieldPtrs.size())
44 <<
"Attempted to write field: " << fieldName
45 <<
" (" << fieldPtrs.size() <<
" entries) for "
59 Info<<
"Writing field " << fieldName;
73 os <<
"set term pngcairo" <<
nl
74 <<
"set output \"" << outputFile.
nameLessExt() <<
".png\"" <<
nl;
78 os <<
"plot \\" <<
nl;
79 os <<
" '-' title \"" << fieldName <<
"\" with lines";
87 os <<
"end_data" <<
nl <<
nl;
88 os <<
"# end plot" <<
nl;
Istream and Ostream manipulators taking arguments.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Generic templated field type.
Output to file stream, using an OSstream.
virtual int precision() const
Get precision of output field.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
bool wroteGeom_
Track if geometry has been written since the last open.
static void writeTable(Ostream &os, const coordSet &coords, const UList< Type > &values, const char *sep)
Write coordinates and values.
bool verbose_
Additional output verbosity.
UPtrList< const coordSet > coords_
Reference to coordinate set(s)
fileName getFieldPrefixedPath(const word &fieldName, const word &fileExt=word::null) const
Get field-prefixed output file name.
A class for handling file names.
static std::string nameLessExt(const std::string &str)
Return basename, without extension.
static std::string path(const std::string &str)
Return directory path name (part before last /)
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
OBJstream os(runTime.globalPath()/outputName)
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.