From 9b1788ac85f283d57bb555e40baab1fed477e102 Mon Sep 17 00:00:00 2001 From: graham Date: Thu, 4 Nov 2010 16:49:47 +0000 Subject: [PATCH] ENH: boundBox volume function. --- src/OpenFOAM/meshes/boundBox/boundBox.H | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/OpenFOAM/meshes/boundBox/boundBox.H b/src/OpenFOAM/meshes/boundBox/boundBox.H index dec6ae658d..2f510bc9e7 100644 --- a/src/OpenFOAM/meshes/boundBox/boundBox.H +++ b/src/OpenFOAM/meshes/boundBox/boundBox.H @@ -152,6 +152,12 @@ public: return ::Foam::mag(max_ - min_); } + //- The volume of the bound box + scalar volume() const + { + return cmptProduct(span()); + } + //- Smallest length/height/width dimension scalar minDim() const {