×
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 fetch elementSets

How to fetch elementSets

How to fetch elementSets

(OP)
Hello

first of all i must say that i am completely new to abaqus and esp. abaqus python scripting (and python, programming in general too)
the problem is as follows:
i have a very large model that has a number of element sets defined. I have to fetch their names and filter them by their name; the ones of my interes are named such: PART-1-1.ElSet_Coh_1_2 (where 1_2 are variable, rest is as specified).

I am able to get elset as a list (here is an example on a simpler tutorial model)
>>> print asm.instances['PART-1-1'].elementSets.keys()
['CENT', 'ETOP', 'FOAM', 'PMASS', 'UPPER']

but i have no idea of how to filter the list for only the matching ones. i have seen list filtering in diveintopython, but there is nothing like that. regexps maybe?

RE: How to fetch elementSets

(OP)
(i didn't find the edit button)
how do i extract elements (id) from those element sets?  

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