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

All about Pressure in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By sinatahmooresi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 21, 2021, 07:07
Default All about Pressure in OpenFOAM
  #1
Senior Member
 
CFD_Lovers
Join Date: Mar 2015
Posts: 168
Rep Power: 11
sinatahmooresi is on a distinguished road
Hello Dear Foamers,

I am intended to provide a useful guideline on pressure and everything about it in OF. Pressure boundary condition and the struggles associated with it is of the highest frequently asked and discussed about in CFD online. Thus, I think it is good to provide a very comprehensive discussion on it for whom are interested in using OF. To be honest, sometimes I feel confused with the variety of the B.C.s in OF.



First of all, it is very helpful to mention that, for incompressible cases, it is only the gradient of the pressure that matter. In contrast, most of the importance of the pressure and the relevant problems come up with compressible cases. Keeping the above-mentioned deceleration in mind, we can start with incompressible case. I list some features that I think comes handy for OF users dealing with pressure. I would appreciate your comments to correct this thread based on your knowledge.



Based on what we can see in source code definitions (https://www.openfoam.com/documentati...-pressure.html), we can rewrite our interpretation of pressure in openfoam:


P_total = P_ref + p + 0.5*U^2;
p_total = P Gauge.

p = static pressure = rho*p_k;
p_k = kinematic pressure (m2/s2), this is what we read and write in openfoam, dealing with incompressible flow.

p_ref = Is a referenced value used by incompressible solvers. Since they hold the relative values instead of absolute, it is just a value for starting the calculation.


A full complete relation for pressure regardless of the solver, software, … in whole fluid dynamics can be written as:
p_abs = P_atm + p_Gauge (relative pressure)

p_abs = absolute pressure.

p_atm = atmospheric pressure.

To turn the result of an icompressibel solver (in m2/s2) output of pressure to real relative values in Pa, one can write:
P = rho*(p + 0.5*U^2 + g*h)
Konrad95, hydroRussian and Elvis_M like this.

Last edited by sinatahmooresi; July 21, 2021 at 08:54.
sinatahmooresi is offline   Reply With Quote

Old   January 15, 2024, 06:43
Default
  #2
New Member
 
Rishi Kumar
Join Date: Jun 2022
Posts: 20
Rep Power: 4
rishik686 is on a distinguished road
Quote:
Originally Posted by sinatahmooresi View Post
Hello Dear Foamers,

I am intended to provide a useful guideline on pressure and everything about it in OF. Pressure boundary condition and the struggles associated with it is of the highest frequently asked and discussed about in CFD online. Thus, I think it is good to provide a very comprehensive discussion on it for whom are interested in using OF. To be honest, sometimes I feel confused with the variety of the B.C.s in OF.



First of all, it is very helpful to mention that, for incompressible cases, it is only the gradient of the pressure that matter. In contrast, most of the importance of the pressure and the relevant problems come up with compressible cases. Keeping the above-mentioned deceleration in mind, we can start with incompressible case. I list some features that I think comes handy for OF users dealing with pressure. I would appreciate your comments to correct this thread based on your knowledge.



Based on what we can see in source code definitions (https://www.openfoam.com/documentati...-pressure.html), we can rewrite our interpretation of pressure in openfoam:


P_total = P_ref + p + 0.5*U^2;
p_total = P Gauge.

p = static pressure = rho*p_k;
p_k = kinematic pressure (m2/s2), this is what we read and write in openfoam, dealing with incompressible flow.

p_ref = Is a referenced value used by incompressible solvers. Since they hold the relative values instead of absolute, it is just a value for starting the calculation.


A full complete relation for pressure regardless of the solver, software, … in whole fluid dynamics can be written as:
p_abs = P_atm + p_Gauge (relative pressure)

p_abs = absolute pressure.

p_atm = atmospheric pressure.

To turn the result of an icompressibel solver (in m2/s2) output of pressure to real relative values in Pa, one can write:
P = rho*(p + 0.5*U^2 + g*h)
Thanks for this important information @sinatahmooresi
__________________
Rishi K.
rishik686 is offline   Reply With Quote

Old   February 18, 2024, 15:58
Default
  #3
New Member
 
Join Date: Nov 2023
Posts: 5
Rep Power: 3
vv123 is on a distinguished road
Hello,

I am trying to translate pressure that is calculated to a water level deviation from the imposed rigid lid.

I am using the solver pimpleFoam, which calculates the kinematic pressure. I impose a rigid lid on the surface, where a free surface is the real case. It seems like the calculation h = pk/g - 0.5u^2/g gives accurate results. However, I am not able to get the right derivation to this solution.

Furthemore I tried another derivation with Bernoulli, however I am still a bit confused by the different pressure terms in e.g. Bernoulli compared to the model.

P_model +rho*g*h_model +0.5*u_model^2 = P_realistic + rho*g*h_realistic + 0.5*u_realistic^2

Than this P_model, would it be rho*p_k, or would it P_tot described above.

And is this method possible at all? to derive water level fluctuations from the pressure?

Thanks in advance!
vv123 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
OpenFOAM - cyclicAMI Pressure drop result variation Vishsel OpenFOAM 0 May 31, 2019 03:47
question regarding LES of pipe flow - pimpleFoam Dan1788 OpenFOAM Running, Solving & CFD 37 December 26, 2017 15:42
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 16:54
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
CFX Solver stopped with error when requested for backup during solver running Mfaizan CFX 40 May 13, 2016 07:50


All times are GMT -4. The time now is 08:51.