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

The simulation about gravity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 12, 2014, 02:23
Default The simulation about gravity
  #1
New Member
 
Qiang Guo
Join Date: May 2014
Posts: 5
Rep Power: 11
guodei is on a distinguished road
Hello everyone,

I am confused by how to consider the vertical pressure gradient caused by the gravity in a closed water tunnel in CFX.

I use a simple cuboid model as shown in Fig. 1. The fluid is general water with velocity of 1m/s in the inlet, static pressure in the outlet, and the other boundaries are wall. The mesh is coarse and the convergence criteria is RMS=10^-6.

I have tried two methods to account the effect of gravity: (1) Add a General Momentum Source term in the subdomain with ρ*g in X-axial direction; (2) Use the Buoyancy Model with g in Gravity X Dirn.

About the outlet boundary conditions, I am not sure whether to use ①a static pressure gradient distribution with expression of ρ*g*x or ② a uniform static pressure of 0Pa. I make comparisons among these schemes as (1)①, (1)②, (2)① and (2)②. The contours on the ZX plane are shown in Fig. 2(a-d).

As the CFX-Help states that the pressure in the momentum equation excludes the hydrostatic gradient due to reference density when buoyancy is activated, so I think the schemes of (1)① and (2)② is more suitable.

Maybe the distributions of absolute pressure between the two simulations are similar, but if doing a further research in the tunnel, what effects on the cavitation from the differences in pressure? I am not sure which one is accordant with the actual flow feature.

I am looking forward to discuss with you and thanks in advance!

Fig.1
Fig.2a
Fig.2b
Fig.2c
Fig.2d

Last edited by guodei; September 12, 2014 at 06:54.
guodei is offline   Reply With Quote

Old   September 12, 2014, 06:03
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
First of all, there is no point in modelling the hydrostatic head unless it does something. So if your simulation is constant density then forget about modelling hydrostatic head and just model it with no gravity. If you want to see what the hydrostatic head is you can simply add it in post processing.

It you have to model the hydrostatic head then use the built in gravity model. Read the documentation about hydrostatic head - the definition of pressure is changed such that the hydrostatic component is removed. In this case you model the pressure boundaries with constant pressure.

If you want you can model gravity as a source term. This should be equivalent to the built in model, but possibly a little less accurate and a little less numerically stable as it will suffer greater round off error. You will have to impose the hydrostatic head on the boundary condition in this case.
ghorrocks is online now   Reply With Quote

Old   September 12, 2014, 07:41
Default
  #3
New Member
 
Qiang Guo
Join Date: May 2014
Posts: 5
Rep Power: 11
guodei is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
First of all, there is no point in modelling the hydrostatic head unless it does something. .
Thank you for your reply. It makes me have a better understanding about the reasons for the differences between Fig. 2a and Fig. 2d above. So just pay attention to the contours of the absolute pressure in the two figures, does it can be inferred that the source term and buoyancy methods have got the same predictive effect?

Then I simulate a rotor in a tunnel. The rotor is like the wind turbine, just can be used for marine current or tidal turbine. The boundary conditions are similar to the tunnel simulation above and just with a rotating speed for the rotor.

When I use the unsteady simulation using the source term and buoyancy methods to account for the gravity, the results are significantly different. Fig. 3a and Fig. 3b show the streamlines (with variable of Velocity in Stn Frame) through the rotor region. The unsteady simulations have experienced several rotation periods.

I am confused by the differences.
Fig.3a
Fig.3b
guodei is offline   Reply With Quote

Old   September 12, 2014, 08:13
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I do not understand what you are modelling in the pressure plots you display. Please label the diagrams.

As for your fan simulations:
As I said in my previous post, unless the fluid has density as a function of something then gravity will have no effect. I assume these are incompressible simulations. That means that the simulation which has the distorted fan wake in it is simply poorly converged and/or numerically unstable caused by the introduction of the unnecessary gravity term. That is exactly why I recommend that you do not include it unless you need it. This especially goes for the source term approach as that will cause far more round off error than the built in gravity model.
ghorrocks is online now   Reply With Quote

Old   September 12, 2014, 09:04
Default
  #5
New Member
 
Qiang Guo
Join Date: May 2014
Posts: 5
Rep Power: 11
guodei is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
I do not understand what you are modelling in the pressure plots you display. Please label the diagrams.
Thank you for your quickly reply.

Fig. 2(a-d) show the contours on the ZX plane which is the vertical middle section in the domain.

I am interested in the cavitation predictions for the rotor. Considering the pressure distribution will affect the cavitation characteristics, so I want to include the gravity effect to make the calculation closer to the experimental condition.

Is there any way to judge the round off error?
guodei is offline   Reply With Quote

Old   September 12, 2014, 17:28
Default
  #6
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want to include hydrostatic effects due to its effect on cavitation then you will want to use the built in gravity model.

It is difficult to quantify round off error. Really all you need to know is whether you have enough round off error to cause a problem. You can tell this by switching between single and double precision (as this directly affects round off error), or by introducing something which has lots of round off error (like a badly chosen reference pressure).
ghorrocks is online now   Reply With Quote

Old   September 12, 2014, 20:29
Default
  #7
New Member
 
Qiang Guo
Join Date: May 2014
Posts: 5
Rep Power: 11
guodei is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If you want to include hydrostatic effects due to its effect on cavitation then you will want to use the built in gravity model.
Thank you very much for your help. I will try it.
guodei is offline   Reply With Quote

Reply


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
Simulation and Optimisation of centrifugal fan 3D to 2D eRzBeNgEl STAR-CCM+ 0 January 31, 2013 13:21
GUI crash and simulation engine still running RPJones FLOW-3D 2 November 9, 2010 08:18
(chtMultiRegionFoam) reducing gravity increase the simulation time ! openfoam1 OpenFOAM 7 March 10, 2010 09:41
Replacing mesh while running a simulation akultane CFX 1 November 15, 2009 13:46
Help: gravity in CFX Dejun Jing CFX 2 July 22, 2002 08:58


All times are GMT -4. The time now is 04:45.