21#ifndef FoamToEnsight_writePointFields_H
22#define FoamToEnsight_writePointFields_H
46 const auto&
field = tfield();
106 const label total = objects.
size();
109 #undef doLocalWriteCode
110 #define doLocalWriteCode(Type) \
112 count += writePointFields<Type> \
118 if (count >= total) break; \
127 #undef doLocalWriteCode
Helper routines for reading a field or fields, for foamToEnsight.
label size() const noexcept
The number of elements in table.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
UPtrList< const IOobject > csorted() const
The sorted list of IOobjects with headerClassName == Type::typeName.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static FOAM_NO_DANGLING_REFERENCE const pointMesh & New(const polyMesh &mesh, Args &&... args)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Supports writing of ensight cases as well as providing common factory methods to open new files.
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
Mesh representing a set of points created from polyMesh.
A class for managing temporary objects.
OBJstream os(runTime.globalPath()/outputName)
#define doLocalWriteCode(Type)
bool writePointField(ensightOutput::floatBufferType &scratch, ensightFile &os, const GeometricField< Type, pointPatchField, pointMesh > &pf, const ensightMesh &ensMesh)
Write point field component-wise.
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
messageStream Info
Information stream (stdout output on master, null elsewhere).
bool writePointField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< PointField< Type > > &tfield)
GeometricField< Type, pointPatchField, pointMesh > PointField
A point field for a given type.
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>.