FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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", dimensionSet(1, 0, -1, 0, 0), 0)
00011 );
00012 
00013 {
00014     label nAlphaCorr
00015     (
00016         readLabel(piso.lookup("nAlphaCorr"))
00017     );
00018 
00019     label nAlphaSubCycles
00020     (
00021         readLabel(piso.lookup("nAlphaSubCycles"))
00022     );
00023 
00024     surfaceScalarField phic = mag(phi/mesh.magSf());
00025     phic = min(interface.cAlpha()*phic, max(phic));
00026 
00027     volScalarField divU = fvc::div(phi);
00028 
00029     dimensionedScalar totalDeltaT = runTime.deltaT();
00030 
00031     if (nAlphaSubCycles > 1)
00032     {
00033         for
00034         (
00035             subCycle<volScalarField> alphaSubCycle(alpha1, nAlphaSubCycles);
00036             !(++alphaSubCycle).end();
00037         )
00038         {
00039             #include "alphaEqn.H"
00040         }
00041     }
00042     else
00043     {
00044         #include "alphaEqn.H"
00045     }
00046 
00047     if (nOuterCorr == 1)
00048     {
00049         interface.correct();
00050     }
00051 
00052     rho == alpha1*rho1 + (scalar(1) - alpha1)*rho2;
00053 }
00054 
00055 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines