how to define a function that outputs vector instead of scalar?
Hi all,
Is it possible for us to define a function in UDF that outputs a vector (array) instead of a scalar? I could not find an example. Thanks, Ali |
typically, the DEFINE macro you use specifies the required output of the function. This may be a vector - for example, when using the DEFINE_VR_RATE macro the return needs to be a vector. It depends on the sort of data FLUENT is expecting.
Of course, within the UDF itself, you can use all the arrays you want. |
Thank you Cees for your reply.
Can I use DEFINE macro to define a vector field? For example whenever we want to define a scalar function, we use somthing like this: real func1(cell_t c, Threat *t){ . . . } Is there something similar to this for defining vector functions? Thanks, Ali |
|
All times are GMT -4. The time now is 01:34. |