ENH: Updates to the kinematic cloud API

This commit is contained in:
andy
2012-03-15 10:05:41 +00:00
parent e887b572e9
commit 4c6d6a5731
3 changed files with 12 additions and 1 deletions

View File

@ -456,6 +456,9 @@ public:
// Check
//- Total number of parcels
inline label nParcels() const;
//- Total mass in system
inline scalar massInSystem() const;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -227,6 +227,13 @@ Foam::KinematicCloud<CloudType>::UIntegrator() const
}
template<class CloudType>
inline Foam::label Foam::KinematicCloud<CloudType>::nParcels() const
{
return this->size();
}
template<class CloudType>
inline Foam::scalar Foam::KinematicCloud<CloudType>::massInSystem() const
{

View File

@ -36,6 +36,7 @@ SourceFiles
#define kinematicCloud_H
#include "typeInfo.H"
#include "volFieldsFwd.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //