21 #ifndef ensight_writeDimFields_H 22 #define ensight_writeDimFields_H 44 auto tfield = makeZeroGradientField<Type>(tdf);
48 return writeVolField<Type>
68 const auto&
mesh = refCast<const fvMesh>(ensMesh.
mesh());
84 Info<<
' ' << fieldName;
100 #undef ensight_WRITE_FIELD 101 #define ensight_WRITE_FIELD(PrimitiveType) \ 102 writeDimFields<PrimitiveType> \ 116 #undef ensight_WRITE_FIELD
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
wordList sortedNames() const
The sorted names of the IOobjects.
bool writeDimField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< VolumeInternalField< Type >> &tdf)
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
#define ensight_WRITE_FIELD(PrimitiveType)
A class for handling words, derived from Foam::string.
const IOobject * findObject(const word &objName) const
Return const pointer to the object found by name.
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.
label writeDimFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.
label writeAllDimFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)