21 #ifndef ensight_writeVolFields_H 22 #define ensight_writeVolFields_H 38 const bool nearCellValue =
false 45 else if (nearCellValue)
47 auto tzgrad = makeZeroGradientField<Type>(tfield);
59 const auto&
field = tfield();
62 const bool nodeValues = ensCase.nodeValues();
65 ensCase.newData<Type>(
field.name(), nodeValues);
67 bool wrote = ensightOutput::writeVolField<Type>
86 const bool nearCellValue =
false 91 const auto&
mesh = refCast<const fvMesh>(ensMesh.
mesh());
108 Info<<
' ' << fieldName;
119 ensightCase& ensCase,
122 const bool nearCellValue =
false 125 #undef ensight_WRITE_FIELD 126 #define ensight_WRITE_FIELD(PrimitiveType) \ 127 writeVolFields<PrimitiveType> \ 142 #undef ensight_WRITE_FIELD #define ensight_WRITE_FIELD(PrimitiveType)
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
label writeAllVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)
wordList sortedNames() const
The sorted names of the IOobjects.
Generic GeometricField class.
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.
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.
OBJstream os(runTime.globalPath()/outputName)
bool writeVolField(ensightCase &ensCase, const ensightMesh &ensMesh, const tmp< VolumeField< Type >> &tfield, const bool nearCellValue=false)
Helper routines for reading a field or fields, for foamToEnsight.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
A class for managing temporary objects.
Tensor of scalars, i.e. Tensor<scalar>.
label writeVolFields(ensightCase &ensCase, const ensightMesh &ensMesh, const IOobjectList &objects, const bool nearCellValue=false)