DrAmine
Ansys Employee

Transient Profile is another alternative instead of writing UDFs. The same is with Fluent Expressions. But now you are using UDF: that is okay.