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
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Ensight output with specialised write() for strings, integers and floats. Correctly handles binary wr...
Specialised Ensight output with extra geometry file header.
Track the points used by the part and map global to local indices.
localPoints()
Null constructor.
labelList list
Map global to local indices.
label nPoints
Number of points used.
Base class for ensightPartCells and ensightPartFaces.
const pointField & points_
pointField referenced
label size_
Number of elements in this part.
autoPtr< ensightPart > clone() const
Construct and return clone.
virtual localPoints calcLocalPoints() const
Track points used.
bool writeData(Ostream &) const
Write reconstruction information for the object.
static autoPtr< ensightPart > New(Istream &)
Reconstruct part characteristics on freestore from Istream.
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 number() const
Part number.
bool isFieldDefined(const List< scalar > &) const
Check for fully defined fields.
const string & name() const
Part name or description.
bool isFaceData() const
Represents face data.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Write connectivities.
label offset_
Start offset for elemLists_.
label matId_
Material id (numeric)
bool writeSummary(Ostream &) const
Write summary information about the object.
friend Ostream & operator<<(Ostream &, const ensightPart &)
Write data (reconstruction information)
labelListList elemLists_
Simple labelList with a name.
void renumber(const labelUList &)
Renumber elements.
label materialId() const
Material id.
string name_
Part name (or description)
label number_
Part number.
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
void operator=(const ensightPart &)=delete
Disallow default bitwise assignment.
void writeScalarField(ensightFile &, const List< scalar > &field, const bool perNode=false) const
Write scalar field.
bool isCellData() const
Represents cell data.
label size() const
Number of elements in this part.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
void writeHeader(ensightFile &, bool withDescription=false) const
Write the part header.
void writeField(ensightFile &, const Field< Type > &, const bool perNode=false) const
Write generalised field components.
ensightPart()
Construct null.
label offset() const
Offset for element ids.
virtual ~ensightPart()
Destructor.
const labelListList & elemLists() const
Simple labelList with a name.
TypeName("ensightPart")
Runtime type information.
virtual const List< word > & elementTypes() const
void writeFieldList(ensightFile &os, const List< scalar > &field, const labelUList &idList) const
Write a scalar field for idList.
declareRunTimeSelectionTable(autoPtr, ensightPart, istream,(Istream &is),(is))
bool isCellData_
Cell or face data.
A class for handling words, derived from string.
Template to write generalised field components.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
Basic run-time type information using word as the type's name. Used to enhance the standard RTTI to c...