Radial Displacements

Hi,

Im looking to obtain displacement magnitude of points on the edge of a cylinder relative to its centre

At the moment im taking pure displacement magnitude of each node using:

session.odbs[file].steps[step].frames[-1].fieldOutputs['U'].getSubset(region=node).values[0].magnitude 

However these values are positive, I want the nodes with a displacement towards the centre to be negative and outwards to be positive. I hope this makes sense.