58 Ostream&
operator<<(Ostream&,
const ensightPart&);
59 ensightGeoFile&
operator<<(ensightGeoFile&,
const ensightPart&);
188 const string& partDescription,
260 const string&
name()
const 272 void name(
const string& value)
320 const bool perNode =
false 331 const bool perNode =
false 342 const bool perNode =
false TypeName("ensightPart")
Runtime type information.
virtual ~ensightPart()
Destructor.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
label number_
Part number.
bool writeSummary(Ostream &) const
Write summary information about the object.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
localPoints()
Null constructor.
ensightPart()
Construct null.
friend Ostream & operator<<(Ostream &, const ensightPart &)
Write data (reconstruction information)
label nPoints
Number of points used.
bool isCellData() const
Represents cell data.
label materialId() const
Material id.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Specialized Ensight output with extra geometry file header.
const pointField & points_
pointField referenced
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.
bool isCellData_
Cell or face data.
labelListList elemLists_
Simple labelList with a name.
label number() const
Part number.
labelList list
Map global to local indices.
label size_
Number of elements in this part.
void operator=(const ensightPart &)
Disallow default bitwise assignment.
A class for handling words, derived from string.
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.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
virtual const List< word > & elementTypes() const
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...
bool isFaceData() const
Represents face data.
void renumber(const labelUList &)
Renumber elements.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
declareRunTimeSelectionTable(autoPtr, ensightPart, istream,(Istream &is),(is))
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.
Template to write generalized field components.
void writeField(ensightFile &, const Field< Type > &, const bool perNode=false) const
Write generalized field components.
const labelListList & elemLists() const
Simple labelList with a name.
label offset_
Start offset for elemLists_.
Ostream & operator<<(Ostream &, const ensightPart &)
const string & name() const
Part name or description.
label size() const
Number of elements in this part.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void writeFieldList(ensightFile &os, const List< scalar > &field, const labelUList &idList) const
Write a scalar field for idList.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
autoPtr< ensightPart > clone() const
Construct and return clone.
label offset() const
Offset for element ids.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
string name_
Part name (or description)
label matId_
Material id (numeric)