This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/incompressible/simpleFoam/UEqn.H
Vuko Vukcevic ee8fe08c0d Bugfix in simpleFoam UEqn
Relaxing a copy of the momentum equation, not the original one.
2017-01-05 11:27:01 +01:00

10 lines
205 B
C

// Solve the momentum equation
tmp<fvVectorMatrix> UEqn
(
fvm::div(phi, U)
+ turbulence->divDevReff()
);
// Momentum solution
solve(relax(UEqn()) == -fvc::grad(p));