Go to the documentation of this file.
30 template<
class GeoField>
31 Foam::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)
100 template<
class GeoField>
101 Foam::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)
wordList sortedNames() const
The sorted names of all objects.
A class for handling words, derived from Foam::string.
Given the original mesh and the list of selected cells, it creates the mesh consisting only of the de...
autoPtr< vtk::internalWriter > internalWriter
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
PtrList< vtk::patchWriter > patchWriters
Ostream & endl(Ostream &os)
Add newline and flush stream.
const fvMesh & baseMesh() const
Original mesh.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
Base class for graphics format writing. Entry points are.
Mesh data needed to do the Finite Volume discretisation.
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
const Type * findObject(const word &name, const bool recursive=false) const
Return const pointer to the object of the given Type.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
autoPtr< volPointInterpolation > pInterp