CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Creating an initial field with a random disturbance (https://www.cfd-online.com/Forums/openfoam-pre-processing/68755-creating-initial-field-random-disturbance.html)

mmahdinia September 30, 2009 17:45

Creating an initial field with a random disturbance
 
Hi everybody,

I am using the setFields utility to create an initial filed for a scalar. Is there a way to create a random disturbance with an specified amplitude (like 10 percent of the max value) in the initial scalar field mentioned above?

Your response would be of great value to me.

Thanks
Maani

gschaider September 30, 2009 19:30

Quote:

Originally Posted by mmahdinia (Post 231047)
Hi everybody,

I am using the setFields utility to create an initial filed for a scalar. Is there a way to create a random disturbance with an specified amplitude (like 10 percent of the max value) in the initial scalar field mentioned above?

Your response would be of great value to me.

Thanks
Maani

funkySetFields has a function name rand which SHOULD generate a random field


All times are GMT -4. The time now is 03:30.