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

Urgent: Random number in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 3, 2004, 21: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, 04: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

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 11:14.