35 #ifndef foamToVtkReportFields_H 36 #define foamToVtkReportFields_H 57 template<
class GeoField>
68 for (
const GeoField&
fld : flds)
70 os <<
' ' <<
fld.name();
83 if (fieldNames.size())
86 for (
const word& fieldName : fieldNames)
88 os <<
' ' << fieldName;
95 template<
class FieldType>
100 const IOobjectList& objects
103 print(msg, os, objects.sortedNames<FieldType>());
110 print<volScalarField>
112 " volScalar :", os, objects
114 print<volVectorField>
116 " volVector :", os, objects
118 print<volSphericalTensorField>
120 " volSphTensor :", os, objects
122 print<volSymmTensorField>
124 " volSymTensor :", os, objects
126 print<volTensorField>
128 " volTensor :", os, objects
135 print<volScalarField::Internal>
137 " volScalar:Internal :", os, objects
139 print<volVectorField::Internal>
141 " volVector:Internal :", os, objects
143 print<volSphericalTensorField::Internal>
145 " volSphTensor:Internal :", os, objects
147 print<volSymmTensorField::Internal>
149 " volSymTensor:Internal :", os, objects
151 print<volTensorField::Internal>
153 " volTensor:Internal :", os, objects
166 print<areaScalarField>
168 " areaScalar :", os, objects
170 print<areaVectorField>
172 " areaVector :", os, objects
174 print<areaSphericalTensorField>
176 " areaSphTensor :", os, objects
178 print<areaSymmTensorField>
180 " areaSymTensor :", os, objects
182 print<areaTensorField>
184 " areaTensor :", os, objects
192 print<edgeScalarField>
194 " edgeScalar :", os, 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.
static void volume(Ostream &os, const IOobjectList &objects)
Supported volume field types.
Collection of simple static methods for reporting field names by category, which is used by foamToVTK...
UList< word > wordUList
UList of word.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void point(Ostream &os, const IOobjectList &objects)
Supported point field types.
static void area(Ostream &os, const IOobjectList &objects)
Supported finite-area area field types.
label size() const noexcept
The number of entries in the list.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
static void print(const char *msg, Ostream &os, const UPtrList< const GeoField > &flds)
static void edge(Ostream &os, const IOobjectList &objects)
Supported finite-area edge field types.