Sri Harsha
Aerospace
- Jun 16, 2017
- 37
Hi,
I am trying to load my ODB File and then trying to retrieve Vonmisses stress data for a particular element
I basically have a set named 'DISP_END_SET'.I am getting the set Object from Assembly .
Here is my macro:
odb = session.openOdb(name= 'H:\\MiniThessis\\MaterialModelling\\Job-4.odb')
Stress = odb.steps['Step-1'].frames[1].fieldOutputs['S']
assembly = odb.rootAssembly
elsetName = 'DISP_END_SET'
elemset = assembly.elementSets[elsetName]
SetStresses = Stress.getSubset(region=elemset)
Stress1 = SetStresses.values[400].data
print(Stress1)
When,I am printing this Stress1,I am getting an array of 6 Values.But Should n't I get 8 values instead of 6, if my element comprises of 8 nodes?
Also,I want to retrieve VonMisses Stress data.In the macro above,I have no where defined that I want to get the data of "Von Misses".
Could you please let me know the changes to be made in my code.
Thanks in Advance
I am trying to load my ODB File and then trying to retrieve Vonmisses stress data for a particular element
I basically have a set named 'DISP_END_SET'.I am getting the set Object from Assembly .
Here is my macro:
odb = session.openOdb(name= 'H:\\MiniThessis\\MaterialModelling\\Job-4.odb')
Stress = odb.steps['Step-1'].frames[1].fieldOutputs['S']
assembly = odb.rootAssembly
elsetName = 'DISP_END_SET'
elemset = assembly.elementSets[elsetName]
SetStresses = Stress.getSubset(region=elemset)
Stress1 = SetStresses.values[400].data
print(Stress1)
When,I am printing this Stress1,I am getting an array of 6 Values.But Should n't I get 8 values instead of 6, if my element comprises of 8 nodes?
Also,I want to retrieve VonMisses Stress data.In the macro above,I have no where defined that I want to get the data of "Von Misses".
Could you please let me know the changes to be made in my code.
Thanks in Advance