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

Where are Gradiets evaluated

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   November 5, 2006, 17:56
Default Hi all, I am trying to set
  #1
Member
 
Shaun Cooper
Join Date: Mar 2009
Posts: 54
Rep Power: 17
coops is on a distinguished road
Hi all,

I am trying to set up a model that requires hydrostatic equilibirum (essentially the pressure force needs to exactly balance the force from gravity, this is done by dp/dz = -p_0*H, where p_0 is the initial pressure field and H is a constant number (in our case) called the scale height). When I try to impliment a simple version of this I am able to create a pressure field that has the desired distribution but and I try to balance this with a gravitational acceleration but I still don't have it in equilibrium. I have played around with a few factors and now I think it may be that the pressure that I have specifed (i have created a pressure field that assigns a value to the center of the cells) is slighty out of sink with the gradient. This could presumably occur if the gradient is evaluated at the faces of the cells whilst the pressure is defined at the centre.

In summary I would like to know where the gradients are evaluated in OF.

Thanks in advance,

Shaun
coops is offline   Reply With Quote

 


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
Convective term evaluated at time n+1/2 Lionel S. Main CFD Forum 0 February 12, 2007 14:22


All times are GMT -4. The time now is 07:21.