LTS: Simplify the selection of LTS operation

This commit is contained in:
Henry Weller
2015-06-29 11:53:20 +01:00
parent 34c3b2f656
commit fd9d07413a
8 changed files with 19 additions and 20 deletions

View File

@ -73,7 +73,6 @@ License
}
// Reaction source time scale
if (alphaTemp < 1.0)
{
volScalarField::DimensionedInternalField rDeltaTT
(

View File

@ -175,9 +175,7 @@ void Foam::twoPhaseSystem::solve()
label nAlphaSubCycles(readLabel(alphaControls.lookup("nAlphaSubCycles")));
label nAlphaCorr(readLabel(alphaControls.lookup("nAlphaCorr")));
bool LTS =
word(mesh.ddtScheme("default"))
== fv::localEulerDdtScheme<scalar>::typeName;
bool LTS = fv::localEulerDdt::enabled(mesh);
word alphaScheme("div(phi," + alpha1.name() + ')');
word alpharScheme("div(phir," + alpha1.name() + ')');