×
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

python - how to create a node set

python - how to create a node set

python - how to create a node set

(OP)
Hi guys,
I'm reading the obd file to postprocess an analysis. The point is that, in my python routine, I would like to create a node set that I did not create in the preprocessing. In this way it is much easier when I extract the results from the fieldOutput. How is it possible?

thanks in advance for any advice.

bye bye

RE: python - how to create a node set

Hi,

To create new node set in odb file you can use constructor NodeSet(...) or NodeSetFromLabels(...).

Short example:
We want to create new set with nodes 5,10,12 into instance 'PART-1-1'. Pynthon syntax can be like this:

newSet=(5,10,12)
assembly=odbFile.rootAssembly
assembly.NodeSetFromLabels(name='myNewSet', nodeLabels=(('PART-1-1',newSet),))

Plase take a look into documentation for more details about the constructors.

Best Regards

RE: python - how to create a node set

(OP)
Hi akabarten
thanks for your help. With your advice I solved the issue.

Bye bye

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