|
[Sponsors] |
May 17, 2013, 09:04 |
Gravity & pressure handle in interFoam
|
#1 |
Member
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14 |
Dear all,
I am currently trying to compile an interFoam version with kinematicCloud object inside. However, there is an aspect I don't understand, namely how interFoam handles pressure and gravity. As far as I understand, in interFoam, gravity term does not compare in NS equations in UEqn.H, but a modified pressure p = p_rgh + rho*gh is introduced in createFields.H. I performed a simple simulation of a laminar pipe single-phase flow with transverse gravitational fields, and compared the qualitative output with a similar simulation in pimpleFoam. A relevant difference appears, namely interFoam seems to ignore transverse gravitational field. Do you know what is the reason of this different handling of gravity field? And what may cause the difference in the simulations' behaviors? Thank you |
|
May 22, 2013, 11:52 |
|
#2 |
Senior Member
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21 |
You are correct in that interFoam uses a different formulation for pressure, but it also does define a field p with the 'normal' pressure and should work fine with kinematicCloud particle fields. And it should not ignore gravity. Have you verified in constant/g that gravity vector is defined as you intend? I ask because I forget this all the time and copy in a g file from a 2D run and find out a day later that my results are garbage because I forgot to correct the gravity vector direction.
-Kent |
|
May 22, 2013, 12:21 |
|
#3 |
Member
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14 |
constant/g was ok, but boundary conditions for pressure were wrong. Thank you anyway
|
|
Tags |
gravity, interfoam, navier-stokes, pimple, pressure |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure drag problem in porous media with interFoam | skp | OpenFOAM Running, Solving & CFD | 8 | May 27, 2015 09:10 |
Pipe Junction with interFoam Pressure Bounday Fails | mgdenno | OpenFOAM | 8 | April 5, 2013 10:39 |
interFoam and static pressure | MatP | OpenFOAM Running, Solving & CFD | 1 | July 15, 2012 12:35 |
interFoam: strange pressure with high fluid viscosity? | ckroener | OpenFOAM | 3 | April 7, 2010 13:51 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 03:15 |