how to display the contour of new fieldoutput calculated from SDVs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to display the contour of new fieldoutput calculated from SDVs

jayrain
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
Reply | Threaded
Open this post in threaded view
|

RE: how to display the contour of new fieldoutput calculated from SDVs

David Lindeman
Just a thought:  Can’t you calculate the summation of the integrals from within the user subroutines you’re using to calculate SDV1 through SDV10 (i.e., calculate an SDV11)?

Regards,

Dave Lindeman
Staff Scientist
Corporate Research Systems Laboratory
3M Center 235-3G-08
St. Paul, MN 55144
651-733-6383

From: [hidden email] <[hidden email]>
Sent: Monday, May 06, 2019 10:34 PM
To: [hidden email]
Subject: [EXTERNAL] [Abaqus] how to display the contour of new fieldoutput calculated from SDVs


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





________________________________



3M Notice: This communication is from an [EXTERNAL] sender.
If this email looks suspicious, do NOT click or open any links or attachments in the email. To report a suspicious email, click on the Report Phishing – PhishMe icon in the Outlook ribbon or forward this email using the report email as spam link in the text below.

Click here<https://spam.mmm.com/pem/pages/digestProcess/digestProcess.jsf?content=aedaaa864ecbae94d373903901e0147031e3194de307f6b5a7eaca3dc8d573a8c6c4ff5fb22097b592aab29dac82584f30f60c161a797f8d8d8a621478a2f25250f75f3a4b570e12125b08ef0dd8e5d1dbc7a045714a146255659761471276b9c37b570f20a98a734732948327931bff9384c931325a60dedcf6bd532647501c17d051a1b719785d> to report this email as spam





[Non-text portions of this message have been removed]