CFD Online Discussion Forums

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

ata January 23, 2011 08: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 14:57

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

Hrv

ata January 24, 2011 01: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 06:17.