|
[Sponsors] |
December 28, 2005, 07:27 |
Set gravity in UDF
|
#1 |
Guest
Posts: n/a
|
Dear friends,
Normally, gravity, g=9.80665 m/s2. It is very easy to do so in a source code. Could you tell me how to set the g by using UDF? Thank you very much in advance. Ray |
|
August 6, 2009, 10:05 |
i have the same question
|
#2 |
New Member
Join Date: Aug 2009
Posts: 2
Rep Power: 0 |
It is possible by using DEFINE_ADJUST. You can use a array e.g. gravity[2] und the command RP_Set_Real(). To use this UDF in Fluent you have to set the executive command (%rpgetvar 'gravity/x).
Kind regards Last edited by Astir; September 4, 2009 at 12:07. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to show the transient case? | H.P.LIU | Phoenics | 7 | July 13, 2010 05:31 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
Help with GNUPlot | Renato. | Main CFD Forum | 6 | June 6, 2007 20:51 |
Env variable not set | gruber2 | OpenFOAM Installation | 5 | December 30, 2005 05:27 |
Gravity, UDF Source & Operating Density. HELP ME! | Brian | FLUENT | 0 | November 1, 2005 16:17 |