Commit 352c0f4c authored by henry's avatar henry
Browse files

Added turbulent viscosity.

parent 7e08abb9
surfaceScalarField muf = twoPhaseProperties.muf(); surfaceScalarField muEff
(
"muEff",
twoPhaseProperties.muf()
+ fvc::interpolate(rho*turbulence->nut())
);
fvVectorMatrix UEqn fvVectorMatrix UEqn
( (
fvm::ddt(rho, U) fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U) + fvm::div(rhoPhi, U)
- fvm::laplacian(muf, U) - fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muf)) - (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muf*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf())) //- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U))) & mesh.Sf()))
); );
UEqn.relax(); UEqn.relax();
if (momentumPredictor) if (momentumPredictor)
{ {
solve solve
(
UEqn
==
fvc::reconstruct
( (
UEqn
==
fvc::reconstruct
( (
( fvc::interpolate(interface.sigmaK())*fvc::snGrad(gamma)
fvc::interpolate(interface.sigmaK())*fvc::snGrad(gamma) - ghf*fvc::snGrad(rho)
- ghf*fvc::snGrad(rho) - fvc::snGrad(pd)
- fvc::snGrad(pd) )*mesh.magSf()
) * mesh.magSf() )
) );
); }
}
Supports Markdown
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