|
[Sponsors] |
March 3, 2004, 21:11 |
Urgent: Random number in UDF
|
#1 |
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.! |
|
March 4, 2004, 04:26 |
Re: Urgent: Random number in UDF
|
#2 |
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 |
|
|
|
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 08: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 20:20 |