📄 index.html
字号:
<!doctype html public "-//W3C//DTD HTML 3.2 FINAL//EN">
<html>
<head>
<meta http-equiv="reply-to" content="ajn@po.opole.pl">
<meta name="Author" content="Adam Nies硂ny">
<meta name="KeyWords" content="rain flow, MATLAB, MEX, cycle counting">
<meta name="Language" content="EN">
<meta http-equiv="Content-Type" content="text/html; CHARSET=ISO-8859-2">
<title>Rain flow for MATLAB</TITLE>
<style type="text/css">
.blue {color:#000080; font-weight:bold}
</style>
</HEAD>
<BODY>
<H1>Rain flow for MATLAB</H1>
<p>Version date: 12.01.2005</p>
<H2>Description</H2>
<p>Here you can find the rain flow algorithm for cycle counting, adapted for work in the MATLAB<sup>®</sup> environment. It has been translated from Turbo Pascal into C language and compiled to the MEX function. The algorithm code has been prepared according to the ASTM standard [1] and optimized considering the calculation time. The function was tested with use of PC computers in the MS Windows<sup>®</sup> operating system.<br>
Please send all your remarks, suggestions and questions to the author.<br>
E-mail: <a href="mailto:ajn@po.opole.pl">Adam Nies硂ny</a>
</p>
<h2>Author</h2>
<p>The MEX function of the rain flow algorithm has been elaborated by Adam Nies硂ny. At present he is a postgraduate student of Technical University of Opole and he works on his Doctor's thesis in Department of Mechanics and Machine Design.<br>
See the following pages:<br>
<a href="http://www.po.opole.pl" target="_blank">Technical University of Opole</a><br>
<a href="http://www.kmpkm.po.opole.pl" target="_blank">Katedra MiPKM</a>
</p>
<H2>Files</H2>
<P>Toolbox files:</P>
<pre>
rainflow.m - short description of the rainflow function,
rainflow.c - C MEX code of the rainflow function,
rainflow.dll - compiled "rainflow.c" file (MATLAB 6.5, Windows 2000 Prof.),
rfhist.m - histograms of rainflow data,
rfmatrix.m - rainflow matrix calculation and visualization,
rfdemo1.m - demo for cycle counting, recomended for short signals,
rfdemo2.m - demo for rainflow matrix and histograms, recomended for long signals,
sig2ext.m - auxiliary function for rfdemo, it searches turning points from signals.
</PRE>
<H2>Installation</H2>
<P>In order to instal the rainflow function, you must realise standard tasks, necessary during addition of new toolboxes to the MATLAB, i.e.</P>
<ol>
<LI>Download the file <a href="rainflow.zip">rainflow.zip</a>
<li>Create a new directory for files of the rainflow toolbox
<LI>Unpack all files from the archive to that directory
<LI>Add a path to that directory, using the command "Edit Path" of the MATLAB
</ol>
<H2>Quick start</H2>
<p>Using demos:</p>
<pre class="blue">
clear all
rfdemo1
rfdemo2
</pre>
<p>Rainflow counting on self generated (or loaded) signal:</p>
<pre class="blue">
clear all
lengths=10000;
s=10*randn(lengths,1)+rand(lengths,1);
% or load the signal from file --> s=my_signal;
tp=sig2ext(s);
rf=rainflow(tp);
rfm=rfmatrix(rf,20,20);
surf(rfm)
</pre>
<H2>References</H2>
<table>
<tr>
<td valign="top">[1]</td>
<td>
ASTM E 1049-85 (Reapproved 1997), <i>Standard practices for cycle counting in fatigue analysis,</i> in: Annual Book of ASTM Standards, Vol. 03.01, Philadelphia
1999, pp. 710-718
</td>
</tr>
</table>
<p align="center" style="font-size: 10pt">end of page<br>© by Adam Nies硂ny</p>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -