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
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
List of IOobjects with searching and retrieving facilities.
wordList sortedNames() const
The sorted names of the IOobjects.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void size(const label n)
Older name for setAddressableSize.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
label size() const noexcept
The number of elements in the list.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
vector point
Point is a vector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Collection of simple static methods for reporting field names by category, which is used by foamToVTK...
static void point(Ostream &os, const IOobjectList &objects)
Supported point field types.
static void area(Ostream &os, const IOobjectList &objects)
Supported area field types.
static void internal(Ostream &os, const IOobjectList &objects)
Supported dimensioned field types.
static void volume(Ostream &os, const IOobjectList &objects)
Supported volume field types.
static void print(const char *msg, Ostream &os, const IOobjectList &objects)
static void print(const char *msg, Ostream &os, const UPtrList< const GeoField > &flds)
static void print(const char *msg, Ostream &os, const wordList &fieldNames)