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

random number generator in CFX

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 14, 2010, 16: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, 07:41
Default
  #2
Member
 
Robert
Join Date: Jun 2010
Posts: 86
Rep Power: 8
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, 19 views)
RobertB is offline   Reply With Quote

Old   June 15, 2010, 10: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

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
Random number generator ASaidZ FLUENT 3 February 3, 2014 21:06
courant number for transient flow on CFX ? amine CFX 13 August 20, 2013 19:02
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07: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 08:23


All times are GMT -4. The time now is 12:07.