Go to the documentation of this file.
36 #ifndef ensight_writeVolFields_H
37 #define ensight_writeVolFields_H
53 const bool nearCellValue =
false
60 else if (nearCellValue)
62 auto tzgrad = makeZeroGradientField<Type>(tfield);
74 const auto&
field = tfield();
82 bool wrote = ensightOutput::writeVolField<Type>
101 const bool nearCellValue =
false
123 Info<<
' ' << fieldName;
137 const bool nearCellValue =
false
140 #undef ensight_WRITE_FIELD
141 #define ensight_WRITE_FIELD(PrimitiveType) \
142 writeVolFields<PrimitiveType> \
157 #undef ensight_WRITE_FIELD
autoPtr< ensightFile > newData(const word &varName, const bool isPointData=false) const
Open stream for new data file (on master), with current index.
Encapsulation of volume meshes for writing in ensight format. It manages cellZones,...
Helper routines for reading a field or fields, for foamToEnsight.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
#define ensight_WRITE_FIELD(PrimitiveType)
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.
bool writeVolField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< GeometricField< Type, fvPatchField, volMesh >> &tfield, const bool nearCellValue=false)
messageStream Info
Information stream (uses stdout - output is on the master only)
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
Mesh data needed to do the Finite Volume discretisation.
List of IOobjects with searching and retrieving facilities.
label writeVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
Supports writing of ensight cases as well as providing common factory methods to open new files.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
T & ref()
Return reference to the managed object without nullptr checking.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
bool nodeValues() const
Force use of values per node instead of per element.
const polyMesh & mesh() const
Reference to the underlying polyMesh.