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

random number generator in CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2010, 17:45
Default random number generator in CFX
  #1
New Member
 
Bo Yan
Join Date: Jun 2010
Posts: 2
Rep Power: 0
yanboda is on a distinguished road
Hi CFX users,
I'm trying to give a white noise to a fluid flow inlet velocity profile, I'm wondering if you guys have wrote any fortran subroutine that generates random number every time step. If someone can show me how to do that, that would be really appreciated.
yanboda is offline   Reply With Quote

Old   June 15, 2010, 08:41
Default
  #2
Senior Member
 
Robert
Join Date: Jun 2010
Posts: 117
Rep Power: 17
RobertB is on a distinguished road
The SLATEC Fortran library has a random number generator in it called rrand.f, which I have attached.

I am not sure how good it is but it may serve your purposes.
Attached Files
File Type: f rrand.f (4.9 KB, 30 views)
RobertB is offline   Reply With Quote

Old   June 15, 2010, 11:03
Default
  #3
New Member
 
Bo Yan
Join Date: Jun 2010
Posts: 2
Rep Power: 0
yanboda is on a distinguished road
Quote:
Originally Posted by RobertB View Post
The SLATEC Fortran library has a random number generator in it called rrand.f, which I have attached.

I am not sure how good it is but it may serve your purposes.
Do you know how to write the CEL command and get a random number every time step?
yanboda is offline   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
Random number generator ASaidZ FLUENT 3 February 3, 2014 21:06
courant number for transient flow on CFX ? amine CFX 13 August 20, 2013 20:02
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 08:59
CFX Solver Memory Error mike CFX 1 March 19, 2008 08:22
Is there a 'best' uniform random number generator? LEAF Main CFD Forum 2 April 20, 2006 09:23


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