Go to the documentation of this file.
35 const bool nearCellValue,
42 nearCellValue_(nearCellValue),
48 ios_base::out|ios_base::binary)
54 if (patchIDs_.size() == 1)
56 writeFuns::writeHeader(os_, binary_,
patches[patchIDs_[0]].
name());
60 writeFuns::writeHeader(os_, binary_,
"patches");
78 nFaceVerts += pp[faceI].size() + 1;
82 os_ <<
"POINTS " << nPoints_ <<
" double" <<
std::endl;
94 os_ <<
"POLYGONS " << nFaces_ <<
' ' << nFaceVerts <<
std::endl;
133 if (!isA<emptyPolyPatch>(pp))
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
A class for handling file names.
#define forAll(list, i)
Loop across all elements in list.
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
const Field< PointType > & localPoints() const
Return pointField of points in patch.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Encapsulation of VTK mesh data. Holds mesh or meshsubset and polyhedral-cell decomposition on it.
void writePatchIDs()
Write cellIDs.
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.
static void write(std::ostream &, const bool, DynamicList< floatScalar > &)
Write floats ascii or binary.
const labelList patchIDs_
label nPoints() const
Return number of points supporting patch faces.
Mesh data needed to do the Finite Volume discretisation.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
const fvMesh & mesh() const
Access either mesh or submesh.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const List< Face > & localFaces() const
Return patch faces addressing into local point list.
A face is a list of labels corresponding to mesh vertices.
void size(const label)
Override size to be inconsistent with allocated storage.
static void insert(const point &, DynamicList< floatScalar > &dest)
Append point to given DynamicList.
word name(const complex &)
Return a string representation of a complex.
timeIndices insert(timeIndex, timeDirs[timeI].value())
patchWriter(const vtkMesh &, const bool binary, const bool nearCellValue, const fileName &, const labelList &patchIDs)
Construct from components.