The UDF interpreter in Ansys Fluent supports the following standard C data types:
|
integer number |
|
integer number of increased range |
|
floating point (real) number |
|
double-precision floating point (real) number |
|
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.