CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   solve or .solve? (http://www.cfd-online.com/Forums/openfoam/84206-solve-solve.html)

ata January 23, 2011 09:36

solve or .solve?
 
Hi FOAMers
I changed this part of icoFoam code:

pEqn.solve();

to:

solve(pEqn);

and I got same results.
can any one tell me what is difference between pEqn.solve(); and solve(pEqn);
Thanks a lot

hjasak January 23, 2011 15:57

Nothing. Global function solve(...) calls the member function .solve(). You can choose whichever looks prettier to you.

Hrv

ata January 24, 2011 02:32

UEqn.solve();
 
Dear Prof. Jasak
Thank you very much for quick reply.
Would you please tell me why UEqn.solve(); does not work in icoFoam?
Best regards


All times are GMT -4. The time now is 15:16.