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

Nonconservative gammaEqn

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 22, 2009, 12:50
Default pressure decomposition
  #21
Member
 
Elisabet Mas de les Valls
Join Date: Mar 2009
Location: Barcelona, Spain
Posts: 64
Rep Power: 17
elisabet is on a distinguished road
Hi Kyian,

As always, you should go to the sources. In this case:
OpenFOAM-1.5.x/applications/solvers/heatTransfer/buoyantSimpleFoam/UEqn.H

there, you would see that both the pressure gradient term and the body force term, which in its most general form are:
-grad(p) + rho*g
become
-fvc::grad(pd) - fvc::grad(rho)*gh
this transformation is straight forward if you consider p=pd+rho*g*h+pref

In this case, rho is obtained from the "basicThermo" object (see createFields.H), and hence, depends on the equation of state defined there. You should go to basicThermo sources to know more about it.

Good luck,

elisabet
elisabet 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
About the gammaEqn in interFoam sandy OpenFOAM Running, Solving & CFD 14 March 19, 2014 10:30
GammaEqn and UEqn in interFoam adekian OpenFOAM Running, Solving & CFD 1 April 11, 2007 03:03
about the nonconservative equation and FVM maximus Main CFD Forum 3 March 4, 2006 16:45


All times are GMT -4. The time now is 19:25.