Commit 0f00ac2d authored by Andrew Heather's avatar Andrew Heather
Browse files

ENH: mesh Vsc() calc - not using sub-cycle volume for steady cases

parent 8b81dacf
...@@ -278,7 +278,7 @@ const Foam::volScalarField::Internal& Foam::fvMesh::V00() const ...@@ -278,7 +278,7 @@ const Foam::volScalarField::Internal& Foam::fvMesh::V00() const
Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc() const Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc() const
{ {
if (moving() && time().subCycling()) if (!steady() && moving() && time().subCycling())
{ {
const TimeState& ts = time(); const TimeState& ts = time();
const TimeState& ts0 = time().prevTimeState(); const TimeState& ts0 = time().prevTimeState();
...@@ -306,7 +306,7 @@ Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc() const ...@@ -306,7 +306,7 @@ Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc() const
Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc0() const Foam::tmp<Foam::volScalarField::Internal> Foam::fvMesh::Vsc0() const
{ {
if (moving() && time().subCycling()) if (!steady() && moving() && time().subCycling())
{ {
const TimeState& ts = time(); const TimeState& ts = time();
const TimeState& ts0 = time().prevTimeState(); const TimeState& ts0 = time().prevTimeState();
......
Markdown is supported
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