21 #ifndef ensight_writePointFields_H 22 #define ensight_writePointFields_H 46 const auto&
field = tfield();
51 bool wrote = ensightOutput::writePointField<Type>
85 getField<FieldType>(ptMesh, objects, fieldName)
89 Info<<
' ' << fieldName;
100 ensightCase& ensCase,
105 #undef ensight_WRITE_FIELD 106 #define ensight_WRITE_FIELD(PrimitiveType) \ 107 writePointFields<PrimitiveType> \ 121 #undef ensight_WRITE_FIELD 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 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.
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
label writeAllPointFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
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.
A class for handling words, derived from Foam::string.
#define ensight_WRITE_FIELD(PrimitiveType)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Encapsulation of volume meshes for writing in ensight format. It manages cellZones, facesZone, patches.
OBJstream os(runTime.globalPath()/outputName)
Helper routines for reading a field or fields, for foamToEnsight.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.