ENH: autoLayerDriver: better layering information message
[OpenFOAM-2.0.x.git] / applications / solvers / multiphase / interPhaseChangeFoam / UEqn.H
blobb8fe82ff1423ed793c82bdcb0a5d43d226be0bc4
1     surfaceScalarField muEff
2     (
3         "muEff",
4         twoPhaseProperties->muf()
5       + fvc::interpolate(rho*turbulence->nut())
6     );
8     fvVectorMatrix UEqn
9     (
10         fvm::ddt(rho, U)
11       + fvm::div(rhoPhi, U)
12       - fvm::Sp(fvc::ddt(rho) + fvc::div(rhoPhi), U)
13       - fvm::laplacian(muEff, U)
14       - (fvc::grad(U) & fvc::grad(muEff))
15     //- fvc::div(muEff*(fvc::interpolate(dev2(fvc::grad(U))) & mesh.Sf()))
16     );
18     UEqn.relax();
20     if (pimple.momentumPredictor())
21     {
22         solve
23         (
24             UEqn
25          ==
26             fvc::reconstruct
27             (
28                 (
29                     fvc::interpolate(interface.sigmaK())*fvc::snGrad(alpha1)
30                   - ghf*fvc::snGrad(rho)
31                   - fvc::snGrad(p_rgh)
32                 ) * mesh.magSf()
33             )
34         );
35     }