Sei sulla pagina 1di 4

Rainflow counting 15/08/2015
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums


User Name Password Log in Help Register

Remember Me?
Keeping sensitive information private is paramount to document security. Prizm Content Connect comes with redaction and watermarking capabilities and 256-bit AES
encryption to ensure your user's information stays secure.
Sponsored by Accusoft

Forum What's New?

New Posts FAQ Calendar Forum Actions Quick Links Advanced Search

Forum Visual C++ & C++ Programming Visual C++ Programming

Rainflow counting
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to
register or Login before you can post: click the register link above to proceed. To start view ing
messages, select the forum that you w ant to visit from the selection below .

Results 1 to 5 of 5

Thread: Rainflow counting


Thread Tools Display

September 14th, 2004, 05:04 AM #1

Junior Member
Join Date: Sep 2004
Posts: 4

Tweet 0
Rainflow counting
I have a problem in writing cpp for the below rules in counting peak and valley
values from a graph.

Rainflow counting is a method in determine the random stress experienced on a

structure. From a random flow chart, stress vs time, I need to count the
stresses vs the number of cycle of that stress.
Rules for Rainflow counting
let X denote range under consideration;
Y, previous range adjacent to X;
S, starting point in the history
1- Read next peak or valley. If out of data, go to step 6.
2- If there are less than 3 points, go to Step 1. Form ranges X and Y using the Click Here to Expand Forum to Full Width
three most recent peaks and valleys that have not been discarded. 1/4
Rainflow counting 15/08/2015

3- Compare the absolute values of ranges X and Y. Share 0

a- If X<Y, go to step 1.
b- If X>/=Y, go to step 4.
4- If range Y contains the starting point S, go to step 5, otherwise, count
range Y as one cycle; discard the peak and valley of Y; and go to step 2.
5- Count range Y as one-half cycle; discard the first point (peak or valley) in
range Y; move the starting point to the second point in range Y; and go to step
6- Counting each range that has not been previously counting as one-half cycle

Hope someone could help...


Reply With Quote

September 14th, 2004, 05:21 AM #2

Power Poster
Join Date: Sep 2002
Location: 14 39'19.65"N /
121 1'44.34"E
Posts: 9,815

Re: Rainflow counting

Originally Posted by zflora_blue

I have a problem in writing cpp for the below rules in counting peak and valley powered by
values from a graph. This is a survey!
Hope someone could help...

Well, what exactly is your problem?

Guido Stercken-Sorrenti

Reply With Quote

September 15th, 2004, 12:41 AM #3

Junior Member
Join Date: Sep 2004
Posts: 4

Re: Rainflow counting

Thks for the response.
Currently, I'm building a module to support an existing FEA software (Strand7).
This module is intended to use for calculating the fatigue stress of some
designed structure, such as beam. Within the module, I need to use the
"Rainflow counting" method to count the stress and Palmger-Miner's Rule in
calculating the fatigue life of that particular structure defined by the user.

I do not have the alogrithm for Rainflow counting. I have attached a file on how
the counting would be done on stress-time history graph. I have tried attaching
the full file but it is too big. As for the rule in how this counting works, is
described in my previous quote.
I have the alogrithm for the Miner's rule:
(ni/Ni)<1 will not fail
(ni/Ni)=/>1 fail
n refers to the stress
N refers to the number of cycle under that stress.
This calculation will depend on the counting of the Rainflow method. From the
rainflow counting, i will get all the ni values and Ni values....

Basically, this is a mechanical module. However, I do not have the knowledge to

do the simulation module/program.

Hope you could help. 2/4
Rainflow counting 15/08/2015

Really desperatly to complete by the end of October.

Thank you.

Attached Images

Reply With Quote

September 15th, 2004, 01:16 AM #4

Join Date: Aug 2004
Location: INDIA
Posts: 260

Re: Rainflow counting

Below link may be useful.. Check it out.

If you feel this post is useful,

Rate this Post by clicking right top corner (Rate this Post)
***Add strength to your country - Interesting Poll

Reply With Quote

September 15th, 2004, 06:50 AM #5

Junior Member
Join Date: Sep 2004
Posts: 4

Re: Rainflow counting

Thank you for the link.
I did look into this site. However, as a beginner in programming, it is hard for me
to understand. And I could not locate the "mex.h" file within the zip.
I have another problem. i.e. linking my module to the existing software through
API. I have the header files. however, I could not call out the dll.

Hope someone could help...


Reply With Quote

Quick Navigation Visual C++ Programming Top

Previous Thread | Next Thread

Posting Permissions
You may not post new BB code is On
threads Smilies are On
You may not post [IMG] code is On
replies [VIDEO] code is
You may not post On
attachments HTML code is Off
You may not edit your
posts Forum Rules 3/4
Rainflow counting 15/08/2015

-- Blue Codeguru Contact Us CodeGuru Forums Privacy Statement Top

Acceptable Use Policy

Property of Quinstreet Enterprise.
Terms of Service | Licensing & Reprints | Privacy Policy | Advertise
Copyright 2015 QuinStreet Inc. All Rights Reserved.
All times are GMT -5. The time now is 09:52 AM.
Copyright Quinstreet Inc. 2002-2015 4/4