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

Urgent: Random number in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2004, 20:11
Default Urgent: Random number in UDF
  #1
hedonists
Guest
 
Posts: n/a
Hi,

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

URGENT, S.O.S.!
  Reply With Quote

Old   March 4, 2004, 03:26
Default Re: Urgent: Random number in UDF
  #2
Ale
Guest
 
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:

http://home.earthlink.net/~ddruml/random2.htm

http://cplus.about.com/library/weekly/aa041403c.htm

Regards,

Ale
  Reply With Quote

Reply


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
-- gaussian random number -- rana FLUENT 0 November 18, 2007 22: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 12:32
Change Courant number from UDF HS FLUENT 0 December 1, 2005 05:16
URGENT ! UDF ERROR! Prateep Chatterjee FLUENT 6 October 16, 2001 19:20


All times are GMT -4. The time now is 20:02.