Go to the documentation of this file.
55 if (options.
found(
"format"))
80 if (!
isDir(outputDir))
86 const scalar timeValue = 0.0;
88 OFstream osCase(outputDir/surfaceName +
".case");
91 outputDir/surfaceName +
".0000.mesh",
102 <<
"type: ensight gold" <<
nl
108 <<
"time set: 1" <<
nl
109 <<
"number of steps: 1" <<
nl
110 <<
"filename start number: 0" <<
nl
111 <<
"filename increment: 1" <<
nl
112 <<
"time values:" <<
nl
119 return osCase.
name();
virtual ~ensightSurfaceWriter()
Destructor.
Base class for surface writers.
A class for handling file names.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
An IOstream is an abstract base class for all input/output systems; be they streams,...
Ostream & endl(Ostream &os)
Add newline and flush stream.
A surfaceWriter for Ensight format.
word name() const
Return file name (part beyond last /)
Convenience macros for instantiating writer methods for surfaceWriter classes.
Specialized Ensight output with extra geometry file header.
bool found(const word &, bool recursive=false, bool patternMatch=true) const
Search dictionary for given keyword.
Pre-declare SubField and related Field type.
defineSurfaceWriterWriteFields(nastranSurfaceWriter)
virtual fileName write(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const bool verbose=false) const
Write single surface geometry to file.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool isDir(const fileName &)
Does the name exist as a DIRECTORY in the file system?
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
An implementation of ensightPart to hold volume mesh faces.
const fileName & name() const
Return the name of the stream.
makeSurfaceWriterType(boundaryDataSurfaceWriter)
bool mkDir(const fileName &, mode_t=0777)
Make a directory and return an error if it could not be created.
IOstream::streamFormat writeFormat_
Write option (default is IOstream::ASCII.
ensightSurfaceWriter()
Construct null.