mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: distributionModel - added utility function to calc return mean value
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user