27 lines
494 B
C
27 lines
494 B
C
surfaceScalarField muEff
|
|
(
|
|
"muEff",
|
|
twoPhaseProperties.muf()
|
|
+ fvc::interpolate(rho*turbulence->nut())
|
|
);
|
|
|
|
fvVectorMatrix UEqn
|
|
(
|
|
fvm::ddt(rho, U)
|
|
+ fvm::div(rhoPhi, U)
|
|
- fvm::laplacian(muEff, U)
|
|
- (fvc::grad(U) & fvc::grad(muEff))
|
|
);
|
|
|
|
UEqn.relax();
|
|
|
|
if (pimple.momentumPredictor())
|
|
{
|
|
solve
|
|
(
|
|
UEqn
|
|
==
|
|
- gh*fvc::grad(rho)
|
|
- fvc::grad(pd)
|
|
);
|
|
}
|