Go to the documentation of this file.
35 #ifndef foamToVtkReportFields_H
36 #define foamToVtkReportFields_H
56 template<
class GeoField>
67 for (
const GeoField&
fld : flds)
69 os <<
' ' <<
fld.name();
83 if (fieldNames.size())
86 for (
const word& fieldName : fieldNames)
88 os <<
' ' << fieldName;
95 template<
class 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
136 print<volScalarField::Internal>
138 " volScalar:Internal :", os, objects
140 print<volVectorField::Internal>
142 " volVector:Internal :", os, objects
144 print<volSphericalTensorField::Internal>
146 " volSphTensor:Internal :", os, objects
148 print<volSymmTensorField::Internal>
150 " volSymTensor:Internal :", os, objects
152 print<volTensorField::Internal>
154 " volTensor:Internal :", os, objects
168 print<areaScalarField>
170 " areaScalar :", os, objects
172 print<areaVectorField>
174 " areaVector :", os, objects
176 print<areaSphericalTensorField>
178 " areaSphTensor :", os, objects
180 print<areaSymmTensorField>
182 " areaSymTensor :", os, objects
184 print<areaTensorField>
186 " areaTensor :", os, objects
static void point(Ostream &os, const IOobjectList &objects)
Supported point field types.
label size() const noexcept
The number of elements in the list.
A class for handling words, derived from Foam::string.
wordList sortedNames() const
The sorted names of the IOobjects.
static void volume(Ostream &os, const IOobjectList &objects)
Supported volume field types.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static void print(const char *msg, Ostream &os, const UPtrList< const GeoField > &flds)
static void area(Ostream &os, const IOobjectList &objects)
Supported area field types.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
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))
List of IOobjects with searching and retrieving facilities.
Collection of simple static methods for reporting field names by category, which is used by foamToVTK...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...