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

Understanding p and p_rgh

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By petros
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2020, 10:00
Default Understanding p and p_rgh
  #1
New Member
 
Victor
Join Date: Mar 2019
Posts: 5
Rep Power: 7
Victor3 is on a distinguished road
I’m having some trouble understanding p and p_rgh. I’ve set up a test case using buoyantPimpleFoam. I have an air inlet blowing cold air into a hot rom. There is also an outlet on the other side. When I look at the results p and p_rgh looks completely opposite to what I would expect. I thought p_rgh would show highest pressure close to the floor with air above. (Just like p is now)

Could anyone help me understand?

P_rgh:




p:




Files:
P:
Code:
  internalField   uniform 101325;
   
  boundaryField
  {
      rom
      {
          type            calculated;
          value           $internalField;
      }
   
      pipes
      {
          type            calculated;
          value           $internalField;
      }
   
      inlet
      {
          type            calculated;
          value           $internalField;
      }
   
      outlet
      {
          type            calculated;
          value           $internalField;
          
      }
  }
P_rgh:
Code:
  nternalField   uniform 101325;
   
  boundaryField
  {
      inlet
      {
          type            fixedFluxPressure;
          gradient        uniform 0;
          value           uniform 101325;
      }
   
      outlet
      {
          type            fixedValue;
          value           uniform 101325;
      }
   
      pipes
      {
          type            fixedFluxPressure;
          gradient        uniform 0;
          value           uniform 101325;
      }
   
      rom
      {
          type            fixedFluxPressure;
          gradient        uniform 0;
          value           uniform 101325;
      }
   
  }
Victor3 is offline   Reply With Quote

Old   October 1, 2020, 08:33
Default
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 64
Rep Power: 7
petros is on a distinguished road
Hi Victor,

You should have a look at Guide: How to ask questions in the forum and How to give enough info to get help, otherwise it is so difficult to find help.

Secondly, the issue of p_rgh and p has been extensively discussed in the forum (e.g. 1, 2). Use Search to navigate through old posts. The answer is out there.

Best,
Petros
Victor3 likes this.
petros is offline   Reply With Quote

Old   October 1, 2020, 10:51
Default
  #3
New Member
 
Victor
Join Date: Mar 2019
Posts: 5
Rep Power: 7
Victor3 is on a distinguished road
Maybe my question was a little thin but you answered perfectly with the two links. Just what I was looking for. Thanks
Victor3 is offline   Reply With Quote

Old   October 1, 2020, 13:06
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 663
Rep Power: 13
Tobermory will become famous soon enough
The following response from Henry gives a (tiny) little more information about his "enhanced buoyancy treatment" and p_rgh field, which is unique to OpenFOAM.

https://bugs.openfoam.org/view.php?id=1170

In a flow with constant density, then p_rgh should remove the vertical variation of pressure with height (like in your test case?) in the background flow. In a compressible gas, the same is approx true for small scales, but is clearly not true for atmospheric dispersion cases where some vertical variation in p_rgh will still occur ... just not as much.
Victor3 likes this.
Tobermory is offline   Reply With Quote

Reply

Tags
buoyantpimplefoam, openfoam, p_rgh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 20:41.