abaqus fieldoutput by python
abaqus fieldoutput by python
(OP)
Hi to everyone and thanks for your help in advance.
I ran a simulation in Abaqus and i need to get the nodal forces and the nodal coordinates to use it for my weld model. My model has a large number of elements, and so for this purpose, i tried to use a python script, but i have encountered some problems.
To obtain what i'm looking for, i found that in abaqus documentations and i can write:
data1 = myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[...].data
The problem is that i don't know what i must put in the brackets after 'values'.
If i put the number that identifies the node or the element, the data that return are uncorrect,
because they are different from the values i can see in the in the .odb file of my simulation.
If someone is able to help me please, i will very grateful.
Lorenzo
I ran a simulation in Abaqus and i need to get the nodal forces and the nodal coordinates to use it for my weld model. My model has a large number of elements, and so for this purpose, i tried to use a python script, but i have encountered some problems.
To obtain what i'm looking for, i found that in abaqus documentations and i can write:
data1 = myOdb.steps['Step-1'].frames[6].fieldOutputs['fieldoutput1'].values[...].data
The problem is that i don't know what i must put in the brackets after 'values'.
If i put the number that identifies the node or the element, the data that return are uncorrect,
because they are different from the values i can see in the in the .odb file of my simulation.
If someone is able to help me please, i will very grateful.
Lorenzo





RE: abaqus fieldoutput by python
Values object is similar to python list. In square bracket you need to put digit.
The digit is not a node/element number as you expected. This is just address in the list.
The easiest way to control object content is to use print statement:
CODE
Then you will see methods you can use with object like "data", "nodeLabel, "elementLabel" and many others.
So if you want check what element is under address 10 just use:
CODE
CODE
Best,
Bartosz