CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

[HELP] Value range of a returned variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 5, 2012, 11:42
Default [HELP] Value range of a returned variable
  #1
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
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).
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

Reply


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 Off
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 22:49
emag beta feature: charge density charlotte CFX 4 March 22, 2011 10:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 05: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 11:57.