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