# Tutorial, Pressure initial conditions

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

 June 17, 2012, 12:11 Tutorial, Pressure initial conditions #1 New Member   Alexey Boltaks Join Date: Jun 2012 Posts: 4 Rep Power: 7 Sponsored Links Dear Forum, I've been going over the 2.1 icoFoam tutorial. It is stated there that for an incompressible flow, we identify pressure as kinematic pressure. Hence, in the pressure initial conditions file, we specify it as m^2/s^2. I've been going over my old incompressible aerodynamics noteboot and can't seem to find out the reason why. Am I to worry or simply accept that the program accepts: - kinematic pressure for incompressible cases - regular pressure for compressible Thanks in advance, Wormer

June 17, 2012, 12:48
#2
Super Moderator

Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,978
Blog Entries: 39
Rep Power: 108
Greetings Alexey and welcome to the forum!

Basically it's explainable this way:
1. Here's the incompressible Navier-Stokes equation:
Quote:
 Originally Posted by http://www.cfd-online.com/Wiki/Navier-Stokes_equations#Other_formulation
... equation (16).
2. Given that is constant, we can simplify by dividing the whole equation by and voilą, 2 multiplications have been removed from the code, making it 5-10% (don't know the real value) faster for solving and also reduce cumulative numerical errors.
This isn't the only situation where OpenFOAM has simplified equations, because there are equation components that don't add much to the solution... and since people want solutions as fast as possible, then simplification is key!
edit: Which is why I don't simply state that compressible solvers will use regular pressure

This also implies that one should take some time to study the solvers one is using, because sometimes there are simplifications that simply cannot be applied to the case one is trying to solve! This is why OpenFOAM can be very good: you've gotta get your hands dirty to really know if things are going the way they should

Best regards,
Bruno
__________________

Last edited by wyldckat; June 17, 2012 at 12:49. Reason: see "edit:"

 June 18, 2012, 05:33 #3 New Member   Alexey Boltaks Join Date: Jun 2012 Posts: 4 Rep Power: 7 Thanks Bruno , So in general, when working with OpenFoam I should formulate the problem at hand, then choose a solver and then get to know it (by that realizing all the simplifications possibly made in it)? Thanks again .

 June 18, 2012, 15:10 #4 Super Moderator   Bruno Santos Join Date: Mar 2009 Location: Lisbon, Portugal Posts: 9,978 Blog Entries: 39 Rep Power: 108 Hi Alexey, You're welcome. And yes, the idea is to formulate and understand the problem you're trying to solve. This is also the idea that is given right on the first tutorial: http://www.openfoam.org/docs/user/cavity.php - the first time I was reading the tutorial, I thought to myself (didn't have any CFD experience at the time): "Why on Earth do I need to know the Courant Number and what it means?" Sometimes, you might also end up having to create (copy-paste-change) a solver yourself, either due to those simplifications, or simply because - as a wild example - you might need multiphase flows with radiation and electromagnetic fields! Although sometimes someone has already made such a solver and has either made a paper about it and/or posted the code somewhere Best regards, Bruno __________________ OpenFOAM: FAQ | Getting started Forum: How to get help, to post code/output and forum guide What am I doing/planning: blog/wiki Read this before sending me PM

 Tags pressure, tutorial

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post ysh1227 OpenFOAM Running, Solving & CFD 1 August 16, 2016 09:25 Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03 jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24 nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50

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