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.