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

Pressure equation & icoFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 19, 2013, 15:56
Default Pressure equation & icoFoam
  #1
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
Hi Foamers,

I have a question about pressure equation in icoFoam . we know pressure equation in icoFoam is as below : (according to Prof.jasak's thesis)
\triangledown .(\frac{1}{a_{p}}\triangledown p)=\triangledown .\frac{H(u)}{a_{p}}

In the source code we have :

Code:
 fvm::laplacian(rUA, p) == fvc::div(phi)
I don't understand how div(phi) ensures below term in the pressure equation !
\triangledown .\frac{H(u)}{a_{p}}
what is the relation between this term and divergence of flux (phi) ?

I appreciate any help from you,
Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   June 20, 2013, 03:47
Default
  #2
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
Hi Sasam,

it is just a programing trick that has disappear in the latest OF version.

see http://www.cfd-online.com/Forums/ope...ning-hbya.html for additional informations.

Best,
Cyp
Cyp is offline   Reply With Quote

Old   June 20, 2013, 04:00
Default
  #3
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
Hi Cyprien ,

Thanks for your reply But I didn't find my answer in meaning of HbyA .
I think the pressure term should drop for getting this relation.
Can you explain more ? about this trick ?

Thanks and best regards,
Sasan.
sasanghomi is offline   Reply With Quote

Old   June 20, 2013, 04:06
Default
  #4
Cyp
Senior Member
 
Cyprien
Join Date: Feb 2010
Location: Stanford University
Posts: 299
Rep Power: 18
Cyp is on a distinguished road
what I mean is that

\nabla .\frac{H(u)}{a_{p}}= \nabla . \phi

but in reality, in this equation \phidoes not represent the velocity field. \phi is overwritten just after the calculation of p to obtain the corrected velocity flux field.
Cyp is offline   Reply With Quote

Old   June 20, 2013, 04:21
Default
  #5
Senior Member
 
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 14
sasanghomi is on a distinguished road
I got it , thank you very much.
sasanghomi is offline   Reply With Quote

Old   July 16, 2013, 04:17
Default
  #6
Senior Member
 
Dongyue Li
Join Date: Jun 2012
Location: Beijing, China
Posts: 838
Rep Power: 17
sharonyue is on a distinguished road
Quote:
Originally Posted by Cyp View Post
what I mean is that

\nabla .\frac{H(u)}{a_{p}}= \nabla . \phi

but in reality, in this equation \phidoes not represent the velocity field. \phi is overwritten just after the calculation of p to obtain the corrected velocity flux field.
Hi Cyp,

\nabla .\frac{H(u)}{a_{p}}= \nabla . \phi
Im confused about this, I think divergence of a scalar equals zero. Can you explain more?
Thanks
sharonyue 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
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 17:16
lid-driven cavity in matlab using BiCGStab Don456 Main CFD Forum 1 January 19, 2012 15:00
Boundary condition in pressure equation Paolo Lampitella FLUENT 0 February 21, 2008 06:30
Does star cd takes reference pressure? monica Siemens 1 April 19, 2007 11:26
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 10:09.