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

Randomization in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 14, 2005, 14:02
Default Randomization in UDF
  #1
HS
Guest
 
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
  #2
HS
Guest
 
Posts: n/a
After looking in random.h I found the following commands are probably available:

cheap_gauss_random

cheap_uniform_random

gauss_random

uniform_random

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

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
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
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
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 04:32.