// Solve the momentum equation tmp HUEqn ( fvm::div(phi, U) + turbulence->divDevReff(U) ); // Get under-relaxation factor const scalar UUrf = mesh.solutionDict().relaxationFactor(U.name()); // Momentum solution eqnResidual = solve ( relax(HUEqn(), UUrf) == -fvc::grad(p) ).initialResidual(); maxResidual = max(eqnResidual, maxResidual);