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

Tutorial, Pressure initial conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2012, 12:11
Default Tutorial, Pressure initial conditions
  #1
New Member
 
Alexey Boltaks
Join Date: Jun 2012
Posts: 4
Rep Power: 13
Wormer is on a distinguished road
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
Wormer is offline   Reply With Quote

Old   June 17, 2012, 12:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
    \rho \frac{Du_{i}}{Dt} = - \nabla p + \rho \textbf{g} + \mu \nabla^{2} \textbf{u}
    ... equation (16).
  2. Given that \rho is constant, we can simplify by dividing the whole equation by \rho 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:"
wyldckat is offline   Reply With Quote

Old   June 18, 2012, 05:33
Default
  #3
New Member
 
Alexey Boltaks
Join Date: Jun 2012
Posts: 4
Rep Power: 13
Wormer is on a distinguished road
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 .
Wormer is offline   Reply With Quote

Old   June 18, 2012, 15:10
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Reply

Tags
pressure, tutorial


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
MRFSimpleFoam wind turbine case continuity error ysh1227 OpenFOAM Running, Solving & CFD 1 August 16, 2016 09:25
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Orifice Plate with a fully developed flow - Problems with convergence jonmec OpenFOAM Running, Solving & CFD 3 July 28, 2011 05:24
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 12:50


All times are GMT -4. The time now is 11:47.