Go to the documentation of this file.
45 "(tria3 quad4 nsided)"
61 const face&
f = faces[faceI];
67 else if (
f.size() == 4)
90 const face&
f = faces[faceI];
94 triCells[nTri++] = faceI;
96 else if (
f.size() == 4)
98 quadCells[nQuad++] = faceI;
102 polygonCells[nPoly++] = faceI;
123 const string& partDescription
128 contiguousPoints_(
false)
139 const string& partDescription,
142 const bool contiguousPoints
147 contiguousPoints_(contiguousPoints)
167 contiguousPoints_(
false)
170 offset_ = patch.
start();
181 contiguousPoints_(part.contiguousPoints_)
189 contiguousPoints_(false)
206 if (contiguousPoints_)
210 ptList.
nPoints = points_.size();
225 const label id = idList[i] + offset_;
226 const face&
f = faces_[id];
230 if (usedPoints[
f[fp]] == -1)
242 if (usedPoints[ptI] > -1)
272 const label id = idList[i] + offset_;
273 const face&
f = faces[id];
283 const label id = idList[i] + offset_;
284 const face&
f = faces[id];
290 os.
write(pointMap[
f[fp]] + 1);
virtual const pointField & points() const
Return raw points.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
static const List< T > & null()
Return a null List.
static const List< word > elemTypes_
label size() const
Number of elements in this part.
A class for handling words, derived from string.
virtual localPoints calcLocalPoints() const
Track points used.
#define forAll(list, i)
Loop across all elements in list.
labelListList elemLists_
Simple labelList with a name.
label nPoints
Number of points used.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
virtual ~ensightPartFaces()
Destructor.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
virtual const List< word > & elementTypes() const
Static listing of the element types.
Mesh consisting of general polyhedral cells.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Element connectivity.
labelList list
Map global to local indices.
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)....
A patch is a list of labels that address the faces in the global face list.
void newline()
Add carriage return to ascii stream.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
bool isCellData_
Cell or face data.
labelList identity(const label len)
Create identity map (map[i] == i) of given length.
Macros for easy insertion into run-time selection tables.
Track the points used by the part and map global to local indices.
label start() const
Return start label of this patch in the polyMesh face list.
void classify(const faceList &)
Classify the face shapes, set elemLists.
label size_
Number of elements in this part.
void setSize(const label)
Reset size of List.
virtual const faceList & faces() const
Return raw faces.
Base class for ensightPartCells and ensightPartFaces.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
virtual Ostream & writeKeyword(const string &key)
Write keyword with trailing newline.
An implementation of ensightPart to hold volume mesh faces.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
label size() const
Return the number of elements in the UList.
ensightPartFaces(label partNumber, const string &partDescription)
Construct empty part with number and description.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return name.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.