Any other models? Ie where did the current density come from, any porous media etc. Not sure how to fix without a lot more digging: we (staff) are not able to do that via the Community either.
Usual trick is to turn stuff off and test on a simple model. So, try your UDF out on a pipe or similar geometry. Then make it more complicated.