Rob
Ansys Employee

But it runs, so that's pointing at the UDF setting. 

Re the returned value. It's fine here, I've checked with two scalars on a test case. How's the mesh resolution in that cell zone? What values are set for scalar bc's?