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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2014, 08:50
Default UDF: check variable for error
  #1
New Member
 
Join Date: Oct 2012
Posts: 8
Rep Power: 13
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

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


All times are GMT -4. The time now is 02:26.