Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading odb file in Abaqus 6.13 (python)

Status
Not open for further replies.

pablete

Mechanical
Mar 18, 2014
1
I am trying to run the same scripts in Abaqus 6.13 as I used to run in 6.12. The simulations are OK, but when I try to extract the coordinates of a node set (T_N), it gives only some of them. It gets only about one fourth of the nodes contained in T_N. The same code runs fine in 6.12. Has anyone found a similar problem?

The code:

def myNodesReader(odb):

step = odb.steps['Hit']
timeFrameInitial =step.frames[0]
try:
displacementInitial = timeFrameInitial.fieldOutputs['COORD']
except:
err ="The analysis must include a field output request for variable COORD."
print err
sys.exit(1)

try:
targetNodesInitial = odb.rootAssembly.nodeSets['T_N']
targetDisplacementInitial = displacementInitial.getSubset(region=targetNodesInitial)
except:
err ="T_N must be defined"
print err
sys.exit(1)

outFile = open('InitialNodes_TN.txt', 'w')
print("Nodes from Abaqus stored in memory")

format = '%6i, %14.7e, %14.7e, %14.7e\n'
for value in targetDisplacementInitial.values:
outFile.write(format % ((value.nodeLabel,) + tuple(value.data)))
outFile.close()

If I try to get all the nodes instead of only the nodes from the set T_N, it works fine. I have attached a folder with 4 pictures that explain better the difference between both results.

Thank you everyone!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor