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

return more than one value from a user function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2008, 10:00
Default return more than one value from a user function
  #1
Benny
Guest
 
Posts: n/a
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
  Reply With Quote

Reply


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
User Function defination aeroeng11 CFX 2 October 8, 2011 12:11
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
User Defined Function for convection coefficient ereiss FLUENT 1 July 8, 2004 16:10
User define flux function kethireddy FLUENT 0 July 5, 2004 04:53


All times are GMT -4. The time now is 05:47.