StefCon
Mechanical
- Mar 6, 2013
- 155
Hi,
I am working on a script that creates a field output in an odb.
The odb contains an element set with shell elements (5 section points, S4).
The code I am using to get the scalar field looks like this:
stress = frame.fieldOutputs['S']
inPlaneMaxPrincipal = stress.getScalarField(invariant=MAX_INPLANE_PRINCIPAL).getSubset(region=elSet, position=CENTROID)
inPlaneShear = stress.getScalarField(componentLabel='S12').getSubset(region=elSet, position=CENTROID)
I create the field output like this:
frame.FieldOutput(name='myField '+name, description=fieldDescription, field=calculated)
The code works but I would like to retrieve the element data from the middle of the elements (section point 3?) and then write my new field to all section points.
My intent is to get the average MAX_INPLANE_PRINCIPAL stress and the output shall look the same regarless of top/bottom/top&bottom/envelope setting in viewer.
Use of SSAVG 1-6 does not seem possible as field output. Otherwise that would be a great way to solve it.
Any ideas of how this can be achieved? Help would be much appreciated.
//S
I am working on a script that creates a field output in an odb.
The odb contains an element set with shell elements (5 section points, S4).
The code I am using to get the scalar field looks like this:
stress = frame.fieldOutputs['S']
inPlaneMaxPrincipal = stress.getScalarField(invariant=MAX_INPLANE_PRINCIPAL).getSubset(region=elSet, position=CENTROID)
inPlaneShear = stress.getScalarField(componentLabel='S12').getSubset(region=elSet, position=CENTROID)
I create the field output like this:
frame.FieldOutput(name='myField '+name, description=fieldDescription, field=calculated)
The code works but I would like to retrieve the element data from the middle of the elements (section point 3?) and then write my new field to all section points.
My intent is to get the average MAX_INPLANE_PRINCIPAL stress and the output shall look the same regarless of top/bottom/top&bottom/envelope setting in viewer.
Use of SSAVG 1-6 does not seem possible as field output. Otherwise that would be a great way to solve it.
Any ideas of how this can be achieved? Help would be much appreciated.
//S