Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

MoonSooKang

Civil/Environmental
Jun 28, 2018
1
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.
 
Replies continue below

Recommended for you

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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor