CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   SIMPLE algorithm details (http://www.cfd-online.com/Forums/openfoam-solving/59626-simple-algorithm-details.html)

lam June 20, 2007 09:14

Hi all, In simpleFoam.C, fo
 
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

fabianpk June 21, 2007 04:50

Short answer for where you sho
 
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.

alberto June 21, 2007 05:07

I wrote these some time ago to
 
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

lam June 21, 2007 10:14

Hi guys, I just follow your
 
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


All times are GMT -4. The time now is 23:26.