Reorder Measures acording to ascending X

Rahul_P1
Rahul_P1
Altair Employee
edited October 2020 in Community Q&A

Here is another quick help, which might be interesting.

I came across that my measures in Hyperview have not always been in the 'right' order. Thus relating to abnormal curves in Hypergraph.

Is there a way to quickly Sort my Measures in ascending X Direction?

2ay28-ScreenShot060.jpg

Answers

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited September 2014

    Manuel,

    Looks like the x value of this entity changes in that irregular manner, its value does not change increasingly.

    If it is just a few values you can cut,> insert and paste it in the right location using the buttons on the right of the value table.

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited September 2014

    No I have to clarify.

    This are measures I pic and that are several nodes which are not selected in increasing x direction.

    It is a single curve of more Y-Displacement Values on Entity X. And I want to sort them that I have a line.

    The buttons dont help at all if I have like a thousand nodes.

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited September 2014

    Manuel,

    So you have several nodes and each node has a y displacement value plotted with respect to the nodal x coordinate, sorted in ascending x vector,

    You can easily sort the curves to achieve your requirement

    Once you have the measure curve
    Go to define curve,
    click on add to add a curve
    change the radio button to math
    and use the sort function

    assume your source curve is p1w1c1.
    sort(0,p1w1c1.x)
    as x and
    sort(0,p1w1c1.x,p1w1c1.y)
    as y.

    You can copy the curve using shift and clicking on the curve, so you do not need to type in p1w1c1 etc this will be automatically entered if you use shift and click on the curve, if you use control + shift you will get the other vector i.e. in the y field if you control + shift and click on the curve you will get the x value

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited September 2014

    In pictures 

    the function
    98kp3-3.PNG
    before sorting
    m4pp1-1.PNG
    after sorting
    qx113-2.PNG

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited September 2014

    yep, that works icon_smile.gif

    Thanks again