43 inline void Foam::starcdSurfaceWriter::writeData
54 inline void Foam::starcdSurfaceWriter::writeData
60 os << v[0] <<
' ' << v[1] <<
' ' << v[2] <<
nl;
65 inline void Foam::starcdSurfaceWriter::writeData
78 inline void Foam::starcdSurfaceWriter::writeData
87 void Foam::starcdSurfaceWriter::Write
93 const word& fieldName,
95 const bool isNodeValues
98 if (!
isDir(outputDir))
103 OFstream os(outputDir/fieldName +
'_' + surfaceName +
".usr");
107 Info<<
"Writing field " << fieldName <<
" to " << os.
name() <<
endl;
113 os << elemI+1 <<
' ';
147 if (!
isDir(outputDir))
152 fileName outName(outputDir/surfaceName +
".inp");
156 Info<<
"Writing geometry to " << outName <<
endl;
starcdSurfaceWriter(const IOstream::streamFormat writeFormat)
Construct given write format.
#define forAll(list, i)
Loop across all elements in list.
A class for handling file names.
virtual ~starcdSurfaceWriter()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fileName & name() const
Return the name of the stream.
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.
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.
streamFormat
Enumeration for the format of data in the stream.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
const bool writeData(readBool(pdfDictionary.lookup("writeData")))
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
virtual void write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces) const
Write single surface geometry to file.
defineSurfaceWriterWriteField(Foam::starcdSurfaceWriter, scalar)
makeSurfaceWriterType(ensightSurfaceWriter)
A surfaceWriter for STARCD files.
Base class for surface writers.