Extraction of deflection values
Extraction of deflection values
(OP)
I am trying to export my data from the .odb file for further processing. My approach looks something like this:
displacement = lastFrame.fieldOutputs['U'] #So far so good
fieldValues = displacement.values
But when I now tries to access the values as shown in the Scripting users manual
print fieldValues.data[0]
I get the error
AttributeError: 'FieldValueArray' object has no attribute 'data'
At this point I looked around a little and found that according to numpy fieldValues is an array with the shape (424L,). However when I tries to access these values the answer is always
print fieldValues[113]
openOdb(r'C:/.../outputdatabase.odb').steps['Step-1'].frames[1].fieldOutputs['U'].values[113]
Which is not for much help.
I am able to plot and probe the values using the gui, so I know they are there. So, can you help me accessing my deflection values?
I also tried recording a macro with the gui where I probed for the values I wanted, but the probe part did not get recorded in the macro.
My model is a three dimensonal model, while the approach I have used is from the users manual and is based off a 2d model, so that might be one cause for the errors.
Alternative solutions are also welcome, I don't need the deflection values at all points, but it would be an advantage.
displacement = lastFrame.fieldOutputs['U'] #So far so good
fieldValues = displacement.values
But when I now tries to access the values as shown in the Scripting users manual
print fieldValues.data[0]
I get the error
AttributeError: 'FieldValueArray' object has no attribute 'data'
At this point I looked around a little and found that according to numpy fieldValues is an array with the shape (424L,). However when I tries to access these values the answer is always
print fieldValues[113]
openOdb(r'C:/.../outputdatabase.odb').steps['Step-1'].frames[1].fieldOutputs['U'].values[113]
Which is not for much help.
I am able to plot and probe the values using the gui, so I know they are there. So, can you help me accessing my deflection values?
I also tried recording a macro with the gui where I probed for the values I wanted, but the probe part did not get recorded in the macro.
My model is a three dimensonal model, while the approach I have used is from the users manual and is based off a 2d model, so that might be one cause for the errors.
Alternative solutions are also welcome, I don't need the deflection values at all points, but it would be an advantage.





RE: Extraction of deflection values
print fieldValues
print fieldValues.data
RE: Extraction of deflection values
'FieldValue object' a lot of times. I'd guess once for every node but I haven't counted.
For print fieldValues.data abaqus returns
AttributeError: 'FieldValueArray' object has no attribute 'data' just like when I try to request a specific datapoint.
RE: Extraction of deflection values
The only problem is that this is node based while I've tried, and made stresses work, in an element based method. But it should be possible to achieve my goal (objective function for optimisation) nonetheless.
However, I'm still wondering what I'm doing wrong, but the problem is no longer imminent for me.
Thanks for your help!
RE: Extraction of deflection values
RE: Extraction of deflection values
I am mostly concerned with reading both stresses and displacements in a fast and reliable way. It seems to me like reading the different outputs are not as simple as changing the argument in fieldOutputs['S'] between 'S' and 'U' which I would have expected. Do you know what the reason is for this?
RE: Extraction of deflection values
RE: Extraction of deflection values
L