Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 #include <finiteVolume/fvCFD.H>
00055 #include <OpenFOAM/OFstream.H>
00056 #include <OpenFOAM/instantList.H>
00057 #include <OpenFOAM/IOobjectList.H>
00058 #include "itoa.H"
00059 #include <lagrangian/Cloud.H>
00060 #include <lagrangian/passiveParticle.H>
00061
00062
00063
00064
00065
00066 int main(int argc, char *argv[])
00067 {
00068 const label nTypes = 4;
00069 const word fieldTypes[] =
00070 {
00071 "volScalarField",
00072 "volVectorField",
00073 "surfaceScalarField",
00074 cloud::prefix
00075 };
00076
00077 # include <OpenFOAM/setRootCase.H>
00078
00079 # include <OpenFOAM/createTime.H>
00080 # include <OpenFOAM/createMesh.H>
00081
00082 # include "readConversionProperties.H"
00083
00084
00085 instantList TimeList = runTime.times();
00086 Info << TimeList << endl;
00087 label nTimes = TimeList.size();
00088
00089 for(label n=1; n < nTimes; n++)
00090 {
00091 if (TimeList[n].value() > startTime)
00092 {
00093 Info << "Time = " << TimeList[n].value() << nl;
00094
00095
00096 runTime.setTime(TimeList[n], n);
00097 word CurTime = runTime.timeName();
00098
00099 IOobjectList objects(mesh, runTime.timeName());
00100
00101 # include "moveMesh.H"
00102
00103
00104 fileName gmvFileName = "plotGMV." + itoa(n);
00105 OFstream gmvFile(args.rootPath()/args.caseName()/gmvFileName);
00106
00107 # include "gmvOutputHeader.H"
00108 # include "gmvOutput.H"
00109 # include "gmvOutputTail.H"
00110 }
00111 }
00112
00113 Info<< "\nEnd\n" << endl;
00114
00115 return 0;
00116 }
00117
00118
00119