CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Question about hydrostatic pressure and gravity(buoyancy) term in CFX

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By Opaque

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2025, 16:02
Default Question about hydrostatic pressure and gravity(buoyancy) term in CFX
  #1
Member
 
Join Date: Dec 2023
Posts: 51
Rep Power: 4
smhk is on a distinguished road
Hello,
I have some questions about how (hydrostatic) pressure is calculated in Ansys CFX.
In Ansys CFX theory guide momentum equation is written without the gravitational term (but there is a source term). I can activate buoyancy in domain settings but I'm not sure how that works.
  • Why we don't always turn gravity term on (like what it is in Navier-Stokes equation)?
  • Is the buoyancy model work only for multi-phase flows, buoyancy driven flows or you can use it for every other simulation like a Kaplan turbine or a hydrostatic case?
  • Do I need to activate buoyancy model in solving a water turbine model?(I know by using mass flow rate I somehow apply the effect of gravitational driving force for the turbine but I'm not sure shall I use buoyancy or not).

I also tried a simple case. I got these results which are weird to me.
Here is a simple 1m*1m*3m channel and blue arrows show mass flow at the inlet:
In the first experiment I didn't activate buoyancy. The relative pressure is symmetric. you can't see the hydrostatic pressure in relative pressure contour. it's symmetric:




The absolute pressure is also symmetric with no difference on any axis:








I wanted to see how buoyancy model works with this case so I activated buoyancy model in the domain setting:




when buoyancy reference temperature is the same as fluid reference temperature (in materials), I get this results for relative pressure and absolute pressure respectively:
you can't see the hydrostatic pressure in the relative pressure:





But in absolute pressure, hydrostatic pressure share is obvious the difference in pressure along Y axis must be about 10000Pa (g=10 m/s^2 & rho=1000 kg/m^3)







when buoyancy reference temperature is different from fluid reference temperature , I get this results for relative pressure and absolute pressure respectively:
In relative pressure contour there is pressure gradient in along Y but it's not 10000Pa it's only about 700Pa



but in absolute pressure contours, hydrostatic pressure seems correct and it's difference is about 10000Pa

why this happens?


Thank you

Last edited by smhk; December 18, 2025 at 17:48.
smhk is offline   Reply With Quote

Old   December 18, 2025, 17:04
Default
  #2
Senior Member
 
Join Date: Jun 2009
Posts: 1,945
Rep Power: 34
Opaque will become famous soon enough
Quote:
Originally Posted by smhk View Post
Hello,
I have some questions about how (hydrostatic) pressure is calculated in Ansys CFX.
In Ansys CFX theory guide momentum equation is written without the gravitational term (but there is a source term). I can activate buoyancy in domain settings but I'm not sure how that works.
  • Why we don't always turn gravity term on (like what it is in Navier-Stokes equation)?
  • Is the buoyancy model work only for multi-phase flows, buoyancy driven flows or you can use it for every other simulation like a Kaplan turbine or a hydrostatic case?
  • Do I need to activate buoyancy model in solving a water turbine model?(I know by using mass flow rate I somehow apply the effect of gravitational driving force for the turbine but I'm not sure shall I use buoyancy or not).




I also tried a simple case. I got these results which are weird to me.
Here is a simple 1m*1m*3m channel and blue arrows show mass flow at the inlet:
In the first experiment I didn't activate buoyancy. The relative pressure is symmetric. you can't see the hydrostatic pressure in relative pressure contour. it's symmetric:





The absolute pressure is also symmetric with no difference on any axis:





I wanted to see how buoyancy model works with this case so I activated buoyancy model in the domain setting:






when buoyancy reference temperature is the same as fluid reference temperature (in materials), I get this results for relative pressure and absolute pressure respectively:
you can't see the hydrostatic pressure in the relative pressure:






But in absolute pressure, hydrostatic pressure share is obvious the difference in pressure along Y axis must be about 10000Pa (g=10 m/s^2 & rho=1000 kg/m^3)







when buoyancy reference temperature is different from fluid reference temperature , I get this results for relative pressure and absolute pressure respectively:
In relative pressure contour there is pressure gradient in along Y but it's not 10000Pa it's only about 700Pa



but in absolute pressure contours, hydrostatic pressure seems correct and it's difference is about 10000Pa

why this happens?


Thank you
Absolute Pressure = (Pressure + Reference Pressure) + Reference Density * gravity * (g dot local_position vector - local reference position)

Absolute pressure gradient = pressure gradient + Reference density * gravity * gradient *( g dot local position - local reference position)

Hope that helps
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.

Last edited by Opaque; December 19, 2025 at 09:47.
Opaque is offline   Reply With Quote

Old   December 19, 2025, 06:28
Default
  #3
Member
 
Join Date: Dec 2023
Posts: 51
Rep Power: 4
smhk is on a distinguished road
Thank you for replying.


Quote:
Absolute Pressure = Pressure + density * gravity * (g dot local_position vector - local reference position)
Is this the case when I use buoyancy model?
Why when I change the reference temperature (in buoyancy model) to some value other than temperature in my material properties the relative pressure becomes incorrect.
When Should I active buoyancy model?
smhk is offline   Reply With Quote

Old   December 19, 2025, 09:51
Default
  #4
Senior Member
 
Join Date: Jun 2009
Posts: 1,945
Rep Power: 34
Opaque will become famous soon enough
Quote:
Originally Posted by smhk View Post
Thank you for replying.



Is this the case when I use buoyancy model?
Why when I change the reference temperature (in buoyancy model) to some value other than temperature in my material properties the relative pressure becomes incorrect.
When Should I active buoyancy model?
That was the simplified version (which I updated to match the documentation)

For compressible, multiphase flow, the full buoyancy model is used. That is, the "(Density - Reference Density) * gravity is evaluated directly.

Have you read the documentation? Both sections: Theory Guide, and Solver Modeling Guide
smhk likes this.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
Opaque is offline   Reply With Quote

Reply

Tags
buoyancy, cfx, gravity, hydrostatic pressure

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



All times are GMT -4. The time now is 16:12.