19#ifndef FoamToVTK_writeAreaFields_H
20#define FoamToVTK_writeAreaFields_H
36template<
class GeoField>
40 const typename GeoField::Mesh&
mesh,
74 const label total = objects.
size();
77 #undef doLocalWriteCode
78 #define doLocalWriteCode(Type) \
80 typedef AreaField<Type> FieldType; \
82 count += writeAreaFields<FieldType> \
89 if (count >= total) break; \
98 #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.
Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
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.
#define doLocalWriteCode(Type)
GenericPatchGeoFieldsWriter< uindirectPrimitivePatch > uindirectPatchGeoFieldsWriter
Write uindirectPrimitivePatch faces/points as a vtp file or a legacy vtk file with support for geomet...
label writeAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
vtk::uindirectPatchGeoFieldsWriter vtkWriterType_areaMesh
label writeAllAreaFields(ensightCase &ensCase, const ensightFaMesh &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>.