×
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 select element of the specified element number using python script in ABAQUS?

How to select element of the specified element number using python script in ABAQUS?

How to select element of the specified element number using python script in ABAQUS?

(OP)
I have to apply other material properties(elastic, plastic, etc.) on each element.

So I have been studying python script to try it.

To apply properties named 'Material-1' to element#1 of 'Part', i want to select element of the specified element number using python script.

For example, 'Material-1' will be assigned to element#1 of 'Part'
'Material-2' will be assigned to element#2 of 'Part'
'Material-3' will be assigned to element#3 of 'Part'
.
.
.

Because my model has many elements, i have to using python script.

But i don't know and can't find How to select element of the specified element number using python script.

I want to know example script.. it is possible. Please help me.

RE: How to select element of the specified element number using python script in ABAQUS?

I suggest you you make a small model (say a cube) with a few elements in CAE. Then do your assigning of elements with different materials all through CAE's GUI.

Finally save the file eg cube.cae.

Now go to where the CAE file is saved & you will see a file with the same name but a .jnl extension eg cube.jnl

Open that file with any text editor & you will see the list of Python commands that created your model. Just cut & paste the ones you need.

RE: How to select element of the specified element number using python script in ABAQUS?

First, there is a getFromLabel() option in the API.

But applying a different material to each element would require to have one material, section and section assignment for each element. So for 100k elements this would lead to 100k materials and solid sections in the .inp. This will not run well and I don't know if A/CAE can handle this amount of features.

You should think about varying the material properties with a field variable and then apply different values of the field variable to elements.

Using Analytical or Discrete Field with mapping for a Predefined Field definition in A/CAE is possible and way more efficient. With A/CAE v2018 field variables are supported in that process.

Or it can be done in the .inp at *Initial Conditions, Type=Field. But this definition is applied at nodes.

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


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close