CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

solve or .solve?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 23, 2011, 08:36
Default solve or .solve?
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
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
ata is offline   Reply With Quote

Old   January 23, 2011, 14:57
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   January 24, 2011, 01:32
Default UEqn.solve();
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 323
Rep Power: 17
ata is on a distinguished road
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
ata is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:01.