🎉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

Elemend ID of max failure Index

User: "Felix Lentz_21924"
Altair Community Member
Updated by Felix Lentz_21924

Hi,

I'm performing a stochastical analysis and want to retrive the element id of the element with the max composite failure index.
Is there a possibility to define this Element ID as a response. The aim is to check, if the changes in material properties change the position of failure.

 

regards,
Felix

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Adriano_Koga"
    Altair Employee
    Accepted Answer
    Updated by Adriano_Koga

    if you're reading a vector, you could use indexofmax (or something like this) to retrieve which index gives you the maximum value.

    Remember that HyperStudy works based on 0 index, so that the first index is 0, not 1.

     

    So if you have a big vector with FI for each element, let's say "ds_1"

    ds_1 = {0.4 0.2 0.0 1.0 0.4}

    Your response could be:

    r_1 = indexofmax(ds_1)

    will give you 3 as response. This is not the element ID, but the index of the i'th element in your list.

    If your elements are renumbered starting from 1 and with no gaps, then your index would be equivalent to (ID-1)

    User: "Felix Lentz_21924"
    Altair Community Member
    OP
    Updated by Felix Lentz_21924

    Hi Adriano,


    thanks for your quick response. The solution with indexofmax makes it possible to check if the failure occures at the same spot, that helps a lot. Because every Element has several composite layers which could fail it is not easy to determine the element id because I have a matrix of Element_id x Composite_layer and for other reasons it is not possible to have continuisly numbered elements.