multiphase: Improve the construction of rhoPhiSum

This commit is contained in:
Henry 2013-09-12 17:48:14 +01:00
parent 5521dfece0
commit 0cb195fa8d

View File

@ -313,7 +313,18 @@ void Foam::multiphaseMixture::solve()
if (nAlphaSubCycles > 1)
{
surfaceScalarField rhoPhiSum(0.0*rhoPhi_);
surfaceScalarField rhoPhiSum
(
IOobject
(
"rhoPhiSum",
runTime.timeName(),
mesh_
),
mesh_,
dimensionedScalar("0", dimDensity, 0)
);
dimensionedScalar totalDeltaT = runTime.deltaT();
for