CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   I have question about 'VBM' (https://www.cfd-online.com/Forums/fluent-udf/95214-i-have-question-about-vbm.html)

Ukxang December 9, 2011 07:23

I have question about 'VBM'
 
There is 'fixnum_arg( List_Ref(l,j),1) , " "); in DEFINE_ON_DEMAND
also, I saw the 'flonum_arg' such as 'fixnum_arg'

I did find everywhere, but, I didn't solve that.

Please, help me TT

fox000002 December 9, 2011 08:47

Code:

FLUENT_EXPORT double
  flonum_arg    (Pointer x, char *msg);

#if WIN64
 FLUENT_EXPORT LONG64       
#else
 FLUENT_EXPORT long
#endif
  fixnum_arg    (Pointer x, char *msg);

flonum_arg return the double value of Pointer x as fixnum_arg return the integer value.

'msg' seems to be some error message.

I cannot find 'List_Ref'. It should be compatible with list-ref in Scheme.

Ukxang December 9, 2011 20:57

Um...
 
At first, Thank you for your favor.
Frankly speaking, I don't understand that.

Are "fixnum" & "flonum" merly functions in UDF?

If not, Do they need define function?

and, I don't understand function's role.

fox000002 December 10, 2011 02:25

The two functions are used to extract data of the Scheme object pointer x.

They are internal functions and rarely used in UDF code.


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