Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

interDyMFoam: Corrected handling of relative and absolute fluxes in c…

…orrectPhi
  • Loading branch information...
commit 638e9c8e27fc8c28044bad08f55f2dd42441137e 1 parent 34eb8a7
authored
4  applications/solvers/multiphase/interFoam/interDyMFoam/correctPhi.H
@@ -36,7 +36,7 @@
36 36
 
37 37
     fvc::makeAbsolute(phi, U);
38 38
 
39  
-    while (pimple.correctNonOrthogonal())
  39
+    for (int nonOrth=0; nonOrth<=pimple.nNonOrthCorr(); nonOrth++)
40 40
     {
41 41
         fvScalarMatrix pcorrEqn
42 42
         (
@@ -46,7 +46,7 @@
46 46
         pcorrEqn.setReference(pRefCell, pRefValue);
47 47
         pcorrEqn.solve();
48 48
 
49  
-        if (pimple.finalNonOrthogonalIter())
  49
+        if (nonOrth == pimple.nNonOrthCorr())
50 50
         {
51 51
             phi -= pcorrEqn.flux();
52 52
             phiAbs = phi;
6  applications/solvers/multiphase/interFoam/interDyMFoam/interDyMFoam.C
@@ -54,13 +54,13 @@ int main(int argc, char *argv[])
54 54
 
55 55
     pimpleControl pimple(mesh);
56 56
 
  57
+    surfaceScalarField phiAbs("phiAbs", phi);
  58
+    fvc::makeAbsolute(phiAbs, U);
  59
+
57 60
     #include "correctPhi.H"
58 61
     #include "CourantNo.H"
59 62
     #include "setInitialDeltaT.H"
60 63
 
61  
-    surfaceScalarField phiAbs("phiAbs", phi);
62  
-    fvc::makeAbsolute(phiAbs, U);
63  
-
64 64
     // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
65 65
     Info<< "\nStarting time loop\n" << endl;
66 66
 

0 notes on commit 638e9c8

Please sign in to comment.
Something went wrong with that request. Please try again.