Rob
Ansys Employee
You may be better off using an expression as that can take the film thickness at a position as a Report. There will be an equivalent UDF macro, so check the manual. Expressions are a newer feature in Fluent (based on CFX technology) as a means to avoid needing UDFs for "simple" stuff.