| Newsgroups |
gmane.comp.mathematics.abaqus.user |
| Message-ID |
<CAMmegrMgR0LDR139uE4YGUQjLao-LfLUKaGXvTB7GhWgx6k6VQ@mail.gmail.com> |
Hi, my odb file contains SDV1-SDV10 solution dependent variables. I need to
display the contour of
new fieldoutput SS which is the sum of the integration of SDVs. The new
fieldoutput variable defination and writting
into odb file seems work well without errors.
>>SSfield=frame1.FieldOutput(name='SS',description='tesiontwinshear',type=SCALAR)
>>SSfield.addData(position=INTEGRATION_POINT, instance=p,
labels=CORESETLABELLIST, data=SS)
Then excute the following commands:
>>myViewport.setValues(displayedObject=myodb)
>>myViewport.odbDisplay.setDeformedVariable('U')
>>mystep.setDefaultField(SSfield)
>>session.viewports['Superposition example'].odbDisplay.setPrimaryVariable(
variableLabel='SS', outputPosition=INTEGRATION_POINT, )
Only one error information comes out "VisError: Primary Variable not
available: 'SS' at integration points."
Then I check these variables in commands window. The structure of SS is the
same as SDV2. But 'setprimaryvariable' does not
work.
>>> print frame1.fieldOutputs['SDV2'].values[2]
({'baseElementType': 'C3D8', 'conjugateData': None, 'conjugateDataDouble':
'unknown', 'data': 0.0, 'dataDouble': 'unknown',
'elementLabel': 1, 'face': None, 'instance': 'OdbInstance object',
'integrationPoint': 3, 'inv3': None, 'localCoordSystem': None,
'localCoordSystemDouble': 'unknown',
'magnitude': None, 'maxInPlanePrincipal': None, 'maxPrincipal': None,
'midPrincipal': None, 'minInPlanePrincipal': None, 'minPrincipal': None,
'mises': None, 'nodeLabel': None, 'outOfPlanePrincipal': None, 'position':
INTEGRATION_POINT,
'precision': SINGLE_PRECISION, 'press': None, 'sectionPoint': None,
'tresca': None, 'type': SCALAR})
>>> SSfield
openOdb(r'/media/zu/D/Job-ST.odb').steps['Step-2'].frames[1].fieldOutputs['']
>>print SSfield
({'baseElementTypes': ('C3D8',), 'bulkDataBlocks': ' object',
'componentLabels': (), 'description': 'tesiontwinshear', 'isComplex': OFF,
'locations': 'FieldLocationArray object', 'name': 'SS', 'type': SCALAR,
'validInvariants': (), 'values': 'FieldValueArray object'})
>>> print frame1.fieldOutputs['SS'].values[2]
({'baseElementType': 'C3D8', 'conjugateData': None, 'conjugateDataDouble':
'unknown', 'data': 0.0, 'dataDouble': 'unknown', 'elementLabel': 1, 'face':
None, 'instance': 'OdbInstance object', 'integrationPoint': 3, 'inv3':
None, 'localCoordSystem': None, 'localCoordSystemDouble': 'unknown',
'magnitude': None, 'maxInPlanePrincipal': None, 'maxPrincipal': None,
'midPrincipal': None, 'minInPlanePrincipal': None, 'minPrincipal': None,
'mises': None, 'nodeLabel': None, 'outOfPlanePrincipal': None, 'position':
INTEGRATION_POINT, 'precision': SINGLE_PRECISION, 'press': None,
'sectionPoint': None, 'tresca': None, 'type': SCALAR})
>>> frame1
openOdb(r'/media/zu/D/Job-ST.odb').steps['Step-2'].frames[1]
How to display the contour in visualiztion window?
————————————
Best regards,
X. Zhu