Go to the documentation of this file.
53 #ifndef nastranSurfaceWriter_H
54 #define nastranSurfaceWriter_H
127 const word& faceType,
178 const word& fieldName,
180 const bool isNodeValues,
220 const bool verbose =
false
231 const word& fieldName,
233 const bool isNodeValues,
234 const bool verbose =
false
245 const word& fieldName,
247 const bool isNodeValues,
248 const bool verbose =
false
259 const word& fieldName,
261 const bool isNodeValues,
262 const bool verbose =
false
273 const word& fieldName,
275 const bool isNodeValues,
276 const bool verbose =
false
287 const word& fieldName,
289 const bool isNodeValues,
290 const bool verbose =
false
nastranSurfaceWriter()
Construct null.
word format(conversionProperties.lookup("format"))
fileName writeTemplate(const fileName &outputDir, const fileName &surfaceName, const pointField &points, const faceList &faces, const word &fieldName, const Field< Type > &values, const bool isNodeValues, const bool verbose) const
Templated write operation.
A class for handling words, derived from string.
Base class for surface writers.
A class for handling file names.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
scalar scale_
Scale to apply to values (default = 1.0)
virtual ~nastranSurfaceWriter()
Destructor.
void writeFace(const word &faceType, const labelList &facePts, label &nFace, OFstream &os) const
Write a face element (CTRIA3 or CQUAD4)
void writeCoord(const point &p, const label pointI, OFstream &os) const
Write a co-ordinate.
virtual bool separateGeometry() const
True if the surface format supports geometry in a separate file.
static const NamedEnum< dataFormat, 2 > dataFormatNames_
word separator_
Separator used for free format.
A surface writer for the Nastran file format - both surface mesh and fields.
TypeName("nastran")
Runtime type information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
void writeFooter(Ostream &os) const
Write the footer information.
writeFormat writeFormat_
Write option.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void formatOS(OFstream &os) const
Initialise the output stream format params.
An STL-conforming hash table.
void writeKeyword(const word &keyword, Ostream &os) const
Write the formatted keyword to the output stream.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
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.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void writeValue(const Type &value, Ostream &os) const
Write a formatted value to the output stream.
static const NamedEnum< writeFormat, 3 > writeFormatNames_
void writeGeometry(const pointField &points, const faceList &faces, List< DynamicList< face > > &decomposedFaces, OFstream &os) const
Main driver to write the surface mesh geometry.
HashTable< dataFormat, word > fieldMap_
Mapping from field name to data format enumeration.
void writeFaceValue(const dataFormat &format, const Type &value, const label EID, Ostream &os) const
Write a face-based value.