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 specialised 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 writeData(Ostream &) const
Write reconstruction information for the object.
label size() const
Number of elements in this part.
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...
virtual bool check(const char *operation) const
Check IOstream status for given operation.
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.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label number() const
Part number.
virtual localPoints calcLocalPoints() const
Track points used.
Specialised Ensight output with extra geometry file header.
Track the points used by the part and map global to local indices.
void writeScalarField(ensightFile &, const List< scalar > &field, const bool perNode=false) const
Write scalar field.
virtual Ostream & writeKeyword(const string &key)
Write element keyword with trailing newline, optionally with undef.
labelListList elemLists_
Simple labelList with a name.
labelList list
Map global to local indices.
void writeFieldList(ensightFile &os, const List< scalar > &field, const labelUList &idList) const
Write a scalar field for idList.
void writeHeader(ensightFile &, bool withDescription=false) const
Write the part header.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
void writeVectorField(ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool perNode=false) const
Write vector field components.
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.
const string & name() const
Part name or description.
A class for handling words, derived from string.
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
virtual Ostream & writeKeyword(const string &key)
Write keyword with trailing newline.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
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...
Base class for ensightPartCells and ensightPartFaces.
static const UList< T > & null()
Return a null UList.
Ostream & decrIndent(Ostream &os)
Decrement the indent level.
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
word name(const complex &)
Return a string representation of a complex.
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.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
void setSize(const label)
Reset size of List.
void newline()
Add carriage return to ascii stream.
label offset_
Start offset for elemLists_.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
bool writeSummary(Ostream &) const
Write summary information about the object.
label size() const
Return the number of elements in the UList.
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)
string name_
Part name (or description)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
label offset() const
Offset for element ids.
virtual const List< word > & elementTypes() const