ENH: Adding fvOption constrain to scalarTransportFoam.

Changing to adjustableTimeStep the tutorial reactingTwoPhaseEulerFoam/laminar/bubbleColumnIATE
This commit is contained in:
sergio
2016-01-04 14:12:49 -08:00
parent e04158fda1
commit 044440b1d3
2 changed files with 10 additions and 5 deletions

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
while (simple.correctNonOrthogonal())
{
solve
fvScalarMatrix TEqn
(
fvm::ddt(T)
+ fvm::div(phi, T)
@ -90,6 +90,11 @@ int main(int argc, char *argv[])
==
fvOptions(T)
);
fvOptions.constrain(TEqn);
TEqn.solve();
}
runTime.write();