74 if (!
isDir(outputDir))
79 fileName outName(outputDir/surfaceName +
"." + ext_);
83 Info<<
"Writing geometry to " << outName <<
endl;
proxySurfaceWriter(const word &ext)
Construct for a given extension.
A class for handling file names.
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
Write single surface geometry to file.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
bool isDir(const fileName &, const bool followLink=true)
Does the name exist as a DIRECTORY in the file system?
A class for handling words, derived from string.
Convenience macros for instantiating writer methods for surfaceWriter classes.
virtual ~proxySurfaceWriter()
Destructor.
defineTypeNameAndDebug(combustionModel, 0)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
Base class for surface writers.