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

Variable types

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 22, 2010, 06:53
Default Variable types
  #1
New Member
 
Ro'ee Orland
Join Date: Nov 2010
Posts: 18
Rep Power: 6
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, 12:12
Default
  #2
New Member
 
Kristian Etienne Einarsrud
Join Date: Oct 2010
Location: Trondheim
Posts: 29
Rep Power: 6
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, 12:23
Default
  #3
New Member
 
Ro'ee Orland
Join Date: Nov 2010
Posts: 18
Rep Power: 6
orland is on a distinguished road
thanks a lot!!!
orland is offline   Reply With Quote

Reply

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
How to limit a variable ash OpenFOAM Running, Solving & CFD 1 June 26, 2008 20:32
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Problems with additional variable Krishna Premi CFX 1 October 29, 2007 09:19
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 23:16.