Permalink
Browse files

interPhaseChangeFoam: Improve consistency with interFoam

  • Loading branch information...
Henry Henry
Henry authored and Henry committed Apr 28, 2013
1 parent 937bbbf commit c1330db6b6e8df5c44f9f2655bb72b4ed65f9fe7
Showing with 9 additions and 5 deletions.
  1. +9 −5 applications/solvers/multiphase/interPhaseChangeFoam/interPhaseChangeFoam.C
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
- \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
+ \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@@ -80,9 +80,10 @@ int main(int argc, char *argv[])
Info<< "Time = " << runTime.timeName() << nl << endl;
- #include "alphaEqnSubCycle.H"
+ twoPhaseProperties->correct();
- turbulence->correct();
+ #include "alphaEqnSubCycle.H"
+ interface.correct();
// --- Pressure-velocity PIMPLE corrector loop
while (pimple.loop())
@@ -94,9 +95,12 @@ int main(int argc, char *argv[])
{
#include "pEqn.H"
}
- }
- twoPhaseProperties->correct();
+ if (pimple.turbCorr())
+ {
+ turbulence->correct();
+ }
+ }
runTime.write();

0 comments on commit c1330db

Please sign in to comment.