44 os.
write(number() + 1);
66 if (idList[i] >= field.
size() || std::isnan(field[idList[i]]))
72 os.
write(field[idList[i]]);
83 if (std::isnan(field[i]))
123 is.
check(
"ensightPart::reconstruct(Istream&)");
190 if (pointMap[ptI] > -1)
307 part.writeGeometry(os);
Ostream & writeUndef()
Write undef value.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
label number_
Part number.
#define forAll(list, i)
Loop across all elements in list.
bool writeSummary(Ostream &) const
Write summary information about the object.
Ostream & indent(Ostream &os)
Indent stream.
label nPoints
Number of points used.
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void size(const label)
Override size to be inconsistent with allocated storage.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Specialized Ensight output with extra geometry file header.
Track the points used by the part and map global to local indices.
void writeHeader(ensightFile &, bool withDescription=false) const
Write the part header.
virtual localPoints calcLocalPoints() const
Track points used.
virtual Ostream & writeKeyword(const string &key)
Write element keyword with trailing newline, optionally with undef.
void writeEntry(Ostream &) const
Write the UList as a dictionary entry.
labelListList elemLists_
Simple labelList with a name.
label number() const
Part number.
labelList list
Map global to local indices.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static const direction nComponents
Number of components in this vector space.
label size_
Number of elements in this part.
void clear()
Clear the list, i.e. set size to zero.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Write connectivities.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
virtual const List< word > & elementTypes() const
virtual Ostream & writeKeyword(const string &key)
Write keyword with trailing newline.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
void writeVectorField(ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool perNode=false) const
Write vector field components.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static bool allowUndef()
Return setting for whether 'undef' values are allowed in results.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void writeScalarField(ensightFile &, const List< scalar > &field, const bool perNode=false) const
Write scalar field.
Base class for ensightPartCells and ensightPartFaces.
bool writeData(Ostream &) const
Write reconstruction information for the object.
static const UList< T > & null()
Return a null UList.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
Ostream & writeKeyword(const keyType &)
Write the keyword followed by an appropriate indentation.
word name(const complex &)
Return a string representation of a complex.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
label size() const
Return the number of elements in the UList.
void setSize(const label)
Reset size of List.
void newline()
Add carriage return to ascii stream.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
label offset_
Start offset for elemLists_.
const string & name() const
Part name or description.
label size() const
Number of elements in this part.
void writeFieldList(ensightFile &os, const List< scalar > &field, const labelUList &idList) const
Write a scalar field for idList.
Ostream & incrIndent(Ostream &os)
Increment the indent level.
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
label offset() const
Offset for element ids.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
string name_
Part name (or description)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.