CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

[HELP] Value range of a returned variable

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 5, 2012, 10:42
Default [HELP] Value range of a returned variable
Senior Member
flotus1's Avatar
Join Date: Jun 2012
Location: Germany
Posts: 1,134
Rep Power: 19
flotus1 will become famous soon enoughflotus1 will become famous soon enough
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:
...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?
flotus1 is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
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

All times are GMT -4. The time now is 10:20.