Go to the documentation of this file.
38 const word& fieldName,
40 const bool isNodeValues,
44 fileName surfaceDir(outputDir/surfaceName);
46 if (!
isDir(surfaceDir))
53 Info<<
"Writing field " << fieldName <<
" to " << surfaceDir <<
endl;
62 if (!
isDir(valuesDir))
68 OFstream(valuesDir/fieldName)() << values;
70 return valuesDir/fieldName;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from string.
A class for handling file names.
Ostream & endl(Ostream &os)
Add newline and flush stream.
fileName writeTemplate(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< Type > &values, const bool isNodeValues, const bool verbose) const
Templated write operation.
Pre-declare SubField and related Field type.
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Traits class for primitives.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.