Go to the documentation of this file.
47 const auto& pfld =
field.boundaryField()[patchi];
49 if (!isA<emptyFvsPatchVectorField>(pfld))
51 SubList<vector>(flat, pp.size(), pp.offset()) = pfld;
61 Foam::vtk::surfaceFieldWriter::surfaceFieldWriter
76 Foam::vtk::surfaceFieldWriter::surfaceFieldWriter
89 Foam::vtk::surfaceFieldWriter::surfaceFieldWriter
126 "case='" + mesh_.time().globalCaseName()
127 +
"' region='" + mesh_.name()
128 +
"' time='" + mesh_.time().timeName()
129 +
"' index='" +
Foam::name(mesh_.time().timeIndex())
141 const pointField& centres = mesh_.faceCentres();
144 numberOfPoints_ = centres.size();
171 SubList<point>(centres, mesh_.nInternalFaces())
178 SubList<point>(centres, mesh_.boundaryMesh().range())
197 return enter_CellData(0, 0);
204 return enter_PointData(numberOfPoints_, 0);
221 label nFaces =
field.mesh().nFaces();
225 reduce(nFaces, sumOp<label>());
228 if (nFaces != numberOfPoints_)
231 <<
"Expecting " << numberOfPoints_
232 <<
" faces, but found " << nFaces
236 this->beginDataArray<vector>(
field.name(), nFaces);
240 const SubList<vector>
internal(
field, mesh_.nInternalFaces());
266 this->endDataArray();
Encapsulated combinations of output format options. This is primarily useful when defining the output...
Base class for VTK output writers that handle geometry and fields (eg, vtp, vtu data)....
A class for handling file names.
static constexpr const zero Zero
A List obtained as a section of another List.
virtual bool beginCellData(label nFields=0)
virtual bool beginFile(std::string title="")
const polyBoundaryMesh & boundaryMesh() const
Ostream & endl(Ostream &os)
virtual bool beginFile(std::string title="")
void write(const surfaceVectorField &field)
virtual bool beginPointData(label nFields=0)
word format(conversionProperties.get< word >("format"))
void reduce(const List< UPstream::commsStruct > &comms, T &Value, const BinaryOp &bop, const int tag, const label comm)
Generic templated field type.
@ NUMBER_OF_POINTS
"NumberOfPoints"
virtual bool writeGeometry()
label nBoundaryFaces() const noexcept
void writeList(vtk::formatter &fmt, const UList< uint8_t > &values)
Write surfaces fields (as PointData) in VTP format. Legacy VTK format is intentionally not supported.
void beginPoints(std::ostream &os, label nPoints)
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
word name(const expressions::valueTypeCode typeCode)
void writeListParallel(vtk::formatter &fmt, const UList< Type > &values)
GeometricField< vector, fvsPatchField, surfaceMesh > surfaceVectorField
Generic GeometricField class.