🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to count number of elements attached to each material?

User: "MSelim"
Altair Community Member
Updated by MSelim

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

Find more posts tagged with

Sort by:
1 - 4 of 41
    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

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

     

    'Why complicate the life when you can simplify it?' :P/emoticons/default_tongue.png' srcset='/emoticons/tongue@2x.png 2x' title=':P' width='20' />

    User: "MSelim"
    Altair Community Member
    OP
    Updated by MSelim

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

     

    'Why complicate the life when you can simplify it?' :P/emoticons/default_tongue.png' srcset='/emoticons/tongue@2x.png 2x' title=':P' width='20' />

    Thank you for your comment. 

     

    Unfortunately, having different materials within each component is essential in my case. Believe me 'Life is not that Simple' :)/emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />

    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

    User: "QuyNguyenDai"
    Altair Community Member
    Updated by QuyNguyenDai

    If you assign MAT to each element (not by component), you have to read all elements, one by one, to count.

    Maybe share your model?

    User: "tinh"
    Altair Community Member
    Updated by tinh

    You assigned properties directly to elements, didn't you?

     

    If you did that, your life is simple, believe me.