×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How to read Internal Element sets by using python scripting?

How to read Internal Element sets by using python scripting?

How to read Internal Element sets by using python scripting?

(OP)
Dear All,

I would like to read an internal element set by using openODB(...) in ABAQUS script language.
Does anyone know how to do it?

Based on ABAQUS documentation,
'readInternalSets': A Boolean specifying whether the file will permit access to sets specified as Internal on the database. The initial value is False, indicating that internal sets will not be read.

My inp file si as follows:
*Elset, elset=_TS_S3, internal
235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250
251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 510
*Elset, elset=_TS_S2, internal
277, 334, 343, 484, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501
502, 567, 694
*Elset, elset=_TS_S1, internal
344, 478
*Elset, elset=_TS_S4, internal
346, 485, 486, 487, 488, 489, 503, 504, 505, 506, 507, 508, 509, 529, 530, 550
610, 616

All these elset are auto-generated when I set the surface on top-surface of model.


My code is as follows:

odbname='odbFilepath'
odb = openOdb(path = odbname, readOnly = False, readInternalSets = True)

# Substract elements' labels on the topsurface of model.
myInstance=odb.rootAssembly.instances['PART-1-1']
sets=myInstance.elementSets
...

How to read internal set from Odb file? I can see the results from internal set in GUI module.

Many thanks.

RE: How to read Internal Element sets by using python scripting?

Hi Geokim,

Probably it's already too late but I was trying to do the same and here is the solution I found. It worked for me!

import odbAccess
odb=odbAccess.openOdb(path=myPath,readInternalSets=True)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources