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),
141 #undef foamToVtk_WRITE_FIELD 142 #define foamToVtk_WRITE_FIELD(FieldType) \ 143 writePointFields<FieldType> \ 159 #undef foamToVTK_WRITE_FIELD label writePointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
#define foamToVtk_WRITE_FIELD(FieldType)
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
vtk::lineWriter writer(edgeCentres, edgeList::null(), fileName(aMesh.time().globalPath()/"finiteArea-edgesCentres"))
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new 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...
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
void write(const word &fieldName, const UList< Type > &field)
Write primitive field of CellData (Poly or Line) or PointData values.
bool writePointField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< PointField< Type >> &tfield)
Mesh representing a set of points created from polyMesh.
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.
bool useSubMesh() const noexcept
True if sub-mesh should be used.
Write OpenFOAM patches and patch fields in VTP or legacy vtk format.
void clear() const noexcept
If object pointer points to valid object: delete object and set pointer to nullptr.
A class for managing temporary objects.
PtrList< vtk::patchWriter > patchWriters