Go to the documentation of this file.
43 if (contiguousPoints_)
47 ptList.nPoints = points_.size();
51 localPoints ptList(points_);
61 const label id = idList[i] + start_;
62 const face&
f = faces_[id];
66 if (usedPoints[
f[fp]] == -1)
78 if (usedPoints[ptI] > -1)
91 Foam::ensightPartFaces::ensightPartFaces
94 const string& description,
97 const bool contiguousPoints
106 contiguousPoints_(contiguousPoints)
113 Foam::ensightPartFaces::ensightPartFaces
118 const string& partName
123 start_(
patch.start()),
124 patchIndex_(
patch.index()),
127 contiguousPoints_(
false)
129 if (!partName.empty())
139 Foam::ensightPartFaces::ensightPartFaces
143 const string& partName
152 void Foam::ensightPartFaces::writeConnectivity
161 if (idList.
empty())
return;
173 const label id = idList[i] + start_;
174 const face&
f = faces[id];
184 const label id = idList[i] + start_;
185 const face&
f = faces[id];
191 os.
write(pointMap[
f[fp]] + 1);
198 void Foam::ensightPartFaces::writeConnectivity
235 if (pointMap[ptI] > -1)
262 this->
write(os, points_);
List< label > labelList
A List of labels.
Ostream & writeList(Ostream &os, const label shortLen=0) const
Write List, with line-breaks in ASCII when length exceeds shortLen.
Track the points used by the part and map global to local indices.
virtual const pointField & points() const
Return raw points.
static constexpr int nTypes
Number of element types (3)
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
A class for handling words, derived from Foam::string.
void beginPart(const label index, const string &description)
Begin a "part" (0-based index), with a description.
static const char * key(const enum elemType)
Return the ensight element name for the specified type.
virtual void dumpInfo(Ostream &os) const
Print various types of debugging information.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
void beginCoordinates(const label npoints)
Begin a "coordinates" block.
Sorting/classification of faces (2D) into corresponding ensight types.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
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.
A patch is a list of labels that address the faces in the global face list.
word name(const complex &c)
Return string representation of complex.
void newline()
Add carriage return to ascii stream.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
virtual Ostream & endBlock()
Write end block group.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
const labelUList & faceIds() const
Return the processor local face ids of all elements.
virtual Ostream & writeKeyword(const keyType &kw)
Write the keyword followed by an appropriate indentation.
elemType
Addressable ensight element types.
virtual const faceList & faces() const
Return raw faces.
labelList list
Map global to local indices.
const std::string patch
OpenFOAM patch number as a std::string.
virtual Ostream & writeKeyword(const keyType &key)
Write keyword with trailing newline.
Base class for ensightPartCells and ensightPartFaces.
Ostream & endEntry(Ostream &os)
Write end entry (';') followed by newline.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
labelList identity(const label len, label start=0)
Create identity map of the given length with (map[i] == i)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
void size(const label n) noexcept
Override size to be inconsistent with allocated storage.
An implementation of ensightPart to hold mesh faces.
A face is a list of labels corresponding to mesh vertices.
virtual void writeSummary(Ostream &os) const
Write summary information about the object.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
UList< label > labelUList
A UList of labels.
label nPoints
Number of points used.
defineTypeNameAndDebug(combustionModel, 0)
static constexpr direction nComponents
Number of components in this vector space.
virtual void write(ensightGeoFile &os) const
Write geometry.