Go to the documentation of this file.
37 #ifndef writeVolFields_H
38 #define writeVolFields_H
63 const auto&
field = tfield();
67 bool wrote = ensightOutput::writeVolField<Type>
103 getField<GeoField>(objects.
findObject(fieldName), proxy),
108 Info<<
' ' << fieldName;
123 const bool nodeValues
126 #undef foamToEnsight_WRITE_FIELD
127 #define foamToEnsight_WRITE_FIELD(PrimitiveType) \
128 writeVolFields<PrimitiveType> \
143 #undef foamToEnsight_WRITE_FIELD
Encapsulation of volume meshes for writing in ensight format.
Read fields from disk for foamToEnsight.
#define foamToEnsight_WRITE_FIELD(PrimitiveType)
A class for handling words, derived from Foam::string.
autoPtr< ensightFile > newData(const word &varName) const
Open stream for new data file (on master), with current index.
A class for managing temporary objects.
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool writeVolField(ensightCase &ensCase, const ensightMesh &ensMesh, const fvMeshSubsetProxy &proxy, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tfield, const bool nodeValues)
messageStream Info
Information stream (uses stdout - output is on the master only)
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const fvMeshSubsetProxy &proxy, const IOobjectList &objects, const bool nodeValues)
List of IOobjects with searching and retrieving facilities.
Simple proxy for holding a mesh, or mesh-subset. The subMeshes are currently limited to cellSet or ce...
Supports writing of ensight cases as well as providing common factory methods to open new files.
label writeVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const fvMeshSubsetProxy &proxy, const IOobjectList &objects, const bool nodeValues)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
T & ref()
Return reference to the managed object without nullptr checking.