Go to the documentation of this file.
37 #ifndef writeVolFields_H
38 #define writeVolFields_H
62 const auto&
field = tfield();
67 bool wrote = ensightOutput::Serial::writeVolField<Type>
105 Info<<
' ' << fieldName;
122 #undef foamToEnsight_WRITE_FIELD
123 #define foamToEnsight_WRITE_FIELD(PrimitiveType) \
124 writeVolFields<PrimitiveType> \
138 #undef foamToEnsight_WRITE_FIELD
A collection of several ensightPart elements.
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)
Mesh data needed to do the Finite Volume discretisation.
Read fields from disk for foamToEnsight.
List of IOobjects with searching and retrieving facilities.
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.
#define foamToEnsight_WRITE_FIELD(PrimitiveType)
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.