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

solve or .solve?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 23, 2011, 09:36
Default solve or .solve?
  #1
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
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, 15:57
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,758
Rep Power: 21
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, 02:32
Default UEqn.solve();
  #3
ata
Senior Member
 
ata's Avatar
 
ata kamyabi
Join Date: Aug 2009
Location: Kerman
Posts: 322
Rep Power: 8
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
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 On
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 07: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 03: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 08:38.