From dda47d87ff9b1096dd671128f5c653ea4d233650 Mon Sep 17 00:00:00 2001 From: Henry Date: Fri, 2 Jan 2015 16:43:32 +0000 Subject: [PATCH] fvcSurfaceIntegrate: add support for sub-cycling with mesh-motion Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1471 Note: In order to avoid unexpectedly poor results I think it would be better if sub-cycling in time were limited to static meshes and solid-body motion only and the Vsc() function removed and I will consider this for the next release with the addition of a check for solid-body motion in the case that sub-cycling is applied. Now that MULES support semi-implicit operation there is less need for sub-cycling and I would recommend that you use this approach in interDyMFoam for your complex mesh motion cases. --- src/finiteVolume/finiteVolume/fvc/fvcSurfaceIntegrate.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/finiteVolume/finiteVolume/fvc/fvcSurfaceIntegrate.C b/src/finiteVolume/finiteVolume/fvc/fvcSurfaceIntegrate.C index faaf05c28b..425074d1b2 100644 --- a/src/finiteVolume/finiteVolume/fvc/fvcSurfaceIntegrate.C +++ b/src/finiteVolume/finiteVolume/fvc/fvcSurfaceIntegrate.C @@ -72,7 +72,7 @@ void surfaceIntegrate } } - ivf /= mesh.V(); + ivf /= mesh.Vsc(); }