[ANSYS, Inc. Logo] return to home search
next up previous contents index

A.3 C Data Types in ANSYS FLUENT

The UDF interpreter in ANSYS FLUENT supports the following standard C data types:


int integer number
long integer number of increased range
float floating point (real) number
double double-precision floating point (real) number
char single byte of memory, enough to hold a character
   

Note that in ANSYS FLUENT, real is a typedef that switches between float for single-precision arithmetic, and double for double-precision arithmetic. Since the interpreter makes this assignment automatically, it is good programming practice to use the real typedef when declaring all float and double data type variables in your UDF.


next up previous contents index Previous: A.2 Commenting Your C
Up: A. C Programming Basics
Next: A.4 Constants
Release 12.0 © ANSYS, Inc. 2009-01-14