CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   [HELP] Value range of a returned variable (http://www.cfd-online.com/Forums/fluent-udf/104262-help-value-range-returned-variable.html)

flotus1 July 5, 2012 10:42

[HELP] Value range of a returned variable
 
Hi there, It's me again.

Since I am still simulating a laser fusion melting process, I ran into a completely new problem.

The heat sources I use for my calculations are computed using a UDF.
It looks like this:
Code:

DEFINE_SOURCE(sourceterm,c,t,dS,eqn)
...lots of code...
return source;

Now here is the thing: the returned variable ("source" in this case) has a limited range. Apparently it seems to be restricted to the range of a signed long integer -2,147,483,648 to 2,147,483,647). :eek:
All variables were initialized as "double" and I am running the case in double precision, so the problem is definitely the range of the returned variable.

Now the intensities of a laser beam are very high, so I need higher values of the returned variable.

What can I do?


All times are GMT -4. The time now is 05:46.