47 inline void Foam::starcdSurfaceWriter::writeData
58 inline void Foam::starcdSurfaceWriter::writeData
64 os << v[0] <<
' ' << v[1] <<
' ' << v[2] <<
nl;
69 inline void Foam::starcdSurfaceWriter::writeData
82 inline void Foam::starcdSurfaceWriter::writeData
91 void Foam::starcdSurfaceWriter::writeTemplate
97 const word& fieldName,
99 const bool isNodeValues,
103 if (!
isDir(outputDir))
108 OFstream os(outputDir/fieldName +
'_' + surfaceName +
".usr");
112 Info<<
"Writing field " << fieldName <<
" to " << os.
name() <<
endl;
118 os << elemI+1 <<
' ';
150 if (!
isDir(outputDir))
155 fileName outName(outputDir/surfaceName +
".inp");
159 Info<<
"Writing geometry to " << outName <<
endl;
const pointField & points
virtual ~starcdSurfaceWriter()
Destructor.
defineSurfaceWriterWriteField(Foam::starcdSurfaceWriter, scalar)
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
Convenience macros for instantiating writer methods for surfaceWriter classes.
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.
Templated 3D SphericalTensor derived from VectorSpace adding construction from 1 component, element access using th ii() member function and the inner-product (dot-product) and outer-product operators.
A surfaceWriter for STARCD files.
starcdSurfaceWriter()
Construct null.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & name() const
Return the name of the stream.
Base class for surface writers.
const bool writeData(readBool(pdfDictionary.lookup("writeData")))
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
A class for handling file names.
makeSurfaceWriterType(dxSurfaceWriter)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
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.
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.