Skip to content
Snippets Groups Projects
Commit 657d7d6d authored by andy's avatar andy
Browse files

ENH: Added virtual functions to base kinematicCloud API

parent b2314293
Branches
Tags
No related merge requests found
......@@ -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
......@@ -68,6 +68,50 @@ public:
kinematicCloud();
// Member functions
// Check
//- Number of parcels
virtual label nParcels() const = 0;
//- Total mass in system
virtual scalar massInSystem() const = 0;
//- Total linear momentum of the system
virtual vector linearMomentumOfSystem() const = 0;
//- Total linear kinetic energy in the system
virtual scalar linearKineticEnergyOfSystem() const = 0;
//- Total rotational kinetic energy in the system
virtual scalar rotationalKineticEnergyOfSystem() const = 0;
//- Penetration for percentage of the current total mass
// virtual scalar penetration(const scalar& prc) const = 0;
//- Mean diameter Dij
virtual scalar Dij(const label i, const label j) const = 0;
//- Max diameter
virtual scalar Dmax() const = 0;
// Fields
//- Return the particle volume fraction field
// Note: for particles belonging to this cloud only
virtual const tmp<volScalarField> theta() const = 0;
//- Return the particle mass fraction field
// Note: for particles belonging to this cloud only
virtual const tmp<volScalarField> alpha() const = 0;
//- Return the particle effective density field
// Note: for particles belonging to this cloud only
virtual const tmp<volScalarField> rhoEff() const = 0;
//- Destructor
virtual ~kinematicCloud();
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment