mellejgr
Materials
- Feb 4, 2019
- 8
Hi all,
I am working on a script that creates a field output in an odb containing beam elements. I want to do something really simple, to create an element output with the average of the top and bottom section point strain(average of section point 1 and 5)
To extract the 'bottom' data I try the following:
frame = step.frames[j]
field = frame.fieldOutputs['E'] E11=field.getScalarField(componentLabel="E11").getSubset(sectionPoint=odb.SectionCategory(name='SC',description='n/a').SectionPoint(number=1,description='Bottom'))
and similar for the 'top'.
The code runs without error, but does not create a field output. I think there must be an easier / better way to achieve this. Essentially, I would like to retrieve the element data from the middle of the elements (section point 3?) and then write to a new field.
Any ideas of how this can be achieved? Help would be much appreciated.
I am working on a script that creates a field output in an odb containing beam elements. I want to do something really simple, to create an element output with the average of the top and bottom section point strain(average of section point 1 and 5)
To extract the 'bottom' data I try the following:
frame = step.frames[j]
field = frame.fieldOutputs['E'] E11=field.getScalarField(componentLabel="E11").getSubset(sectionPoint=odb.SectionCategory(name='SC',description='n/a').SectionPoint(number=1,description='Bottom'))
and similar for the 'top'.
The code runs without error, but does not create a field output. I think there must be an easier / better way to achieve this. Essentially, I would like to retrieve the element data from the middle of the elements (section point 3?) and then write to a new field.
Any ideas of how this can be achieved? Help would be much appreciated.