return in udf
What is the main function of 'return' in udf? Since I had gone through the guide and I found that certain udf with 'return' while some did not. What the different of udf with 'return' and udf with no 'return'?
|
Quote:
if your macro is void-type, it wouldn't return any value and it just does some settings, but if it isn't void-type, it return a value and needs return command. Bests, |
Quote:
|
Hi,
Your reasoning is correct; In DEFINE_SOURCE, you return the value of the source directly (through the "return" command), while in DEFINE_VR_RATE you update the specific reaction rate pointer (*rr_t) which is predefined by FLUENT. Cheers! |
Quote:
Code:
return source Bests, |
Quote:
|
All times are GMT -4. The time now is 09:43. |