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

Variable types

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 22, 2010, 05:53
Default Variable types
  #1
New Member
 
Ro'ee Orland
Join Date: Nov 2010
Posts: 18
Rep Power: 15
orland is on a distinguished road
The Fluent udf guide uses the data type "real" (real sum_diss=0.
this does not appear to be proper C syntax.
Does the Fluent compiler recognize it as a C type (instead of float, double, int, etc.)?
orland is offline   Reply With Quote

Old   November 22, 2010, 11:12
Default
  #2
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 15
KristianEtienne is on a distinguished road
Hi,

The datatype "real" is interpreted as a "float" when using the single precision solver and "double" when using the double precision solver.

Cheers!
KristianEtienne is offline   Reply With Quote

Old   November 22, 2010, 11:23
Default
  #3
New Member
 
Ro'ee Orland
Join Date: Nov 2010
Posts: 18
Rep Power: 15
orland is on a distinguished road
thanks a lot!!!
orland 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
How to limit a variable ash OpenFOAM Running, Solving & CFD 1 June 26, 2008 20:32
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 08:19
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


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