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>
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
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
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...
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 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...
OBJstream os(runTime.globalPath()/outputName)
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< word > wordList
List of word.
static void print(const char *msg, Ostream &os, const UPtrList< const GeoField > &flds)