37 const word& fieldName,
41 if (
coords_.size() != fieldPtrs.size())
44 <<
"Attempted to write field: " << fieldName
45 <<
" (" << fieldPtrs.size() <<
" entries) for " 57 Info<<
"Writing field " << fieldName;
69 os.precision(precision_);
77 <<
"@ title \"" << coords.
name() <<
'"' <<
nl 78 <<
"@ xaxis label \"" << coords.
axis() <<
'"' <<
nl;
81 const label setNumber = 0;
84 os <<
"@ s" << setNumber
85 <<
" legend \"" << fieldName <<
'"' <<
nl 86 <<
"@target G0.S" << setNumber <<
nl;
94 os <<
"# end_data" <<
nl;
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const word & axis() const
The sort axis name.
bool wroteGeom_
Track if geometry has been written since the last open.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Output to file stream as an OSstream, normally using std::ofstream for the actual output...
constexpr char nl
The newline '\n' character (0x0a)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static std::string path(const std::string &str)
Return directory path name (part before last /)
#define forAll(list, i)
Loop across all elements in list.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
Holds list of sampling positions.
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
Generic templated field type.
A class for handling words, derived from Foam::string.
const word & name() const noexcept
The coord-set name.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Istream and Ostream manipulators taking arguments.
OBJstream os(runTime.globalPath()/outputName)
static void writeTable(Ostream &os, const coordSet &coords, const UList< Type > &values, const char *sep)
Write coordinates and values.
fileName getFieldPrefixedPath(const word &fieldName, const word &fileExt=word::null) const
Get field-prefixed output file name.
UPtrList< const coordSet > coords_
Reference to coordinate set(s)
bool verbose_
Additional output verbosity.
messageStream Info
Information stream (stdout output on master, null elsewhere)