- **OpenFOAM**
(*https://www.cfd-online.com/Forums/openfoam/*)

- - **Which pressure OpenFOAM use for incompressible flow? P/rho or (P-101325)/rho ?**
(*https://www.cfd-online.com/Forums/openfoam/71084-pressure-openfoam-use-incompressible-flow-p-rho-p-101325-rho.html*)

Which pressure OpenFOAM use for incompressible flow? P/rho or (P-101325)/rho ?Dear Foamers:
I am a little confused about pressure for imcompressible flow. I want to know which pressure OpenFOAM uses. Because in outflow boundary, pressure value is fixed. So if you give zero, the pressure result will be very small. If you give 101325/rho, the pressure result will be large. in all the tutorials of OpenFOAM , in case/0 ,pressure is set to zero. If that means , the pressure set in P file is (Real Pressure - 101325)/rho ? Thank you very much! |

Isn't the pressure already divided by rho?
So the real pressure would be p*rho and then if you have 0 at outlet add atmospheric pressure so: p*rho + 101325 But you should see my post about pressure and knowbody has answered yet. http://www.cfd-online.com/Forums/ope...cell-size.html I suspect pressure is not being calculated correctly because it varies too much with cell size. If so you can't use the pressure value. |

Quote:
thanks |

You can get the real pressure value (that is not divided by rho) using the formula
that jugghead wrote and you can find the rho value by consulting the physical property books at your simulation condition. Hope this helps, Fumiya |

Quote:
nu=mu/rho So how can i just get the value from the book. Isnt the simplefoam or other incompressible solver default value used? So what is the default value then? i have done the solver, with nu 1.5exp-5 (from motorbike tutorial) Now i need the rho value based on that nu or based on the motorbike tutorial. Thanks :) |

Hi nash,
If you look at the table(http://www.engineeringtoolbox.com/ai...ies-d_156.html), you can find that the kinematic viscosity(nu) value is nearly equal to 1.5e-5 at 20 degrees Celsius and the density(rho) value is 1.205 kg/m^3 at this temperature. So, the motor bike tutorial solves the flow on these conditions if the working fluid is air. If you try to do another simulation at different condition(different temperature or fluid etc.), you can find the nu and rho value from books and set nu value in the transportProperties dictionary. When your simulation finishes, you can get the real pressure value using the formula that jugghead wrote and the density value you will have found. |

Quote:
Now i would like to ask, if i want to get the exact pressure direct from the simulation, i plan to set the rho to 1. So i need to set nu. But i dont know the mu. Any idea? Temperature is at 20 degree celcius. Isnt okay if i do so? Thanks again for your help :) |

I think it's not possible and it is easier to multiply the result by rho after calculation.
Fumiya |

Hello together,
I know this thread is older but I am a little confused at the moment concerning the pressure. If I use the incompressible solver interFoam and set the pressure to 0 in 0/p, I sometimes get a negative pressure p. Is it also true in this case that I calculate the "real" static pressure with p + 101325? Thanks a lot for your help idefix |

Just a question for confirmation, as I'm getting confuse with my results, in order to see how to change my BC.
In 0/U I defined pressureInletvelocity and in 0/p I defined total pressure for inlet and set it equal to 0, so I defined: total = static + dynamic --> 0 = 0 + rho*U^2/2 (value for U= (0 0 0) --> all is zero) When I plot a slice on paraview, what pressure I get? static pressure divided by rho? total pressure divided by rho? or in other way to ask, is pressure calculated by openfoam the static one or the total pressure? thanks a lot. Bye |

Quote:
Thanks! |

Quote:
Notations - p = static pressure ptot = total pressure rho = density to my knowledge, for incompressible flows, OF solves for p/rho. You can find total pressure (ptot = p + 1/2 * rho *U^2) using the ptot utility. |

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