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

Add Random value to velocity

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2012, 09:41
Default Add Random value to velocity
  #1
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Dear Foamers,

How to add random value to velocity in the solver using LES? I just want to see larger eddies in a shorter time? It may relate to Random.H function. But how to link it to velocity? I have no experience of using Random.H.
zxj160 is offline   Reply With Quote

Old   May 3, 2012, 13:18
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by zxj160 View Post
Dear Foamers,

How to add random value to velocity in the solver using LES? I just want to see larger eddies in a shorter time? It may relate to Random.H function. But how to link it to velocity? I have no experience of using Random.H.
Have you had a look at the turbulentInlet-BC? That might just do what you need (quoted from the source code):
Code:
Description
    Generate a fluctuating inlet condition by adding a random component
    to a reference (mean) field.
    Input:
        referenceField
            Mean field.
        fluctuationScale
            RMS fluctuation, provided as the fraction of the mean field.
        alpha
            temporal correlation factor;
            the fraction of the new random component added to the previous
            time-step (defaults to 0.1).
gschaider is offline   Reply With Quote

Old   May 3, 2012, 15:50
Default
  #3
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Thanks. But my BC is cyclic. I want to add a perturbation component to velocity vector. I noticed that perturbU utility can be useful. But I do not know how to do that.
zxj160 is offline   Reply With Quote

Old   July 10, 2013, 16:21
Default
  #4
Member
 
Negin Nazarian
Join Date: Jan 2012
Location: San Diego
Posts: 61
Rep Power: 14
nenazarian is on a distinguished road
Hi Jian,

I was wondering if you were able to introduce the perturbation and how?.

I also have a LES simulation with periodic BC and I want to add random u,v,w fluctuations (having rms values equal to friction velocity) to trigger turbulence and I dont know how to do it in Fluent.

I would appreciate your help.
Cheers,
Negin
nenazarian is offline   Reply With Quote

Old   July 11, 2013, 11:29
Default
  #5
Senior Member
 
Jian Zhong
Join Date: Feb 2012
Location: Birmingham
Posts: 109
Rep Power: 14
zxj160 is on a distinguished road
Dear Negin,

I am sorry that I have not make it. I just use pressure gradient to drive my flow (just as the ChannelFoam tutorial) and select LES model in the turbulence directory. Also, I am not familiar with Fluent.

But, you may try......
U = U+Random()*FACTOR

My best regards,
Jian
zxj160 is offline   Reply With Quote

Reply

Tags
random, velocity

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF error - parabolic velocity profile - 3D turbine Zaqie Fluent UDF and Scheme Programming 9 June 25, 2016 19:08
maintaining a logarithmic velocity distribution Morten Andersen CFX 1 January 8, 2007 11:37
is there any method give node based velocity BC? daniel FLUENT 2 July 18, 2006 21:21
Velocity Under-relaxation in SIMPLE type methods Matt U. Main CFD Forum 6 July 4, 2005 05:29
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


All times are GMT -4. The time now is 00:40.