Abaqus - How to extract transversal displacements "U2" for a predefined node sets in numbers?


Dear all, 

I am trying to extract displacements for a pre-defined node sets which consists of 16 nodes. I use the following code which gives me a matrix with 3 columns for each frame. I think for each frame i should get 16 columns at each (x or y or z) direction.

Any ideas?

# ------------ code ---------------------------

modeshapes = np.matrix(np.zeros((100,3)), dtype = float)
for i in range(10):
variable = odb.steps['eigen_frequency'].frames[i].fieldOutputs['U'].getSubset(region = odb.rootAssembly.nodeSets['TRANSVERSAL']).values[1].data
modeshapes[i,:] = variable

# ----------------------------------------

Abaqus ​​​​​​​