db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
31 lines
677 B
C++
31 lines
677 B
C++
{
|
|
surfaceScalarField phiAlpha
|
|
(
|
|
IOobject
|
|
(
|
|
"phiAlpha",
|
|
runTime.timeName(),
|
|
mesh
|
|
),
|
|
phi + rhoc*(mesh.Sf() & fvc::interpolate(Vdj))
|
|
);
|
|
|
|
solve
|
|
(
|
|
fvm::ddt(rho, Alpha)
|
|
+ fvm::div(phiAlpha, Alpha)
|
|
- fvm::laplacian(mut, Alpha)
|
|
);
|
|
|
|
Info<< "Solid phase fraction = "
|
|
<< Alpha.weightedAverage(mesh.V()).value()
|
|
<< " Min(Alpha) = " << min(Alpha).value()
|
|
<< " Max(Alpha) = " << max(Alpha).value()
|
|
<< endl;
|
|
|
|
Alpha.min(1.0);
|
|
Alpha.max(0.0);
|
|
|
|
rho == rhoc/(scalar(1) + (rhoc/rhod - 1.0)*Alpha);
|
|
alpha == rho*Alpha/rhod;
|
|
}
|