CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

I have question about 'VBM'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 9, 2011, 07:23
Default I have question about 'VBM'
  #1
New Member
 
Sang-wook Lee
Join Date: Dec 2011
Posts: 4
Rep Power: 14
Ukxang is on a distinguished road
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
Ukxang is offline   Reply With Quote

Old   December 9, 2011, 08:47
Default
  #2
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
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.
fox000002 is offline   Reply With Quote

Old   December 9, 2011, 20:57
Smile Um...
  #3
New Member
 
Sang-wook Lee
Join Date: Dec 2011
Posts: 4
Rep Power: 14
Ukxang is on a distinguished road
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.
Ukxang is offline   Reply With Quote

Old   December 10, 2011, 02:25
Default
  #4
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
The two functions are used to extract data of the Scheme object pointer x.

They are internal functions and rarely used in UDF code.

Last edited by fox000002; December 11, 2011 at 00:18.
fox000002 is offline   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
question about uds tanven FLUENT 2 July 5, 2015 11:22
Unanswered question niklas OpenFOAM 2 July 31, 2013 16:03
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37
CHANNEL FLOW: a question and a request Carlos Main CFD Forum 4 August 23, 2002 05:55
question K.L.Huang Siemens 1 March 29, 2000 04:57


All times are GMT -4. The time now is 10:52.