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

UDF - Debugging techniques

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2007, 10:39
Default UDF - Debugging techniques
  #1
PK
Guest
 
Posts: n/a
Hi,

I would like to know which techniques to use to do a proper dubugging of my UDF (with unix or Windows) ; In my code I have several variables and during the execution of the case I got this kind of msg : "Error > (greater than ) : Invalid argument [2] : wrong type [not a number]" ; How to know which variable makes this prob in my UDF ?.

Thanks for any kind of help PK
  Reply With Quote

Old   February 6, 2007, 12:49
Default Re: UDF - Debugging techniques
  #2
Bogdan
Guest
 
Posts: n/a
this is due to divide by 0. try to put information on console window with the Message macro
  Reply With Quote

Old   February 6, 2007, 16:44
Default Re: UDF - Debugging techniques
  #3
kk
Guest
 
Posts: n/a
Yes. Message macro is a powerful tool to debug UDF when unexpected results pop up.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
On debugging a Womersley Profile UDF david FLUENT 3 August 7, 2017 03:49
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
help debugging Beam deflection UDF josik_1982 Fluent UDF and Scheme Programming 0 December 19, 2010 17:36
UDF debugging david FLUENT 1 August 11, 2005 12:43
Debugging 3d parabolic udf david FLUENT 4 June 13, 2005 14:20


All times are GMT -4. The time now is 03:53.