LTS, MULES and sub-cycling: Improved the handling of the rSubDeltaT field

This commit is contained in:
Henry Weller
2015-06-26 21:58:27 +01:00
parent 3025df4e48
commit d314ed3b4a
7 changed files with 39 additions and 56 deletions

View File

@ -96,7 +96,10 @@ void Foam::MULES::correct
if (LTS)
{
const volScalarField& rDeltaT =
mesh.objectRegistry::lookupObject<volScalarField>("rSubDeltaT");
mesh.objectRegistry::lookupObject<volScalarField>
(
mesh.time().subCycling() ? "rSubDeltaT" : "rDeltaT"
);
limitCorr
(

View File

@ -118,7 +118,10 @@ void Foam::MULES::explicitSolve
if (LTS)
{
const volScalarField& rDeltaT =
mesh.objectRegistry::lookupObject<volScalarField>("rSubDeltaT");
mesh.objectRegistry::lookupObject<volScalarField>
(
mesh.time().subCycling() ? "rSubDeltaT" : "rDeltaT"
);
limit
(