CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

About gravity in Finite Volume Methods Coding

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2017, 22:28
Default About gravity in Finite Volume Methods Coding
  #1
New Member
 
Green
Join Date: Apr 2016
Posts: 27
Rep Power: 7
hjxy2012 is on a distinguished road
Hello, I am writing a FVM code and it works well without gravity. But after adding gravity terms to the momentum equations the result is wrong. I just want to simulate the pressure difference caused by gravity(hydrostatic pressure). This pressure difference will exist even the fluid is still. I know in Fluent, if I want to take it into consider, I have to set the gravity and set reference density to 0. Then what should I do with my own code? Thank you.

Last edited by hjxy2012; May 22, 2017 at 00:02.
hjxy2012 is offline   Reply With Quote

Old   May 22, 2017, 03:41
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 5,905
Rep Power: 63
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Give more details about your discretization, it is likely a numerical instability ..
FMDenaro is offline   Reply With Quote

Old   May 22, 2017, 05:14
Default
  #3
New Member
 
Green
Join Date: Apr 2016
Posts: 27
Rep Power: 7
hjxy2012 is on a distinguished road
Than you for your reply.
I get some ideas from this issue:
Hydrostatic Pressure and Gravity
The hydrostatic pressure is not taken into consideration when we are building momentum equations. And I have to add the hydrostatic pressure from this:
p = pd + rho*g*z
hjxy2012 is offline   Reply With Quote

Reply

Tags
finite volume method, gravity, 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use "translation" in solidBodyMotionFunction in OpenFOAM rupesh_w OpenFOAM Running, Solving & CFD 5 August 16, 2016 05:27
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 06:06
Problem with SIMPLEC-like finite volume channel flow boundary conditions ghobold Main CFD Forum 3 June 15, 2015 12:14
influence of convex or concave control volume in finite volume discretization openfoammaofnepo Main CFD Forum 1 March 24, 2014 03:13
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55


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