Go to the documentation of this file.
180 const string& partDescription,
252 const string&
name()
const
264 void name(
const string& value)
312 const bool perNode =
false
323 const bool perNode =
false
334 const bool perNode =
false
const string & name() const
Part name or description.
label size() const
Number of elements in this part.
A class for handling words, derived from string.
label materialId() const
Material id.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
labelListList elemLists_
Simple labelList with a name.
void name(const string &value)
non-const access to part name or description
virtual localPoints calcLocalPoints() const
Track points used.
localPoints()
Null constructor.
label nPoints
Number of points used.
autoPtr< ensightPart > clone() const
Construct and return clone.
bool writeData(Ostream &) const
Write reconstruction information for the object.
label number() const
Part number.
label matId_
Material id (numeric)
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
virtual ~ensightPart()
Destructor.
void writeScalarField(ensightFile &, const List< scalar > &field, const bool perNode=false) const
Write scalar field.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Write connectivities.
void writeVectorField(ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool perNode=false) const
Write vector field components.
const labelListList & elemLists() const
Simple labelList with a name.
labelList list
Map global to local indices.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Specialized Ensight output with extra geometry file header.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
TypeName("ensightPart")
Runtime type information.
bool isCellData_
Cell or face data.
label offset_
Start offset for elemLists_.
friend Ostream & operator<<(Ostream &, const ensightPart &)
Write data (reconstruction information)
static const List< word > elemTypes_
label number_
Part number.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
Track the points used by the part and map global to local indices.
Ensight output with specialized write() for strings, integers and floats. Correctly handles binary wr...
void renumber(const labelUList &)
Renumber elements.
Template to write generalized field components.
bool isFaceData() const
Represents face data.
label size_
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...
label offset() const
Offset for element ids.
bool isCellData() const
Represents cell data.
void writeFieldList(ensightFile &os, const List< scalar > &field, const labelUList &idList) const
Write a scalar field for idList.
Base class for ensightPartCells and ensightPartFaces.
bool writeSummary(Ostream &) const
Write summary information about the object.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
localPoints(const pointField &pts)
Construct for mesh points.
ensightPart()
Construct null.
void operator=(const ensightPart &)
Disallow default bitwise assignment.
virtual const List< word > & elementTypes() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
const pointField & points_
pointField referenced
void writeField(ensightFile &, const Field< Type > &, const bool perNode=false) const
Write generalized field components.
declareRunTimeSelectionTable(autoPtr, ensightPart, istream,(Istream &is),(is))
void writeHeader(ensightFile &, bool withDescription=false) const
Write the part header.
string name_
Part name (or description)
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
void materialId(const label value)
non-const access to material id