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

pressure in interFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ssss
  • 1 Post By idefix

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2015, 14:23
Default pressure in interFoam
  #1
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Hello together,

I am confused at the moment.
iinterFoam writes a p and a p_rgh - file in the time-folder.
What is p?
Total pressure or static pressure?
How can I calculate the total pressure?

Thanks for your help

Last edited by idefix; August 8, 2015 at 15:55.
idefix is offline   Reply With Quote

Old   August 8, 2015, 18:14
Default
  #2
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 12
ssss is on a distinguished road
p is the static pressure.

In interfoam:

p_{rgh}= p-\rho\vec{g} \cdot \vec{h}

In non-multiphase incompressible solvers:

p_{rgh}= \frac{p}{\rho}-\vec{g} \cdot \vec{h}
miotto likes this.

Last edited by ssss; August 9, 2015 at 04:45.
ssss is offline   Reply With Quote

Old   August 9, 2015, 01:13
Default
  #3
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Thanks for your explanation.

But are you sure that p is divided by the density?
The dimension given in the p-file are:
dimensions [1 -1 -2 0 0 0 0]
idefix is offline   Reply With Quote

Old   August 9, 2015, 01:32
Default
  #4
Senior Member
 
anonymous
Join Date: Aug 2014
Posts: 205
Rep Power: 12
ssss is on a distinguished road
Yes you are right, I was thinking about simpleFoam and other solvers I will edit my post
ssss is offline   Reply With Quote

Old   August 9, 2015, 01:52
Default
  #5
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
I have quick question about simpleFoam. I have made a mesh that fits an inviscid case, but the issue how can I use simpleFoam as an inviscid solver. Have you guys used simpleFoam before?

Thanks in advance,

Tareq
tareqkh is offline   Reply With Quote

Old   August 9, 2015, 03:23
Default
  #6
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Quote:
Originally Posted by ssss View Post
p is the static pressure.
p_rgh is p-vec(g) dot (h)
As far as I understood it should be
p_rgh = p-vec(g) dot (h) dot (rho)

Am I right, that I can calculate the total pressure in the following way:

p_tot = p + 0.5 * (mag(U))^2 rho ?
idefix is offline   Reply With Quote

Old   August 9, 2015, 03:25
Default
  #7
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
Quote:
Originally Posted by tareqkh View Post
I have quick question about simpleFoam. I have made a mesh that fits an inviscid case, but the issue how can I use simpleFoam as an inviscid solver. Have you guys used simpleFoam before?

Thanks in advance,

Tareq
It would be a kind of "cheating" but setting the viscosity in the transportProperties-file to a very small value?
tareqkh likes this.
idefix is offline   Reply With Quote

Old   August 9, 2015, 03:31
Default
  #8
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Hello,

Thank you for you kind response. I have tried to set up the viscosity almost to zero, but I am not getting a good convergence history. Any idea...? Sorry to bring this question to your question that you are already asked.

Best,

Tareq
tareqkh is offline   Reply With Quote

Old   August 9, 2015, 04:25
Default
  #9
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
do you have a good convergence when you use viscosity (much greater than zero)?
idefix is offline   Reply With Quote

Old   August 9, 2015, 04:27
Default
  #10
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Good question. No, I have not obtained a good convergence history in both cases.

Best,

Tareq
tareqkh is offline   Reply With Quote

Old   August 9, 2015, 04:29
Default
  #11
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
maybe check your boundary condition first and then turn off the viscosity
idefix is offline   Reply With Quote

Old   August 9, 2015, 05:22
Default
  #12
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
I am using boundary conditions that I used in one of my old cases since I obtained excellent results. So, I don't think that the problem of is from boundary conditions.

Best,

Tareq
tareqkh is offline   Reply With Quote

Old   August 9, 2015, 07:30
Default
  #13
Member
 
Join Date: Aug 2011
Posts: 89
Rep Power: 14
idefix is on a distinguished road
and where is the difference between the old and new case (if not the boundary conditions)?
idefix is offline   Reply With Quote

Old   August 9, 2015, 22:37
Default
  #14
Senior Member
 
tareqkh's Avatar
 
CFD
Join Date: Nov 2010
Location: United States
Posts: 243
Rep Power: 16
tareqkh is on a distinguished road
Here are pictures from the mesh and convergence history for the inviscid case. I am guessing this might be the problem.
Attached Images
File Type: jpg Mesh.jpg (98.2 KB, 69 views)
File Type: jpg History.jpg (35.2 KB, 65 views)
tareqkh 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 driven flow in interFoam deniggo OpenFOAM Running, Solving & CFD 28 November 18, 2015 08:54
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
strange pressure behaviour with symmetricPlane boudary condition - interFoam duongquaphim OpenFOAM Running, Solving & CFD 10 August 20, 2013 14:00
Pressure reference in cyclic interFoam AlmostSurelyRob OpenFOAM 7 February 16, 2011 09:58
interFoam pressure conservation AndrewB OpenFOAM 0 August 26, 2009 23:15


All times are GMT -4. The time now is 07:38.