|July 5, 2012, 10:42||
[HELP] Value range of a returned variable
Join Date: Jun 2012
Posts: 1,266Rep Power: 22
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:
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).
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?
|Thread||Thread Starter||Forum||Replies||Last Post|
|OpenFoam-1.6-ext Allwmake compilation error - one last barrier||Pat84||OpenFOAM Installation||15||July 25, 2012 21:49|
|emag beta feature: charge density||charlotte||CFX||4||March 22, 2011 10:14|
|error in COMSOL:'ERROR:6164 Duplicate Variable'||bhushas||Main CFD Forum||1||May 30, 2008 04:35|
|Env variable not set||gruber2||OpenFOAM Installation||5||December 30, 2005 05:27|
|Replace periodic by inlet-outlet pair||lego||CFX||3||November 5, 2002 21:09|