mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Now the specification of the LTS time scheme is simply:
ddtSchemes
{
default localEuler;
}
29 lines
632 B
C
29 lines
632 B
C
bool LTS =
|
|
word(mesh.ddtScheme("default"))
|
|
== fv::localEulerDdtScheme<scalar>::typeName;
|
|
|
|
tmp<volScalarField> trDeltaT;
|
|
|
|
if (LTS)
|
|
{
|
|
Info<< "Using LTS" << endl;
|
|
|
|
trDeltaT = tmp<volScalarField>
|
|
(
|
|
new volScalarField
|
|
(
|
|
IOobject
|
|
(
|
|
fv::localEulerDdt::rDeltaTName,
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::READ_IF_PRESENT,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh,
|
|
dimensionedScalar("one", dimless/dimTime, 1),
|
|
zeroGradientFvPatchScalarField::typeName
|
|
)
|
|
);
|
|
}
|