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::writeTemplate
93 const word& fieldName,
95 const bool isNodeValues,
99 if (!
isDir(outputDir))
104 OFstream os(outputDir/fieldName +
'_' + surfaceName +
".usr");
108 Info<<
"Writing field " << fieldName <<
" to " << os.
name() <<
endl;
114 os << elemI+1 <<
' ';
146 if (!
isDir(outputDir))
151 fileName outName(outputDir/surfaceName +
".inp");
155 Info<<
"Writing geometry to " << outName <<
endl;
starcdSurfaceWriter()
Construct null.
#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.
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.
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.
defineSurfaceWriterWriteField(Foam::starcdSurfaceWriter, scalar)
makeSurfaceWriterType(ensightSurfaceWriter)
A surfaceWriter for STARCD files.
Base class for surface writers.