mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: mesh Vsc() calc - not using sub-cycle volume for steady cases
This commit is contained in:
@ -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
|
|||||||
|
|
||||||
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();
|
||||||
|
|||||||
Reference in New Issue
Block a user