Go to the documentation of this file.
21 #ifndef ensight_writeDimFields_H
22 #define ensight_writeDimFields_H
35 const ensightMesh& ensMesh,
36 const tmp<DimensionedField<Type, volMesh>>& tdf
44 auto tfield = makeZeroGradientField<Type>(tdf);
48 return writeVolField<Type>
62 const ensightMesh& ensMesh,
63 const IOobjectList& objects
72 const fvMesh&
mesh = dynamicCast<const fvMesh>(ensMesh.mesh());
76 for (
const word& fieldName : objects.sortedNames<DimField>())
84 getField<DimField>(objects.findObject(fieldName),
mesh)
88 Info<<
' ' << fieldName;
100 const ensightMesh& ensMesh,
101 const IOobjectList& objects
104 #undef ensight_WRITE_FIELD
105 #define ensight_WRITE_FIELD(PrimitiveType) \
106 writeDimFields<PrimitiveType> \
120 #undef ensight_WRITE_FIELD
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Mesh data needed to do the Finite Volume discretisation.
const IOobject * findObject(const word &objName) const
Return const pointer to the object found by name.
wordList sortedNames() const
The sorted names of the IOobjects.
const polyMesh & mesh() const noexcept
Reference to the underlying polyMesh.
label writeDimFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Mesh data needed to do the Finite Volume discretisation.
label writeAllDimFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects)
List of IOobjects with searching and retrieving facilities.
Supports writing of ensight cases as well as providing common factory methods to open new files.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
bool writeDimField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< DimensionedField< Type, volMesh >> &tdf)
Generic GeometricField class.
#define ensight_WRITE_FIELD(PrimitiveType)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...