diff --git a/applications/solvers/multiphase/interFoam/UEqn.H b/applications/solvers/multiphase/interFoam/UEqn.H index 4d079b77cf1feab8feabd665c865ac12029af824..77d1dcd83e8c665fa8127bfadb8d59a94222bc61 100644 --- a/applications/solvers/multiphase/interFoam/UEqn.H +++ b/applications/solvers/multiphase/interFoam/UEqn.H @@ -4,7 +4,7 @@ ( fvm::ddt(rho, U) + fvm::div(rhoPhi, U) + MRF.DDt(rho, U) - + turbulence.divDevRhoReff(rho, U) + + turbulence->divDevRhoReff(rho, U) == fvOptions(rho, U) ); diff --git a/applications/solvers/multiphase/interFoam/createFields.H b/applications/solvers/multiphase/interFoam/createFields.H index fa3d3fb8f2a9cb1610d8484d542601b5d2bdec6a..e364fad463343a9ef08c95c1c74118b636e90a24 100644 --- a/applications/solvers/multiphase/interFoam/createFields.H +++ b/applications/solvers/multiphase/interFoam/createFields.H @@ -70,8 +70,18 @@ surfaceScalarField rhoPhi fvc::interpolate(rho)*phi ); -incompressibleInterPhaseTransportModel<immiscibleIncompressibleTwoPhaseMixture> - turbulence(rho, U, phi, rhoPhi, mixture); +typedef incompressibleInterPhaseTransportModel + < + immiscibleIncompressibleTwoPhaseMixture + > transportModelType; + +autoPtr<transportModelType> turbulence +( + new transportModelType + ( + rho, U, phi, rhoPhi, mixture + ) +); #include "readGravitationalAcceleration.H" #include "readhRef.H" diff --git a/applications/solvers/multiphase/interFoam/interFoam.C b/applications/solvers/multiphase/interFoam/interFoam.C index b43eb78a7e783ee0f850ea223f737861c9cb2047..e832a754acd674d3db24c353a28120b620ddc358 100644 --- a/applications/solvers/multiphase/interFoam/interFoam.C +++ b/applications/solvers/multiphase/interFoam/interFoam.C @@ -168,7 +168,7 @@ int main(int argc, char *argv[]) if (pimple.turbCorr()) { - turbulence.correct(); + turbulence->correct(); } } diff --git a/applications/solvers/multiphase/interIsoFoam/createFields.H b/applications/solvers/multiphase/interIsoFoam/createFields.H index e214f4e482c61363529a4454e67aa92dc286a7bb..f3cfac66a0dc84b94b071337614e484e4e79dbf0 100644 --- a/applications/solvers/multiphase/interIsoFoam/createFields.H +++ b/applications/solvers/multiphase/interIsoFoam/createFields.H @@ -71,8 +71,18 @@ surfaceScalarField rhoPhi ); -incompressibleInterPhaseTransportModel<immiscibleIncompressibleTwoPhaseMixture> - turbulence(rho, U, phi, rhoPhi, mixture); +typedef incompressibleInterPhaseTransportModel + < + immiscibleIncompressibleTwoPhaseMixture + > transportModelType; + +autoPtr<transportModelType> turbulence +( + new transportModelType + ( + rho, U, phi, rhoPhi, mixture + ) +); #include "readGravitationalAcceleration.H" diff --git a/applications/solvers/multiphase/interIsoFoam/interIsoFoam.C b/applications/solvers/multiphase/interIsoFoam/interIsoFoam.C index 6f492f865ce7fbe492d9530b29b7e2aa03271239..24f20fd6a428e54b4792478fa035a569b509db4e 100644 --- a/applications/solvers/multiphase/interIsoFoam/interIsoFoam.C +++ b/applications/solvers/multiphase/interIsoFoam/interIsoFoam.C @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) if (pimple.turbCorr()) { - turbulence.correct(); + turbulence->correct(); } }