Go to the documentation of this file.
38 namespace surfaceWriters
50 fileExtension_(fileExt)
61 fileExtension_(fileExt),
102 if (fileExtension_.empty())
110 if (useTimeDir() && !
timeName().empty())
113 outputFile = outputPath_.
path() /
timeName() / outputPath_.name();
115 outputFile.
ext(fileExtension_);
119 Info<<
"Writing geometry to " << outputFile <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
A class for handling words, derived from Foam::string.
Base class for surface writers.
A class for handling file names.
static std::string path(const std::string &str)
Return directory path name (part before last /)
virtual const faceList & faces() const =0
The faces used for the surface.
Abstract definition of a meshed surface defined by faces and points.
virtual fileName write()
Write surface geometry to file.
defineTypeName(boundaryDataWriter)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Convenience macros for instantiating surfaceWriter methods.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
defineSurfaceWriterWriteFields(Foam::surfaceWriters::proxyWriter)
A surfaceWriter that writes the geometry via the MeshedSurfaceProxy, but which does not support any f...
messageStream Info
Information stream (uses stdout - output is on the master only)
virtual const pointField & points() const =0
The points used for the surface.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
word ext() const
Return file name extension (part after last .)
static const fileName null
An empty fileName.
static bool master(const label communicator=0)
Am I the master process.
proxyWriter(const word &fileExt)
Construct for a given extension.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
bool mkDir(const fileName &pathName, mode_t mode=0777)
Make a directory and return an error if it could not be created.
virtual void open(const fileName &outputPath)
Open for output on specified path, using existing surface.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?