alphaEqnSubCycle.H
Go to the documentation of this file.
00001 surfaceScalarField rhoPhi
00002 (
00003     IOobject
00004     (
00005         "rhoPhi",
00006         runTime.timeName(),
00007         mesh
00008     ),
00009     mesh,
00010     dimensionedScalar("0", dimMass/dimTime, 0)
00011 );
00012 
00013 {
00014     const dictionary& pimpleDict = pimple.dict();
00015 
00016     label nAlphaCorr(readLabel(pimpleDict.lookup("nAlphaCorr")));
00017 
00018     label nAlphaSubCycles(readLabel(pimpleDict.lookup("nAlphaSubCycles")));
00019 
00020     surfaceScalarField phic(mag(phi/mesh.magSf()));
00021     phic = min(interface.cAlpha()*phic, max(phic));
00022 
00023     volScalarField divU(fvc::div(phi));
00024 
00025     dimensionedScalar totalDeltaT = runTime.deltaT();
00026 
00027     if (nAlphaSubCycles > 1)
00028     {
00029         for
00030         (
00031             subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
00032             !(++alphaSubCycle).end();
00033         )
00034         {
00035             #include "alphaEqn.H"
00036         }
00037     }
00038     else
00039     {
00040         #include "alphaEqn.H"
00041     }
00042 
00043     rho == alpha1*rho1 + (scalar(1) - alpha1)*rho2;
00044 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines