Were you able to compile this code? Did you get any errors? Could you please share your errors? One note: I do not think you have defined defined 'y' in your code.
As suggested by other experts, you should strongly consider looking into the DEFINE_PROFILE example in the customization manual. I am attaching a screenshot of the DEFINE_PROFILE here. Please go through similar examples for better understanding.
I hope this helps.
Please Login to Report Topic
Please Login to Share Feed
New Post - Reply To: HOW TO CREATE UDF FOR VISCOSITY CHANGE WITH HEIGHT FROM CENTERLINE