CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   SMALL value (http://www.cfd-online.com/Forums/fluent/125806-small-value.html)

C.C October 31, 2013 11:58

SMALL value
 
Hello,

Anyone knows the value of the variable SMALL in fluent? I've written in my UDF #define SMALL 1.e-30; but when interpreted it just happeared a warming saying that SMALL already exists and it will be changed. I had looked at the fluent's manuals but I didn't find anything...Thank you.

sbaffini November 1, 2013 04:31

If you have a Linux installation you can go in:

/somefolder/ansys_inc/v*/fluent/fluent?/src

(where * and ? are relative to specific versions) and do:

grep -i -n "#define SMALL " *

which will tell you that SMALL is defined as 1e-10 in f_wall.h at the line 207 (in Fluent 14.5).

Why don't you just use mySMALL?

C.C November 1, 2013 06:07

Hello sbaffini,

Thank you! Your answer helps me. Probably I'll use a different SMALL value from that of fluent.
Best regards,

CC


All times are GMT -4. The time now is 21:37.