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

Gravity & pressure handle in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2013, 09:04
Default Gravity & pressure handle in interFoam
  #1
Member
 
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14
dav.dap83 is on a distinguished road
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
dav.dap83 is offline   Reply With Quote

Old   May 22, 2013, 11:52
Default
  #2
Senior Member
 
Kent Wardle
Join Date: Mar 2009
Location: Illinois, USA
Posts: 219
Rep Power: 21
kwardle is on a distinguished road
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
kwardle is offline   Reply With Quote

Old   May 22, 2013, 12:21
Default
  #3
Member
 
Davide D.
Join Date: Oct 2012
Location: Birmingham (UK)
Posts: 44
Rep Power: 14
dav.dap83 is on a distinguished road
constant/g was ok, but boundary conditions for pressure were wrong. Thank you anyway
dav.dap83 is offline   Reply With Quote

Reply

Tags
gravity, interfoam, navier-stokes, pimple, pressure


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
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


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