Go to the documentation of this file.
38 namespace 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...
A class for handling words, derived from Foam::string.
Base class for surface writers.
A class for handling file names.
defineTypeName(abaqusWriter)
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.
static bool master(const label communicator=worldComm)
Am I the master process.
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 (stdout output on master, null elsewhere)
virtual const pointField & points() const =0
The points used for the surface.
static compressionType compressionEnum(const word &compName, const compressionType deflt=compressionType::UNCOMPRESSED)
The compression enum corresponding to the string.
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.
proxyWriter(const word &fileExt)
Construct for a given extension.
static streamFormat formatEnum(const word &formatName, const streamFormat deflt=streamFormat::ASCII)
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?