Rob
Forum Moderator

What errors are you seeing? Remove sections of code until it works, ie set any/all values as constants & test, then one equation at a time. 

Common mistake - did you assign UDM in the solver?