BUG: Using autoPtr for turbulence in interFoam and interIsoFoam
This commit is contained in:
parent
3e431de285
commit
4bd1bd7522
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user