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

SIMPLE algorithm details

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 20, 2007, 09:14
Default Hi all, In simpleFoam.C, fo
  #1
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 17
lam is on a distinguished road
Hi all,

In simpleFoam.C, for example,
I do not understand :

1/ What "adjustPhi(phi,U,p)" does?
Can somebody summarize me quickly what it's done?

2/ According to the simple algo, I understand that the momentum equation is solved first, by guessing p. But when the boundary conditions for U are involved ?
And
i/ What does "p.boundaryField().updateCoeffs();"mean?
ii/ Or "U.correctBoundaryConditions();"?

Can somebody tell me where I have to look harder?

Thanks in advance,

Lam
lam is offline   Reply With Quote

Old   June 21, 2007, 04:50
Default Short answer for where you sho
  #2
Member
 
Fabian Peng Karrholm
Join Date: Mar 2009
Posts: 61
Rep Power: 17
fabianpk is on a distinguished road
Short answer for where you should look harder is the source code. However, a more pleasant read (no offense) would probably be:

http://openfoamwiki.net/index.php/IcoFoam

even though it's transient, adjustPhi etc are the same.
fabianpk is offline   Reply With Quote

Old   June 21, 2007, 05:07
Default I wrote these some time ago to
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
I wrote these some time ago too:

http://openfoamwiki.net/index.php/Th...hm_in_OpenFOAM

http://openfoamwiki.net/index.php/Th...hm_in_OpenFOAM

Regards,
Alberto
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   June 21, 2007, 10:14
Default Hi guys, I just follow your
  #4
lam
Member
 
Hoang-Lam
Join Date: Mar 2009
Location: Lausanne, Switzerland
Posts: 60
Rep Power: 17
lam is on a distinguished road
Hi guys,

I just follow your advice.
Moreover, I had taken a look harder in the source code of "adjustPhi"

I understand that
adjustPhi(phi,U,p) keeps the continuity of the system, doesn't it?
I mean for each face, the inlet flux = the outlet flux.
So, in a discretized form: Sum[U_f * S_f] = 0.

This what I understood for "adjustPhi".
Hope that you will tell me if I'm wrong.

But I still seek where the boundayconditions are involved.

Cheers,

Lam
lam is offline   Reply With Quote

Reply


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
SIMPLE algorithm su Main CFD Forum 3 August 14, 2008 16:58
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai Main CFD Forum 0 April 18, 2007 03:48
About Phase Coupled SIMPLE (PC-SIMPLE) algorithm Yan Kai FLUENT 0 April 13, 2007 23:17
SIMPLE Algorithm shreya Main CFD Forum 3 February 22, 2004 05:54
SIMPLE Algorithm littlelz Main CFD Forum 2 April 11, 2003 20:25


All times are GMT -4. The time now is 07:48.