19 #ifndef FoamToVTK_writePointFields_H 20 #define FoamToVTK_writePointFields_H 31 template<
class GeoField>
67 const auto&
field = tproxied();
88 template<
class GeoField>
95 const typename GeoField::Mesh& ptMesh,
109 writePointField<GeoField>
113 getField<GeoField>(ptMesh, objects, fieldName, syncPar),
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 label writePointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
static FOAM_NO_DANGLING_REFERENCE const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create MeshObject registered with typeName.
wordList sortedNames() const
The sorted names of the IOobjects.
Helper routines for reading a field or fields, optionally with a mesh subset (using fvMeshSubsetProxy...
#define doLocalWriteCode(Type)
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData or PointData values (size depending on the current context)...
bool writePointField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< PointField< Type >> &tfield)
Mesh representing a set of points created from polyMesh.
label size() const noexcept
The number of elements in table.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const fvMesh & baseMesh() const noexcept
The entire base mesh.
A class for handling words, derived from Foam::string.
autoPtr< vtk::internalWriter > internalWriter
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
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.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
bool useSubMesh() const noexcept
True if sub-mesh should be used.
void clear() const noexcept
If object pointer points to valid object: delete object and set pointer to nullptr.
vtk::vertexWriter writer(edgeCentres, outputOpts,(aMesh.time().globalPath()/outputName), UPstream::parRun())
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.
PtrList< vtk::patchWriter > patchWriters