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

UDF: check variable for error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2014, 09:50
Default UDF: check variable for error
  #1
New Member
 
Join Date: Oct 2012
Posts: 8
Rep Power: 14
icemesh is on a distinguished road
Hi,

one quick question regarding (compiled)UDF-programming:
Is there any way to check if a variable has a real value or if there's an error (divide by Zero etc)?
I'd like to check it like this:

if (variable == ERROR)
{Message ("variable: error %g\n", variable);}

What would I need to write instead of ERROR?

Thanks for your help!
icemesh 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
Fluent UDF urgent! Variable reaction rate natantyt Fluent UDF and Scheme Programming 8 October 17, 2021 04:35
Can you check if my attached UDF is correct?? gandesk FLUENT 8 March 6, 2017 14:57
Please check out my parallelized udf code aleisia Fluent UDF and Scheme Programming 0 June 10, 2011 17:16
Please check this UDF. Josh FLUENT 0 February 8, 2006 12:27
Check UDF stephen e FLUENT 1 April 15, 2004 10:51


All times are GMT -4. The time now is 18:40.