From cc6fe463cdfc7a2437e668011298d7b844e72df4 Mon Sep 17 00:00:00 2001 From: andy Date: Mon, 22 Jun 2009 18:19:55 +0100 Subject: [PATCH] updated since origProc and origId are now stored on the particle --- .../particleTracks/particleTracks.C | 111 +++++++----------- 1 file changed, 44 insertions(+), 67 deletions(-) diff --git a/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C b/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C index 0555309348..0c88172f7c 100644 --- a/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C +++ b/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C @@ -46,14 +46,17 @@ using namespace Foam; int main(int argc, char *argv[]) { -# include "setRootCase.H" + #include "setRootCase.H" -# include "createTime.H" + #include "createTime.H" instantList timeDirs = timeSelector::select0(runTime, args); -# include "createMesh.H" -# include "createFields.H" + #include "createMesh.H" + #include "createFields.H" -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + + fileName vtkPath(runTime.path()/"VTK"); + mkDir(vtkPath); Info<< "Scanning times to determine track data" << nl << endl; @@ -63,29 +66,28 @@ int main(int argc, char *argv[]) runTime.setTime(timeDirs[timeI], timeI); Info<< "Time = " << runTime.timeName() << endl; - IOobject origProcHeader + IOobject positionsHeader ( - "origProc", + "positions", runTime.timeName(), cloud::prefix/cloudName, mesh, - IOobject::MUST_READ + IOobject::MUST_READ, + IOobject::NO_WRITE, + false ); - IOobject idHeader - ( - "id", - runTime.timeName(), - cloud::prefix/cloudName, - mesh, - IOobject::MUST_READ - ); - if (idHeader.headerOk() && origProcHeader.headerOk()) + + if (positionsHeader.headerOk()) { - IOField