mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Adding fvOption constrain to scalarTransportFoam.
Changing to adjustableTimeStep the tutorial reactingTwoPhaseEulerFoam/laminar/bubbleColumnIATE
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -82,7 +82,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
while (simple.correctNonOrthogonal())
|
while (simple.correctNonOrthogonal())
|
||||||
{
|
{
|
||||||
solve
|
fvScalarMatrix TEqn
|
||||||
(
|
(
|
||||||
fvm::ddt(T)
|
fvm::ddt(T)
|
||||||
+ fvm::div(phi, T)
|
+ fvm::div(phi, T)
|
||||||
@ -90,6 +90,11 @@ int main(int argc, char *argv[])
|
|||||||
==
|
==
|
||||||
fvOptions(T)
|
fvOptions(T)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
fvOptions.constrain(TEqn);
|
||||||
|
|
||||||
|
TEqn.solve();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
runTime.write();
|
runTime.write();
|
||||||
|
|||||||
@ -17,7 +17,7 @@ FoamFile
|
|||||||
|
|
||||||
application reactingTwoPhaseEulerFoam;
|
application reactingTwoPhaseEulerFoam;
|
||||||
|
|
||||||
startFrom startTime;
|
startFrom latestTime;//startTime;
|
||||||
|
|
||||||
startTime 0;
|
startTime 0;
|
||||||
|
|
||||||
@ -27,7 +27,7 @@ endTime 100;
|
|||||||
|
|
||||||
deltaT 0.005;
|
deltaT 0.005;
|
||||||
|
|
||||||
writeControl runTime;
|
writeControl adjustableRunTime;
|
||||||
|
|
||||||
writeInterval 1;
|
writeInterval 1;
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ timePrecision 6;
|
|||||||
|
|
||||||
runTimeModifiable yes;
|
runTimeModifiable yes;
|
||||||
|
|
||||||
adjustTimeStep no;
|
adjustTimeStep yes;
|
||||||
|
|
||||||
maxCo 0.5;
|
maxCo 0.5;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user