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)
166 faces_(mesh.faces()),
167 contiguousPoints_(false)
181 contiguousPoints_(part.contiguousPoints_)
189 contiguousPoints_(false)
206 if (contiguousPoints_)
210 ptList.nPoints = points_.size();
214 localPoints ptList(points_);
225 const label id = idList[i] + offset_;
226 const face&
f = faces_[id];
230 if (usedPoints[
f[fp]] == -1)
242 if (usedPoints[ptI] > -1)
253 void Foam::ensightPartFaces::writeConnectivity
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);
297 void Foam::ensightPartFaces::writeConnectivity
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void size(const label)
Override size to be inconsistent with allocated storage.
void setSize(const label)
Reset size of List.
label size() const
Return the number of elements in the UList.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
void newline()
Add carriage return to ascii stream.
Specialised Ensight output with extra geometry file header.
virtual Ostream & writeKeyword(const string &key)
Write keyword with trailing newline.
An implementation of ensightPart to hold volume mesh faces.
virtual ~ensightPartFaces()
Destructor.
static const List< word > elemTypes_
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
void classify(const faceList &)
Classify the face shapes, set elemLists.
ensightPartFaces(label partNumber, const string &partDescription)
Construct empty part with number and description.
virtual const List< word > & elementTypes() const
Static listing of the element types.
Track the points used by the part and map global to local indices.
labelList list
Map global to local indices.
Base class for ensightPartCells and ensightPartFaces.
label size_
Number of elements in this part.
label offset_
Start offset for elemLists_.
labelListList elemLists_
Simple labelList with a name.
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
label size() const
Number of elements in this part.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
bool isCellData_
Cell or face data.
A face is a list of labels corresponding to mesh vertices.
Mesh consisting of general polyhedral cells.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
A class for handling words, derived from string.
List< label > labelList
A List of labels.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
defineTypeNameAndDebug(combustionModel, 0)
labelList identityMap(const label len)
Create identity map (map[i] == i) of given length.
UList< label > labelUList