Go to the documentation of this file.
38 #ifndef writePointFields_H
39 #define writePointFields_H
50 template<
class GeoField>
76 if (!tproxied.
valid())
83 const auto&
field = tproxied();
104 template<
class GeoField>
111 const typename GeoField::Mesh& ptMesh,
122 writePointField<GeoField>
126 getField<GeoField>(ptMesh, objects, fieldName, syncPar),
144 const fvMeshSubsetProxy& proxy,
145 const IOobjectList& objects,
151 #undef foamToVtk_WRITE_FIELD
152 #define foamToVtk_WRITE_FIELD(FieldType) \
153 writePointFields<FieldType> \
169 #undef foamToVTK_WRITE_FIELD
GeometricField< vector, pointPatchField, pointMesh > pointVectorField
label writePointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
A class for handling words, derived from Foam::string.
void clear() const noexcept
GeometricField< sphericalTensor, pointPatchField, pointMesh > pointSphericalTensorField
A class for managing temporary objects.
autoPtr< vtk::internalWriter > internalWriter
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
wordList sortedNames() const
PtrList< vtk::patchWriter > patchWriters
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
GeometricField< tensor, pointPatchField, pointMesh > pointTensorField
GeometricField< symmTensor, pointPatchField, pointMesh > pointSymmTensorField
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
bool writePointField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< GeometricField< Type, pointPatchField, pointMesh >> &tfield)
bool useSubMesh() const noexcept
Base class for graphics format writing. Entry points are.
Mesh representing a set of points created from polyMesh.
#define foamToVtk_WRITE_FIELD(FieldType)
List of IOobjects with searching and retrieving facilities.
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
Helper routines for reading a field or fields, optionally with a mesh subset (using fvMeshSubsetProxy...
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
unsigned int count(const UList< bool > &bools, const bool val=true)
bool valid() const noexcept
Generic GeometricField class.
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
const fvMesh & baseMesh() const noexcept
GeometricField< scalar, pointPatchField, pointMesh > pointScalarField