C functions can access and modify their arguments through pointers.
In ANSYS Fluent, thread and domain pointers are common arguments to
UDFs. When you specify these arguments in your UDF, the ANSYS Fluent solver
automatically passes data that the pointers are referencing to your
UDF so that your function can access solver data. (You do not have
to declare pointers that are passed as arguments to your UDF from
the solver.) For example, one of the arguments passed to a UDF that
specifies a custom profile (defined by the DEFINE_PROFILE macro) is the pointer to the thread applied to by the boundary condition.
The DEFINE_PROFILE function accesses the
data pointed to by the thread pointer.