Skip to content
Snippets Groups Projects
Commit 4bd1bd75 authored by sergio's avatar sergio
Browse files

BUG: Using autoPtr for turbulence in interFoam and interIsoFoam

parent 3e431de2
Branches
Tags
No related merge requests found
......@@ -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)
);
......
......@@ -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"
......
......@@ -168,7 +168,7 @@ int main(int argc, char *argv[])
if (pimple.turbCorr())
{
turbulence.correct();
turbulence->correct();
}
}
......
......@@ -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"
......
......@@ -180,7 +180,7 @@ int main(int argc, char *argv[])
if (pimple.turbCorr())
{
turbulence.correct();
turbulence->correct();
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment