CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Randomization in UDF

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

LinkBack Thread Tools Display Modes
Old   November 14, 2005, 14:02
Default Randomization in UDF
Posts: n/a
Hello everybody!

Does anybody know what command I can use to get an evenly distributed random number on the interval 0 to 1 in a UDF? There's an example in the UDF manual that mentions "cheap_gauss_random()", but is that really evenly distributed?

Any help is highly appreciated!

Thanks, Henrik
  Reply With Quote

Old   November 15, 2005, 04:25
Default Re: Randomization in UDF
Posts: n/a
After looking in random.h I found the following commands are probably available:





Now, what's the difference between the "cheap" ones and the other ones??

Any help is as always highly appreciated Thanks, Henrik
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 17:05.