ENH: distributionModel - added utility function to calc return mean value

This commit is contained in:
andy
2013-07-12 13:10:23 +01:00
parent 85dd515956
commit 3353aa68d5
2 changed files with 16 additions and 2 deletions

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-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -124,4 +124,15 @@ Foam::scalar Foam::distributionModels::distributionModel::maxValue() const
}
Foam::scalar Foam::distributionModels::distributionModel::meanValue() const
{
notImplemented
(
"Foam::scalar "
"Foam::distributionModels::distributionModel::meanValue() const"
);
return 0.0;
}
// ************************************************************************* //

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-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -149,6 +149,9 @@ public:
//- Return the maximum value
virtual scalar maxValue() const;
//- Return the maximum value
virtual scalar meanValue() const;
};