33template<
class Type,
template<
class>
class PatchField>
68 const auto* vpp = isA<Field<Type>>(pfld);
117 const auto* vpp = isA<Field<Type>>(pfld);
124 toProc << pfld.patchInternalField();
135template<
class Type,
template<
class>
class PatchField>
141 if (isState(outputState::CELL_DATA))
152 label
nFaces = nLocalPolys_;
164 for (
const label
patchId : patchIDs_)
168 if (useNearCellValue_)
182 const label
nPatches = patchIDs_.size();
210 for (
const label
patchId : patchIDs_)
214 if (useNearCellValue_)
216 toProc << pfld.patchInternalField()();
220 toProc << static_cast<const Field<Type>&>(pfld);
227 this->endDataArray();
238 if (isState(outputState::POINT_DATA))
261 for (
const label
patchId : patchIDs_)
265 if (useNearCellValue_)
270 pfld.patchInternalField()()
288 const label
nPatches = patchIDs_.size();
316 for (
const label
patchId : patchIDs_)
320 if (useNearCellValue_)
325 pfld.patchInternalField()()
341 this->endDataArray();
Generic templated field type.
Generic GeometricField class.
Input inter-processor communications stream.
Output inter-processor communications stream.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
tmp< Field< Type > > faceToPointInterpolate(const Field< Type > &ff) const
Interpolate from faces to points.
UPstream::rangeType subProcs() const noexcept
Range of sub-processes indices associated with PstreamBuffers.
void size(const label n)
Older name for setAddressableSize.
static constexpr int masterNo() noexcept
Process index of the master (always 0)
virtual bool write()
Write the output fields.
splitCell * master() const
bool isState(outputState test) const noexcept
True if output state corresponds to the test state.
bool parallel_
Parallel writing (via master)
void endDataArray()
Flush formatter and end of DataArray output (non-legacy)
label nPointData_
The number of PointData written for the Piece thus far.
@ POINT_DATA
Inside PointData.
Ostream & reportBadState(Ostream &, outputState expected) const
Generate message reporting bad writer state.
vtk::formatter & format()
The VTK formatter in use. FatalError for off-processor.
label nLocalPoints_
Local number of points.
labelList patchIDs_
The selected patch ids.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const labelList nFaces(UPstream::listGatherValues< label >(aMesh.nFaces()))
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write a list of uint8_t values.
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
word format(conversionProperties.get< word >("format"))