ENH: Updated utilities using lagrangian classes

This commit is contained in:
andy
2011-02-24 16:47:54 +00:00
parent bf172bbf57
commit af115c5d01
20 changed files with 223 additions and 427 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -25,8 +25,7 @@ License
#include "reconstructLagrangian.H"
#include "labelIOList.H"
#include "Cloud.H"
#include "passiveParticle.H"
#include "passiveParticleCloud.H"
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
@ -39,7 +38,7 @@ void Foam::reconstructLagrangianPositions
const PtrList<labelIOList>& cellProcAddressing
)
{
Cloud<passiveParticle> lagrangianPositions
passiveParticleCloud lagrangianPositions
(
mesh,
cloudName,
@ -67,7 +66,7 @@ void Foam::reconstructLagrangianPositions
(
new passiveParticle
(
lagrangianPositions,
mesh,
ppi.position(),
cellMap[ppi.cell()],
false
@ -76,7 +75,7 @@ void Foam::reconstructLagrangianPositions
}
}
IOPosition<passiveParticle>(lagrangianPositions).write();
IOPosition<Cloud<passiveParticle> >(lagrangianPositions).write();
}