19#ifndef FoamToVTK_writePointFields_H
20#define FoamToVTK_writePointFields_H
31template<
class GeoField>
67 const auto&
field = tproxied();
88template<
class GeoField>
95 const typename GeoField::Mesh& ptMesh,
142 const label total = objects.
size();
145 #undef doLocalWriteCode
146 #define doLocalWriteCode(Type) \
148 typedef PointField<Type> FieldType; \
150 count += writePointFields<FieldType> \
158 if (count >= total) break; \
167 #undef doLocalWriteCode
Helper routines for reading a field or fields, optionally with a mesh subset (using fvMeshSubsetProxy...
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/(vtkBaseFileName+"-edgesCentres")))
label size() const noexcept
The number of elements in table.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
wordList sortedNames() const
The sorted names of the IOobjects.
static FOAM_NO_DANGLING_REFERENCE const pointMesh & New(const polyMesh &mesh, Args &&... args)
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.
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
static tmp< GeoField > interpolate(const fvMeshSubset &subsetter, const GeoField &fld)
Wrapper for field or the subsetted field.
const fvMesh & baseMesh() const noexcept
The entire base mesh.
bool useSubMesh() const noexcept
True if sub-mesh should be used.
Mesh representing a set of points created from polyMesh.
A class for managing temporary objects.
void clear() const noexcept
If object pointer points to valid object: delete object and set pointer to nullptr.
A class for handling words, derived from Foam::string.
autoPtr< vtk::internalWriter > internalWriter
PtrList< vtk::patchWriter > patchWriters
#define doLocalWriteCode(Type)
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
bool writePointField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< PointField< Type > > &tfield)
label writePointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
SphericalTensor< scalar > sphericalTensor
SphericalTensor of scalars, i.e. SphericalTensor<scalar>.
tmp< GeoField > getField(const IOobject &io, const typename GeoField::Mesh &mesh)
Get the field or FatalError.
SymmTensor< scalar > symmTensor
SymmTensor of scalars, i.e. SymmTensor<scalar>.