Go to the documentation of this file.
45 "(tetra4 pyramid5 penta6 hexa8 nfaced)"
67 size_ =
mesh.nCells();
73 size_ = idList.
size();
83 for (
label listI = 0; listI < size_; ++listI)
131 for (
label listI = 0; listI < size_; ++listI)
144 tetCells[nTet++] =
cellId;
148 pyramidCells[nPyr++] =
cellId;
152 prismCells[nPrism++] =
cellId;
156 hexCells[nHex++] =
cellId;
160 polyCells[nPoly++] =
cellId;
166 elemLists_.setSize(elementTypes().size());
168 elemLists_[tetra4Elements].transfer(tetCells);
169 elemLists_[pyramid5Elements].transfer(pyramidCells);
170 elemLists_[penta6Elements].transfer(prismCells);
171 elemLists_[hexa8Elements].transfer(hexCells);
172 elemLists_[nfacedElements].transfer(polyCells);
181 const string& partDescription
185 mesh_(*
reinterpret_cast<polyMesh*
>(0))
212 classify(
mesh, idList);
226 classify(
mesh, cZone);
267 const label id = idList[i] + offset_;
272 const face&
f = mesh_.faces()[cFaces[cFaceI]];
276 if (usedPoints[
f[fp]] == -1)
289 if (usedPoints[ptI] > -1)
315 const faceList& meshFaces = mesh_.faces();
321 const label id = idList[i] + offset_;
331 const label id = idList[i] + offset_;
336 const face& cf = meshFaces[cFace[faceI]];
346 const label id = idList[i] + offset_;
362 os.
write(pointMap[cf[ptI]] + 1);
369 os.
write(pointMap[cf[0]] + 1);
370 for (
label ptI = cf.
size()-1; ptI > 0; --ptI)
372 os.
write(pointMap[cf[ptI]] + 1);
387 const label id = idList[i] + offset_;
394 os.
write(pointMap[cellPoints[ptI]] + 1);
const cellShapeList & cellShapes
const Foam::edgeFaceCirculator Foam::edgeFaceCirculator::endConstIter * reinterpret_cast(0), -1, false, -1, false
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
label nPoints
Number of points used.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
void reconstruct(Istream &)
Reconstruct part characteristics (eg, element types) from Istream.
An implementation of ensightPart to hold volume mesh cells.
Mesh consisting of general polyhedral cells.
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.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void newline()
Add carriage return to ascii stream.
virtual Ostream & write(const char *buf, std::streamsize count)
Binary write.
Macros for easy insertion into run-time selection tables.
An analytical geometric cellShape.
Track the points used by the part and map global to local indices.
const word & name() const
Return name.
IOstream & hex(IOstream &io)
static const List< word > elemTypes_
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 ~ensightPartCells()
Destructor.
void classify(const polyMesh &, const labelUList &idLabels=labelUList::null())
Classify the cell types, set elemLists.
virtual Ostream & writeKeyword(const string &key)
Write keyword with trailing newline.
A face is a list of labels corresponding to mesh vertices.
Maps a geometry to a set of cell primitives, which enables geometric cell data to be calculated witho...
ensightPartCells(label partNumber, const string &partDescription)
Construct empty part with number and description.
void size(const label)
Override size to be inconsistent with allocated storage.
label size() const
Return the number of elements in the UList.
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
virtual localPoints calcLocalPoints() const
Track points used.
defineTypeNameAndDebug(combustionModel, 0)
virtual void writeGeometry(ensightGeoFile &) const
Write geometry.
stressControl lookup("compactNormalStress") >> compactNormalStress
const cellModel & model() const
Model reference.
virtual void writeConnectivity(ensightGeoFile &, const word &key, const labelUList &idList, const labelUList &pointMap) const
Track the points used.