CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Urgent: Random number in UDF

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

LinkBack Thread Tools Display Modes
Old   March 3, 2004, 21:11
Default Urgent: Random number in UDF
Posts: n/a

Can anyone tell me which function to use to generate uniform random numbers in (0~1) or Gaussian random numbers in Fluent UDF?

  Reply With Quote

Old   March 4, 2004, 04:26
Default Re: Urgent: Random number in UDF
Posts: n/a
Hi, Your UDF is programmed in C, so that I think you can only use C language to generate random numbers.

The function rand() is defined in sdtlib.h.

Have a look to the following links:


  Reply With Quote


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
-- gaussian random number -- rana FLUENT 0 November 18, 2007 23:06
Help with UDF - nusselt number Sammie FLUENT 0 October 24, 2007 07:10
Urgent! Help on UDF to set inlet velocity Ray Hong FLUENT 4 December 30, 2005 13:32
Change Courant number from UDF HS FLUENT 0 December 1, 2005 06:16
URGENT ! UDF ERROR! Prateep Chatterjee FLUENT 6 October 16, 2001 19:20

All times are GMT -4. The time now is 03:10.