1 for (label i = 0; i < nTypes; i++)
3 wordList fieldNames = objects.names(fieldTypes[i]);
5 if (fieldTypes[i] == "volScalarField")
7 gmvFile << "variable" << nl;
9 for (label j=0; j < fieldNames.size(); j++)
12 word fieldName = fieldNames[j];
23 if (fieldTypes[i] == "volScalarField")
25 volScalarField gmvScalarField(fieldObject, mesh);
26 gmvFile << fieldName << " 0" << nl;
27 for(label indx=0;indx<mesh.nCells();indx++)
29 gmvFile << gmvScalarField[indx] << " ";
34 if (fieldTypes[i] == "volVectorField")
36 if (fieldName == vComp)
38 volVectorField gmvVectorField(fieldObject, mesh);
39 gmvFile << "velocity 0" << nl;
40 for (label indx=0;indx<mesh.nCells();indx++)
42 gmvFile << gmvVectorField[indx].x() << " ";
44 for (label indx=0;indx<mesh.nCells();indx++)
46 gmvFile << gmvVectorField[indx].y() << " ";
48 for (label indx=0;indx<mesh.nCells();indx++)
50 gmvFile << gmvVectorField[indx].z() << " ";
56 if (fieldTypes[i] == "surfaceScalarField")
63 if (fieldTypes[i] == cloud::prefix)
65 IOobject lagrangianHeader
74 if (lagrangianHeader.headerOk())
76 Cloud<passiveParticle> particles(mesh);
78 IOobjectList objects(mesh, runTime.timeName(), cloud::prefix);
80 wordList lagrangianScalarNames = objects.names("scalarField");
81 wordList lagrangianVectorNames = objects.names("vectorField");
85 # include "gmvOutputLagrangian.H"
90 if (fieldTypes[i] == "volScalarField")
92 gmvFile << "endvars" << nl;