CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   Random Boundary Condition (https://www.cfd-online.com/Forums/cfx/119657-random-boundary-condition.html)

RichardM June 21, 2013 04:38

Random Boundary Condition
 
Hi CFX-Users,

I'm trying to use a random boundary condition for a wall - e.g. thermal fluctuation. I want to insert a mean surface temperatur with a statistical variation within a defined range of values for every single volume element at the wall. I only need a random number in the range of [0;1]. But I can not find any function in CFX-Pre to do this. Normally I use the Expressions.
Do I have to program it in Fortran?

Thanks for your help.
Richard

ghorrocks June 21, 2013 07:59

There is no CEL expression I know of for random numbers. You could either generate a chain of random numbers and get them into CFX as an interpolation function, of you could use a fortran user subroutine.


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