Commit 3353aa68 authored by andy's avatar andy
Browse files

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

parent 85dd5159
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -124,4 +124,15 @@ Foam::scalar Foam::distributionModels::distributionModel::maxValue() const ...@@ -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;
}
// ************************************************************************* // // ************************************************************************* //
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -149,6 +149,9 @@ public: ...@@ -149,6 +149,9 @@ public:
//- Return the maximum value //- Return the maximum value
virtual scalar maxValue() const; virtual scalar maxValue() const;
//- Return the maximum value
virtual scalar meanValue() const;
}; };
......
Supports Markdown
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