19#ifndef FoamToVTK_writeVolFields_H
20#define FoamToVTK_writeVolFields_H
31template<
class GeoField>
75template<
class GeoField>
150 const label total = objects.
size();
153 #undef doLocalWriteCode
154 #define doLocalWriteCode(Type) \
156 typedef VolumeField<Type> FieldType; \
158 count += writeVolFields<FieldType> \
167 if (count >= total) break; \
176 #undef doLocalWriteCode
199 const label total = objects.
size();
202 #undef doLocalWriteCode
203 #define doLocalWriteCode(Type) \
205 typedef VolumeField<Type> FieldType; \
207 count += writeVolFields<FieldType> \
209 internalWriter, pInterp, \
210 patchWriters, patchInterps, \
216 if (count >= total) break; \
225 #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.
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.
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
Registry of regIOobjects.
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)
PtrList< PrimitivePatchInterpolation< primitivePatch > > patchInterps
autoPtr< volPointInterpolation > pInterp
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
label writeVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
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>.