We, Ansys Employees, do not look into the attachments. If you are now using a recent release you might benefit from using the simple Fluent Expressions to prescribe the profile you want and to avoid writing UDF's. Alternative is to use directly the profile you have after doing some formatting as boundary profile. Please have a look into the documentation and search for "Profile" in the User's Guide,