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

Set gravity in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 28, 2005, 07:27
Default Set gravity in UDF
  #1
Ray Hong
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
  Reply With Quote

Old   August 6, 2009, 09:05
Default i have the same question
  #2
New Member
 
Join Date: Aug 2009
Posts: 2
Rep Power: 0
Astir is on a distinguished road
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 11:07.
Astir is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show the transient case? H.P.LIU Phoenics 7 July 13, 2010 04: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 19: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


All times are GMT -4. The time now is 00:42.