21 #ifndef FoamToEnsight_writeAreaFields_H 22 #define FoamToEnsight_writeAreaFields_H 44 const auto&
field = tfield();
47 ensCase.newData<Type>(
field.name());
49 bool wrote = ensightOutput::writeAreaField<Type>
83 getField<FieldType>(
io,
mesh)
104 const label total = objects.
size();
107 #undef doLocalWriteCode 108 #define doLocalWriteCode(Type) \ 110 count += writeAreaFields<Type> \ 116 if (count >= total) break; \ 125 #undef doLocalWriteCode 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)
#define doLocalWriteCode(Type)
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.
void clear() noexcept
Same as reset(nullptr)
Generic GeometricField class.
label writeAllAreaFields(ensightCase &ensCase, const ensightFaMesh &ensMesh, const IOobjectList &objects)
const faMesh & mesh() const noexcept
Reference to the underlying faMesh.
label size() const noexcept
The number of elements in table.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
T & ref()
Return reference to the managed object without nullptr checking.
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>.
Defines the attributes of an object for which implicit objectRegistry management is supported...
UPtrList< const IOobject > csorted() const
The sorted list of IOobjects with headerClassName == Type::typeName.