|
[Sponsors] |
January 23, 2011, 08:36 |
solve or .solve?
|
#1 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
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 |
|
January 23, 2011, 14:57 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33 |
Nothing. Global function solve(...) calls the member function .solve(). You can choose whichever looks prettier to you.
Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
January 24, 2011, 01:32 |
UEqn.solve();
|
#3 |
Senior Member
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17 |
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Linearized NS euqations: how to solve them?(problem with Matrix operations..) | matteoL | OpenFOAM Running, Solving & CFD | 0 | November 18, 2009 06:58 |
Solve for two or more "Temperatures" | Rui | CFX | 12 | September 9, 2008 21:58 |
MAC method solve for pressure at boundry | Ron | Main CFD Forum | 2 | January 28, 2006 02:14 |
How to solve another continuum and momentum eqn? | west_wing | FLUENT | 0 | August 25, 2003 10:00 |
Good library to solve huge linear system | Ricardo Bonon | Main CFD Forum | 3 | May 19, 2000 06:24 |