30template<
class GeoField>
31Foam::label Foam::functionObjects::vtkWrite::writeVolFields
43 for (
const word& fieldName : baseMesh.
sortedNames<GeoField>(acceptField))
46 const auto* fieldptr = baseMesh.
findObject<GeoField>(fieldName);
54 const auto&
field = tfield();
80 Log <<
" " << GeoField::typeName <<
'(';
91 if (verbose_ && count)
100template<
class GeoField>
101Foam::label Foam::functionObjects::vtkWrite::writeVolFields
115 for (
const word& fieldName : baseMesh.
sortedNames<GeoField>(acceptField))
118 const auto* fieldptr = baseMesh.
findObject<GeoField>(fieldName);
126 const auto&
field = tfield();
155 Log <<
" " << GeoField::typeName <<
"->point(";
166 if (verbose_ && count)
vtk::internalMeshWriter writer(topoMesh, topoCells, vtk::formatType::INLINE_ASCII, runTime.path()/"blockTopology")
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Holds a reference to the original mesh (the baseMesh) and optionally to a subset of that mesh (the su...
const fvMesh & baseMesh() const noexcept
Original mesh.
Mesh data needed to do the Finite Volume discretisation.
wordList sortedNames() const
The sorted names of all objects.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
bool interpolate() const noexcept
Same as isPointData()
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
A class for handling words, derived from Foam::string.
autoPtr< vtk::internalWriter > internalWriter
PtrList< vtk::patchWriter > patchWriters
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
autoPtr< volPointInterpolation > pInterp
Ostream & endl(Ostream &os)
Add newline and flush stream.