Go to the documentation of this file.
52 FaceListType& faces = pp;
63 const cell& cFaces =
mesh.cells()[celli];
65 for (
const label facei : cFaces)
67 if (
mesh.isInternalFace(facei))
69 label otherCelli =
mesh.faceOwner()[facei];
71 if (otherCelli == celli)
73 otherCelli =
mesh.faceNeighbour()[facei];
76 if (!
set.found(otherCelli))
78 cellFaces.insert(facei, celli);
83 cellFaces.insert(facei, celli);
89 faces.addressing() = cellFaces.sortedToc();
95 writer.open(file, parallel);
110 const labelList& faceIds = faces.addressing();
113 const label cellIdOffset =
120 faceValues[facei] = cellFaces[faceIds[facei]] + cellIdOffset;
Encapsulated combinations of output format options. This is primarily useful when defining the output...
List< label > labelList
A List of labels.
Write indirectPrimitivePatch faces/points (optionally with fields) as a vtp file or a legacy vtk file...
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
A class for handling file names.
bool writeCellSetFaces(const polyMesh &mesh, const cellSet &set, const vtk::outputOptions opts, const fileName &file, bool parallel=Pstream::parRun())
Write perimeter faces of cellset to vtk polydata file.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
vtk::internalMeshWriter writer(topoMesh, topoCells, writeOpts, runTime.path()/"blockTopology")
A List with indirect addressing.
Base class for graphics format writing. Entry points are.
A collection of cell labels.
Calculates a unique integer (label so might not have enough room - 2G max) for processor + local inde...
Write topoSet in VTK format.
A cell is defined as a list of faces with extra functionality.
A list of faces which address into the list of points.