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

alphaEqn.H

Go to the documentation of this file.
00001 {
00002     surfaceScalarField phiAlpha
00003     (
00004         IOobject
00005         (
00006             "phiAlpha",
00007             runTime.timeName(),
00008             mesh
00009         ),
00010         phi + rhoc*(mesh.Sf() & fvc::interpolate(Vdj))
00011     );
00012 
00013     solve
00014     (
00015           fvm::ddt(rho, Alpha)
00016         + fvm::div(phiAlpha, Alpha)
00017         - fvm::laplacian(mut, Alpha)
00018     );
00019 
00020     Info<< "Solid phase fraction = "
00021         << Alpha.weightedAverage(mesh.V()).value()
00022         << "  Min(Alpha) = " << min(Alpha).value()
00023         << "  Max(Alpha) = " << max(Alpha).value()
00024         << endl;
00025 
00026     Alpha.min(1.0);
00027     Alpha.max(0.0);
00028 
00029     rho == rhoc/(scalar(1) + (rhoc/rhod - 1.0)*Alpha);
00030     alpha == rho*Alpha/rhod;
00031 }
00032 
00033 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines