DrAmine
Ansys Employee

Help your self by using debugging messages. You have started with writing into UDMI's that if fine. You need to use the cell pointer and cell thread pointer passed by Fluent. Actually you don't need an UDF as you can use the polynomial option there.