As mentioned in the beginning of this thread: As Ansys Employee I do not debug User Defined Functions.
I am not able to see any issues with your UDF, though I prefer accessing the phase domain being solved but that should even work in your case. Your UDF should work and as mine is working and looking very much the same. My testing case is 2D with some more cells than your 1D looking case.
Please Login to Report Topic
Please Login to Share Feed
New Post - Reply To: Error in UDF to get normal distance of reconstructed interface from cell center
You are navigating away from the AIS Discovery experience