mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updates to the kinematic cloud API
This commit is contained in:
@ -456,6 +456,9 @@ public:
|
||||
|
||||
// Check
|
||||
|
||||
//- Total number of parcels
|
||||
inline label nParcels() const;
|
||||
|
||||
//- Total mass in system
|
||||
inline scalar massInSystem() const;
|
||||
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -36,6 +36,7 @@ SourceFiles
|
||||
#define kinematicCloud_H
|
||||
|
||||
#include "typeInfo.H"
|
||||
#include "volFieldsFwd.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
|
||||
Reference in New Issue
Block a user