CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Two differebt implementation but different results (http://www.cfd-online.com/Forums/openfoam/84205-two-differebt-implementation-but-different-results.html)

ata January 23, 2011 09:32

Two differebt implementation but different results
 
Hi FOAMers
I change this part of icoFoam code:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
);

solve(UEqn == -fvc::grad(p));
to:
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)
+ fvc::grad(p)
);

solve(UEqn);
but in the second case I got divergence.
Can any one tell me what is the problem?
Best regards


All times are GMT -4. The time now is 17:56.