|May 17, 2013, 08:04||
Gravity & pressure handle in interFoam
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44Rep Power: 4
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?
|May 22, 2013, 10:52||
Join Date: Mar 2009
Location: Illinois, USA
Posts: 195Rep Power: 10
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.
|gravity, interfoam, navier-stokes, pimple, pressure|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Pressure drag problem in porous media with interFoam||skp||OpenFOAM Running, Solving & CFD||8||May 27, 2015 08:10|
|Pipe Junction with interFoam Pressure Bounday Fails||mgdenno||OpenFOAM||8||April 5, 2013 09:39|
|interFoam and static pressure||MatP||OpenFOAM Running, Solving & CFD||1||July 15, 2012 11:35|
|interFoam: strange pressure with high fluid viscosity?||ckroener||OpenFOAM||3||April 7, 2010 12:51|
|Neumann pressure BC and velocity field||Antech||Main CFD Forum||0||April 25, 2006 02:15|