Sri Harsha
Aerospace
- Jun 16, 2017
- 37
Hi,
I wrote the following function
def RetrieveSetStressValues1(odb1,lastFrame):
SetList = []
SetList = RetrieveAllSetNames()
assembly = odb1.rootAssembly
Stress = odb1.steps['Step-1'].frames[1].fieldOutputs['S']
for SetIdx in range(len(SetList)):
elemset = assembly.elementSets[SetList[SetIdx]]
StressSet = Stress.getSubset(region=elemset)
maximumStress = 0
for Idx in range(len(StressSet.values)):
StressValue = StressSet.values[Idx].mises
if (StressValue > maximumStress): //Line no. 10
maximumStress = StressValue
When I tried to run this,I am getting an error saying: "Can only compare to an ABAQUS Object"
at Line.10 " if (StressValue > maximumStress): "; I am comparing two numerical values,but i still don't understand,why I am getting this error.
Could you please let me know regarding this
Thanks in Advance!
I wrote the following function
def RetrieveSetStressValues1(odb1,lastFrame):
SetList = []
SetList = RetrieveAllSetNames()
assembly = odb1.rootAssembly
Stress = odb1.steps['Step-1'].frames[1].fieldOutputs['S']
for SetIdx in range(len(SetList)):
elemset = assembly.elementSets[SetList[SetIdx]]
StressSet = Stress.getSubset(region=elemset)
maximumStress = 0
for Idx in range(len(StressSet.values)):
StressValue = StressSet.values[Idx].mises
if (StressValue > maximumStress): //Line no. 10
maximumStress = StressValue
When I tried to run this,I am getting an error saying: "Can only compare to an ABAQUS Object"
at Line.10 " if (StressValue > maximumStress): "; I am comparing two numerical values,but i still don't understand,why I am getting this error.
Could you please let me know regarding this
Thanks in Advance!