21 #ifndef ensight_writeAreaFields_H 22 #define ensight_writeAreaFields_H 44 const auto&
field = tfield();
47 ensCase.newData<Type>(
field.name());
49 bool wrote = ensightOutput::writeAreaField<Type>
87 Info<<
' ' << fieldName;
103 #undef ensight_WRITE_FIELD 104 #define ensight_WRITE_FIELD(PrimitiveType) \ 105 writeAreaFields<PrimitiveType> \ 119 #undef ensight_WRITE_FIELD Finite area mesh (used for 2-D non-Euclidian finite area method) defined using a patch of faces on a ...
label writeAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
Encapsulation of area meshes for writing in ensight format.
wordList sortedNames() const
The sorted names of the IOobjects.
Generic GeometricField class.
label writeAllAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
const faMesh & mesh() const noexcept
Reference to the underlying faMesh.
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...
OBJstream os(runTime.globalPath()/outputName)
#define ensight_WRITE_FIELD(PrimitiveType)
bool writeAreaField(ensightCase &ensCase, const ensightFaMesh &ensMesh, const tmp< AreaField< Type >> &tfield)
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>.