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),
151 #undef foamToVtk_WRITE_FIELD
152 #define foamToVtk_WRITE_FIELD(FieldType) \
153 writePointFields<FieldType> \
169 #undef foamToVTK_WRITE_FIELD
label writePointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
A class for handling words, derived from Foam::string.
void clear() const noexcept
A class for managing temporary objects.
autoPtr< vtk::internalWriter > internalWriter
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
virtual void write(const coordSet &, const wordList &, const List< const Field< Type > * > &, Ostream &) const =0
General entry point for writing.
const fvMesh & baseMesh() const
The entire base mesh.
wordList sortedNames() const
The sorted names of the IOobjects.
PtrList< vtk::patchWriter > patchWriters
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
bool useSubMesh() const
Check if a sub-mesh is being used.
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)
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)
Count number of 'true' entries.
bool valid() const noexcept
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)