|
[Sponsors] |
January 13, 2004, 05:50 |
printing values from udf!!!
|
#1 |
Guest
Posts: n/a
|
how can i print the values returned by an udf in the fluent console window.....i want to check whether my udf is giving the correct values or not... hi shekhar
|
|
January 13, 2004, 10:16 |
Re: printing values from udf!!!
|
#2 |
Guest
Posts: n/a
|
you can write in your udf the printf statement as you do in C programming. it will print whatever values you want.
|
|
January 13, 2004, 12:49 |
Re: printing values from udf!!!
|
#3 |
Guest
Posts: n/a
|
You can use the command:
Message ("Text %g \n", var_name); where: - Text is a string. - %g is the placeholder where the value of the variable var_name will be written. %g is for real values, if you want to write an integer (int) value, use %d. - \n is the new line command. For example, if you want to write two variables i (int) and s (real), viewing something like this in the console: "The value of i is 9 and the value of s is 3.5." you have to write the command: Message("The value of i is %d and the value of s is %g\n",i,s); Hi ap |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to access only one phase in multiphase model by UDF | wersoe | Fluent UDF and Scheme Programming | 1 | January 4, 2017 08:11 |
Accessing node values using a UDF | Nico | FLUENT | 2 | December 20, 2007 03:50 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |
udf language + UDMI values | chary | FLUENT | 0 | October 5, 2007 07:58 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |