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

obtaining p from p_rgh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 21, 2017, 13:59
Default obtaining p from p_rgh
  #1
New Member
 
toboto
Join Date: Jun 2016
Posts: 20
Rep Power: 10
toboto is on a distinguished road
Dear All,

In almost all multiphase solvers we solve for p_rgh (static or thermodynamic pressure - hydrostatic pressure) instead of p.

Then, we can obtain p by using:

Code:
p = p_rgh + rho*gh;
In most multiphase solvers the density is variable along the depth. So, instead of that, we should do something like:

p=p\_rgh+g\int_{0}^{h}\rho(z).dz

So, is that some kind of simplification in OpenFOAM, a bug or am I missing something?
toboto is offline   Reply With Quote

Old   June 21, 2017, 16:36
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
This is just the way, p_rgh is defined/used within OpenFOAM. It is not a physical quantity, just used internally.
Tobi and toboto like this.
jherb is offline   Reply With Quote

Old   June 29, 2017, 04:40
Default
  #3
New Member
 
toboto
Join Date: Jun 2016
Posts: 20
Rep Power: 10
toboto is on a distinguished road
Thanks Joachim for your help
toboto 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
Obtaining a clean post production contour plot Lapis1 ANSYS 2 June 22, 2017 06:46
Problem obtaining normal vectors on blade loading line francois louw CFX 10 April 26, 2016 05:47
Problems obtaining the correct contours for Lid driven cavity DSS Main CFD Forum 9 February 10, 2016 18:06
Obtaining results from simulation geod FLUENT 3 February 27, 2015 10:44
Failing to obtaining the shadow wall Bright ANSYS 0 September 26, 2013 04:50


All times are GMT -4. The time now is 04:47.