CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

simpleFoam with gravity

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

LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2016, 16:32
Default simpleFoam with gravity
New Member
Join Date: Mar 2015
Posts: 6
Rep Power: 8
tagabi3 is on a distinguished road

Is it possible to add gravity to simpleFoam in OpenFOAM 3.0? I have seen that there are files such "g" and "gravitationalProperties", but I am not so sure if gravity is included in my simulation (I have set up both in constant/ but still not sure if they actually worked). Can anyone help me how to include gravity in my simulation (or which files do I need)?

Thank you in advance!
tagabi3 is offline   Reply With Quote

Old   May 23, 2016, 03:01
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 224
Rep Power: 13
peterhess is on a distinguished road

The tutorial multiRegionHeaterRadiation includes already Gravity.

Under constant bottomAir as example...

Now going to installation folder


And looking in pEqn.H you will see the gravity included. At least here. If somewhere else, I am not sure


peterhess is offline   Reply With Quote


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
interFoam vs. simpleFoam channel flow comparison DanM OpenFOAM Running, Solving & CFD 12 January 31, 2020 15:26
MPI error with simpleFoam blaise OpenFOAM Running, Solving & CFD 0 November 7, 2015 14:01
simpleFoam parallel solver & Fluent polyhedral mesh Zlatko OpenFOAM Running, Solving & CFD 3 September 26, 2014 06:53
Laminar simpleFoam and inviscid simpleFoam herenger OpenFOAM Running, Solving & CFD 7 July 11, 2013 06:27
Trying to run a benchmark case with simpleFoam spsb OpenFOAM 3 February 24, 2012 09:07

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