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;
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.
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 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)
A surfaceWriter for STARCD files.
Base class for surface writers.
makeSurfaceWriterType(dxSurfaceWriter)