Instructive example concerning function RainFlow() needed

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

Hi

I would like to use the function RainFlow() in HyperMath 12.0.
Help (F1) describes the syntax as:
result = RainFlow(yvect, numbins, minrange, maxrange, output, hysteresis)

The HyperMath editor in the files-window, however, shows the syntax as
Rainflow (vector, vector, scalar)

I always get an error
30: error in function 'RainFlow'.
when trying to use this function in a HyperMath script.

Has anyone a small instructive example available (e.g. a rainflow counting applied to a vector containing values of a sine function)?
Thanks in advance for any support.

Best regards
Matthias Leiner

Tagged:

Answers

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited August 2014

    Hi Matthias,

    I see that Rainflow - Reduces the number of vector points from the test data without losing the damage, magnitude, and/or effect of the test data.

    You can use the rainflow function in the exact same way in HyperGraph as well, attached is a video on its application in HyperGraph, rename the image from jpg to wmv.
    You can also obtain debug information and figure out where you need to modify your input.

    see HyperWorks Desktop Reference Guides Overview > Templex and Math Reference Guide > Math Reference > Functions and Operators > List of External Functions > rainflow

    Perhaps you can provide us the input information, your initial curve (vector) data etc and we may be able to help better.

     

     

    Unable to find an attachment - read this blog

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited August 2014

    Hi Rahul,

    Thanks a lot. Your video helped me to fix my problems.

    Best regards,
    Matthias Leiner