13 from abaqusConstants
import *
15 session.Viewport(name=
'Viewport: 1', origin=(0.0, 0.0), width=243.416656494141,
16 height=165.277770996094)
17 session.viewports[
'Viewport: 1'].makeCurrent()
18 session.viewports[
'Viewport: 1'].maximize()
19 from viewerModules
import *
20 from driverUtils
import executeOnCaeStartup
23 odb_file = os.path.join(os.getcwd(),
'cube_umat.odb')
25 o1 = session.openOdb(name=odb_file)
26 session.viewports[
'Viewport: 1'].setValues(displayedObject=o1)
35 session.viewports[
'Viewport: 1'].odbDisplay.display.setValues(plotState=(
37 odb = session.odbs[odb_file]
38 session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=((
'U', 39 NODAL, ((COMPONENT, 'U2'), )), (
'S', INTEGRATION_POINT, ((INVARIANT,
40 'Max. Principal'), )), (
'SDV_DET', INTEGRATION_POINT), ), nodePick=((
41 'PART-1-1', 1, (
'[#1 ]', )), ), )
42 xy1 = session.xyDataObjects[
'U:U2 PI: PART-1-1 N: 1']
43 xy2 = session.xyDataObjects[
'S:Max Principal (Avg: 75%) PI: PART-1-1 N: 1']
44 xy3 = combine(xy1+1, xy2)
46 sourceDescription=
'combine ( "U:U2 PI: PART-1-1 N: 1"+1,"S:Max Principal (Avg: 75%) PI: PART-1-1 N: 1" )')
48 session.xyDataObjects.changeKey(tmpName,
'Displacement vs SMax_Principal')
49 x0 = session.xyDataObjects[
'Displacement vs SMax_Principal']
50 session.writeXYReport(fileName=
'output.txt', xyData=(x0, ))