CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   return more than one value from a user function (http://www.cfd-online.com/Forums/cfx/26120-return-more-than-one-value-user-function.html)

Benny July 18, 2008 11:00

return more than one value from a user function
 
Hello,

I've got a question concerning the user functions. I want to return three values from my user function and use them in my sessionfile. With one return value, it works great, but when I want to return more values there will be faults.

my user function factor.F: ... DO ILOC = 1,NLOC

RET(ILOC,1) = velfactor

RET(ILOC,1) = sinangular

RET(ILOC,1) = cosangular END DO ... my sessionfile: ... LIBRARY: CEL:

EXPRESSIONS:

factor=UserFactor(1)

sinangular=UserFactor(2)

cosangular=UserFactor(3)

END END END .... Why does this not work properly with three values?

Thanks a lot for answering me.

Best Regards

Benny


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