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 bool isFaceData() const
Represents face data.
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 writeData(Ostream &) const
Write reconstruction information for the object.
label size() const
Number of elements in this part.
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.
autoPtr< ensightPart > clone() const
Construct and return clone.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
label number() const
Part number.
virtual localPoints calcLocalPoints() const
Track points used.
const labelListList & elemLists() const
Simple labelList with a name.
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 writeScalarField(ensightFile &, const List< scalar > &field, const bool perNode=false) const
Write scalar field.
bool isCellData_
Cell or face data.
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.
void writeVectorField(ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool perNode=false) const
Write vector field components.
label size_
Number of elements in this part.
void operator=(const ensightPart &)
Disallow default bitwise assignment.
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.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
label materialId() const
Material id.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
void renumber(const labelUList &)
Renumber elements.
void writeField(ensightFile &, const Field< Type > &, const bool perNode=false) const
Write generalized field components.
bool isCellData() const
Represents cell data.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
declareRunTimeSelectionTable(autoPtr, ensightPart, istream,(Istream &is),(is))
Base class for ensightPartCells and ensightPartFaces.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Write connectivities.
Template to write generalized field components.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
label offset_
Start offset for elemLists_.
Ostream & operator<<(Ostream &, const ensightPart &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool writeSummary(Ostream &) const
Write summary information about the object.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
string name_
Part name (or description)
label offset() const
Offset for element ids.
virtual const List< word > & elementTypes() const
label matId_
Material id (numeric)