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

Momentum equation in buoyantBoussinesqSimpleFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By CuriousFluidDynamics

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2024, 11:03
Default Momentum equation in buoyantBoussinesqSimpleFoam
  #1
New Member
 
Join Date: Sep 2024
Posts: 3
Rep Power: 2
CuriousFluidDynamics is on a distinguished road
Dear all,


I am very new to OpenFOAM so my apologies in advance if this question is too basic.


For the solver of buoyantBoussinesqSimpleFoam there is this term in the momentum equation:


Code:
ghf*fvc::snGrad(rhok)
I understood it as:

g_n \nabla ( 1 - \beta (T -T_{ref}))

Where \beta is the thermal expansion coefficient, T the temperature and g_n the inner product of the gravitational acceleration with the location of the face centres. However, why do we take the gradient? From the Boussinesq assumption, there does not seem to be one at first glance: https://en.wikipedia.org/wiki/Boussi...ion_(buoyancy)
CuriousFluidDynamics is offline   Reply With Quote

Old   September 10, 2024, 13:43
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 746
Rep Power: 14
Tobermory will become famous soon enough
This term arises because OpenFOAM buoyant solvers don't solve for the static pressure, they solve for a quantity called p_rgh (for stability reasons), which is akin to an anhydrostatic pressure:

p_{rgh} = p - \rho( \vec{g}\cdot \vec{h})

Stick this into the momentum equation, and you will see where the \nabla \rho term comes from (and where the gravity term disappears to).
Tobermory is offline   Reply With Quote

Old   September 12, 2024, 09:27
Default
  #3
New Member
 
Join Date: Sep 2024
Posts: 3
Rep Power: 2
CuriousFluidDynamics is on a distinguished road
Thank Tobermory! This really helped. Finally I also found an derivation here: https://www.openfoam.com/documentati...orm-p-rgh.html
Tobermory likes this.
CuriousFluidDynamics is offline   Reply With Quote

Reply

Tags
boussinesq, buoyantboussinesqsimple


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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
How to manually add Boussinesq Approximation to the momentum equation of a solver? chymalaia OpenFOAM Programming & Development 2 February 5, 2021 10:07
add a pressure drop term in the momentum equation a.lone FLUENT 0 July 3, 2019 07:48
Domain Reference Pressure and mass flow inlet boundary AdidaKK CFX 75 August 20, 2018 06:37
Coefficients discretized momentum equation michujo Main CFD Forum 4 June 20, 2012 02:33


All times are GMT -4. The time now is 18:02.