OF-POSTECH-1/solvers_post/LagrangianCMCdieselEngineFoam4x/UEqn.H
2017-08-03 22:15:03 +09:00

27 lines
455 B
C

// Solve the Momentum equation
MRF.correctBoundaryVelocity(U);
tmp<fvVectorMatrix> tUEqn
(
fvm::ddt(rho, U) + fvm::div(phi, U)
+ MRF.DDt(rho, U)
+ turbulence->divDevRhoReff(U)
==
rho()*g
+ parcels.SU(U)
+ fvOptions(rho, U)
);
fvVectorMatrix& UEqn = tUEqn.ref();
UEqn.relax();
fvOptions.constrain(UEqn);
//if (pimple.momentumPredictor())
//{
// solve(UEqn == -fvc::grad(p));
// fvOptions.correct(U);
// K = 0.5*magSqr(U);
//}