From 0f00ac2d8caee974e408e2bd9f946562e8b62db2 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Wed, 17 Apr 2019 09:14:58 +0100 Subject: [PATCH] ENH: mesh Vsc() calc - not using sub-cycle volume for steady cases --- src/finiteVolume/fvMesh/fvMeshGeometry.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fvMesh/fvMeshGeometry.C b/src/finiteVolume/fvMesh/fvMeshGeometry.C index 78bd98fd6d..1bdb53f2bb 100644 --- a/src/finiteVolume/fvMesh/fvMeshGeometry.C +++ b/src/finiteVolume/fvMesh/fvMeshGeometry.C @@ -278,7 +278,7 @@ const Foam::volScalarField::Internal& Foam::fvMesh::V00() const Foam::tmp Foam::fvMesh::Vsc() const { - if (moving() && time().subCycling()) + if (!steady() && moving() && time().subCycling()) { const TimeState& ts = time(); const TimeState& ts0 = time().prevTimeState(); @@ -306,7 +306,7 @@ Foam::tmp Foam::fvMesh::Vsc() const Foam::tmp Foam::fvMesh::Vsc0() const { - if (moving() && time().subCycling()) + if (!steady() && moving() && time().subCycling()) { const TimeState& ts = time(); const TimeState& ts0 = time().prevTimeState();