38namespace surfaceWriters
50 fileExtension_(fileExt),
62 fileExtension_(fileExt),
108 if (fileExtension_.empty())
116 if (useTimeDir() && !
timeName().empty())
119 outputFile = outputPath_.
path() /
timeName() / outputPath_.name();
121 outputFile.
ext(fileExtension_);
125 Info<<
"Writing geometry to " << outputFile <<
endl;
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
The IOstreamOption is a simple container for options an IOstream can normally have.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
static void write(const fileName &name, const MeshedSurfaceProxy &surf, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
Write to file, select based on its extension.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
static const fileName null
An empty fileName.
word ext() const
Return file name extension (part after last .)
static std::string path(const std::string &str)
Return directory path name (part before last /)
Implements a meshed surface by referencing another meshed surface or faces/points components.
virtual const pointField & points() const
The points used for the surface.
virtual const faceList & faces() const
The faces used for the surface.
Abstract definition of a meshed surface defined by faces and points.
splitCell * master() const
Base class for surface writers.
A surfaceWriter that writes the geometry via the MeshedSurfaceProxy, but which does not support any f...
virtual fileName write()
Write surface geometry to file.
A class for handling words, derived from Foam::string.
#define defineTypeName(Type)
Define the typeName.
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.
bool isDir(const fileName &name, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
static constexpr char open
Convenience macros for instantiating surfaceWriter methods.
#define defineSurfaceWriterWriteFields(ThisClass)