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

Buoyancy Treatment in OpenFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2017, 11:35
Default Buoyancy Treatment in OpenFoam
  #1
New Member
 
Join Date: Oct 2017
Posts: 12
Rep Power: 9
AMK53 is on a distinguished road
From all the standard solvers that I found on OpenFoam, it seems that the buoyancy term is always treated by modifying the pressure:


-\nabla P + \rho g = -\nabla P_{rgh} - (g \cdot x) \nabla \rho

where

P_{rgh} = P - \rho g \cdot x

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 \rho g? 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.
AMK53 is offline   Reply With Quote

Old   October 30, 2017, 05:31
Default
  #2
Member
 
Knut Erik T. Giljarhus
Join Date: Mar 2009
Location: Norway
Posts: 35
Rep Power: 22
eric will become famous soon enough
Yes, using the modified pressure often makes the problem easier to handle numerically, and it's easier to specify boundary conditions.
eric is offline   Reply With Quote

Old   October 30, 2017, 23:51
Default
  #3
New Member
 
Join Date: Oct 2017
Posts: 12
Rep Power: 9
AMK53 is on a distinguished road
Quote:
Originally Posted by eric View Post
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?
AMK53 is offline   Reply With Quote

Old   October 31, 2017, 02:23
Default
  #4
Member
 
Knut Erik T. Giljarhus
Join Date: Mar 2009
Location: Norway
Posts: 35
Rep Power: 22
eric will become famous soon enough
See this post on the issue tracker from Henry Weller, where he briefly explains it:
https://bugs.openfoam.org/view.php?id=1170
eric is offline   Reply With Quote

Reply

Tags
buoyancy, density, gravity


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
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 04:19
OpenFOAM wall function treatment kimotbwb OpenFOAM Programming & Development 7 March 6, 2015 13:52
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 10:04
OpenFOAM 2.x simpleFoam and kOmegaSST convergence and wall treatment gillimaniac OpenFOAM Running, Solving & CFD 6 August 1, 2013 02:36
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


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