Jump to content
Sign in to follow this  
MSelim

How to count number of elements attached to each material?

Recommended Posts

Hi,

 

I have a model with multiple components that shares several materials/properties. I want to know the number of elements associated to each material/property within each component. For example, one component is made of 100 elements which are assigned to 22 different materials. I want to know how many elements within Mat1, Mat2, Mat3, etc. 

 

Right now I am doing this manually by isolating each material and counting displayed elements. But this takes long time and very tedious. Is it possible to automate this task by writing a TCL script or exporting a custom output file?

 

It would be very nice if I can get something like:

                        Mat1         Mat2        Mat3      Mat4      Matx

Component1    10              9               50           0            XX

Component1    15              55              4            22          YY

 

 

Thanks,

Mselim

Share this post


Link to post
Share on other sites
3 hours ago, Q.Nguyen-Dai said:

In your case, maybe it's better to organize one material for each component.

 

"Why complicate the life when you can simplify it?" :P

Thank you for your comment. 

 

Unfortunately, having different materials within each component is essential in my case. Believe me "Life is not that Simple" :)

How about if I have one component only with multiple materials. Do you think of a way or any exportable FE format that would list number of elements within each material?

 

Best

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...