moose613
Mechanical
- Sep 7, 2014
- 3
Hi,
I am relatively new to using python with Abaqus, typically I will use the CAE GUI.
I am doing a large number of models, and need to use scripting to output E33 strain at unique nodes along a line.
In each model, there is a nodeset that contains the nodes along the line, and this nodeset is found in odb.rootAssembly.nodeSets['example_nodeset_name']
I would like the Z-coordinate and E33 strain written to an output file, for each node in the nodeset.
This is what I have so far:
strains = frame.fieldOutputs['E']
nodes = odb.rootAssembly.nodeSets['example_nodeset_name']
strain_at_nodes= strains.getSubset(region=nodes, position=NODAL)
outputFile = open('example_file_name.txt','w')
for k in range(len(strain_at_nodes)):
outputFile.write((strain_at_nodes[k]))
outputFile.close()
I know this doesnt work, but it should give an idea of what I am trying to achieve.
Any ideas as to how achieve my objectives would be greatly appreciated.
Cheers,
Moose
I am relatively new to using python with Abaqus, typically I will use the CAE GUI.
I am doing a large number of models, and need to use scripting to output E33 strain at unique nodes along a line.
In each model, there is a nodeset that contains the nodes along the line, and this nodeset is found in odb.rootAssembly.nodeSets['example_nodeset_name']
I would like the Z-coordinate and E33 strain written to an output file, for each node in the nodeset.
This is what I have so far:
strains = frame.fieldOutputs['E']
nodes = odb.rootAssembly.nodeSets['example_nodeset_name']
strain_at_nodes= strains.getSubset(region=nodes, position=NODAL)
outputFile = open('example_file_name.txt','w')
for k in range(len(strain_at_nodes)):
outputFile.write((strain_at_nodes[k]))
outputFile.close()
I know this doesnt work, but it should give an idea of what I am trying to achieve.
Any ideas as to how achieve my objectives would be greatly appreciated.
Cheers,
Moose