# Buoyancy Treatment in OpenFoam

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Search this Thread Display Modes
 October 29, 2017, 11:35 Buoyancy Treatment in OpenFoam #1 New Member   Join Date: Oct 2017 Posts: 12 Rep Power: 7 From all the standard solvers that I found on OpenFoam, it seems that the buoyancy term is always treated by modifying the pressure: where In OpenFoam format, this is usually written as Code: solve ( UEqn == fvc::reconstruct ( ( - ghf*fvc::snGrad(rho) - fvc::snGrad(p_rgh) )*mesh.magSf() ) ); Is there a particular numerical benefit for treating the buoyancy term in this fashion instead of just treating it as a source term ? It seems to me this way is more complicated in the sense that you have to track two pressures (P and P_rgh), and for certain problems, creating an initial condition for P_rgh is not straightforward.

 October 30, 2017, 05:31 #2 Member   Knut Erik T. Giljarhus Join Date: Mar 2009 Location: Norway Posts: 35 Rep Power: 21 Yes, using the modified pressure often makes the problem easier to handle numerically, and it's easier to specify boundary conditions.

October 30, 2017, 23:51
#3
New Member

Join Date: Oct 2017
Posts: 12
Rep Power: 7
Quote:
 Originally Posted by eric Yes, using the modified pressure often makes the problem easier to handle numerically, and it's easier to specify boundary conditions.
Do you mind elaborating on how it makes it easier to handle numerically?

 October 31, 2017, 02:23 #4 Member   Knut Erik T. Giljarhus Join Date: Mar 2009 Location: Norway Posts: 35 Rep Power: 21 See this post on the issue tracker from Henry Weller, where he briefly explains it: https://bugs.openfoam.org/view.php?id=1170

 Tags buoyancy, density, gravity

 Thread Tools Search this Thread Search this Thread: Advanced Search 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 Off Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19 kimotbwb OpenFOAM Programming & Development 7 March 6, 2015 13:52 wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04 gillimaniac OpenFOAM Running, Solving & CFD 6 August 1, 2013 02:36 jussi OpenFOAM Installation 0 April 24, 2008 15:25

All times are GMT -4. The time now is 21:38.

 Contact Us - CFD Online - Privacy Statement - Top