Abaqus python get maximum absolute principal logarithmic strain
Abaqus python get maximum absolute principal logarithmic strain
(OP)
Hello all,
I want to write the xyreport for the place with the maximum absolute logarithmic strain at the last increment. Until now I have done this:
reportnameandpath2= 'E:/AbaqusWorkDir/Layer study/Reports/LEP-' + Modelname + '.txt'
However, what it does is that it writes for EVERY integration point of my body under question a report and appends it. After that I have to go and find it out. Of course this can take a lot of time as the body in which I'm looking might have many nodes, and the writeXYReport process is long.
Would you recommend any faster way as the writing process takes much time?
I want to write the xyreport for the place with the maximum absolute logarithmic strain at the last increment. Until now I have done this:
reportnameandpath2= 'E:/AbaqusWorkDir/Layer study/Reports/LEP-' + Modelname + '.txt'
CODE --> Python
session.viewports['Viewport: 1'].setValues(displayedObject=Modelname_odb_object)
keyarray2=session.odbData[Modelname_odb_path].historyVariables.keys()
LEP=[]
for x in keyarray2:
if (x.find('LEP')>-1):
LEP.append(x)
for i in range(1,len(LEP)+1):
session.XYDataFromHistory(name='LEP', odb=Modelname_odb_object, outputVariableName=LEP[i-1])
Modelname_xydata_object2 = session.xyDataObjects['LEP']
session.xyReportOptions.setValues(totals=OFF, minMax=OFF)
session.writeXYReport(fileName=reportnameandpath2, xyData=(Modelname_xydata_object2, ), appendMode=ON) However, what it does is that it writes for EVERY integration point of my body under question a report and appends it. After that I have to go and find it out. Of course this can take a lot of time as the body in which I'm looking might have many nodes, and the writeXYReport process is long.
Would you recommend any faster way as the writing process takes much time?





RE: Abaqus python get maximum absolute principal logarithmic strain
RE: Abaqus python get maximum absolute principal logarithmic strain
I haven't been exposed to the field output requests in Abaqus scripts.
RE: Abaqus python get maximum absolute principal logarithmic strain
With Python you should check the example in the Scripting Users Guide.
RE: Abaqus python get maximum absolute principal logarithmic strain
The problem I'm running into is that I get the following error:
"An assembly level elset named RUBBER-1.SET-1 does not exist in the output database 22a.odb"
When I go to the .odb I can see the abovementioned element set.
Any idea?
RE: Abaqus python get maximum absolute principal logarithmic strain
Use the /CAE CLI (Command Line Interface) with the tab key and the print command to navigate into the structure and look into container.