1 for (label i=0; i < nTypes; 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")
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)
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);
90 if (fieldTypes[i] ==
"volScalarField")
92 gmvFile <<
"endvars" <<
nl;