You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
468 lines
91 KiB
Plaintext
468 lines
91 KiB
Plaintext
11 years ago
|
{
|
||
|
"metadata": {
|
||
|
"name": "WAFO Chapter 4"
|
||
|
},
|
||
|
"nbformat": 3,
|
||
|
"nbformat_minor": 0,
|
||
|
"worksheets": [
|
||
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Chapter 4 Fatigue load analysis and rain-flow cycles\n",
|
||
|
"=====================================================\n",
|
||
|
"\n",
|
||
|
"Section 4.3.1 Crossing intensity\n",
|
||
|
"--------------------------------\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"collapsed": false,
|
||
|
"input": [
|
||
|
"import wafo.data as wd\n",
|
||
|
"import wafo.objects as wo\n",
|
||
|
"\n",
|
||
|
"printing=0\n",
|
||
|
"xx_sea = wd.sea() \n",
|
||
|
"ts = wo.mat2timeseries(xx_sea)\n",
|
||
|
"tp = ts.turning_points()\n",
|
||
|
"mM = tp.cycle_pairs(kind='min2max')\n",
|
||
|
"lc = mM.level_crossings(intensity=True)\n",
|
||
|
"T_sea = ts.args[-1]-ts.args[0]\n",
|
||
|
"\n",
|
||
|
"subplot(1,2,1)\n",
|
||
|
"lc.plot()\n",
|
||
|
"subplot(1,2,2)\n",
|
||
|
"lc.setplotter(plotmethod='step')\n",
|
||
|
"lc.plot()\n",
|
||
|
"show() \n",
|
||
|
" \n",
|
||
|
" \n",
|
||
|
"m_sea = ts.data.mean() \n",
|
||
|
"f0_sea = interp(m_sea, lc.args,lc.data)\n",
|
||
|
"extr_sea = len(tp.data)/(2*T_sea)\n",
|
||
|
"alfa_sea = f0_sea/extr_sea\n",
|
||
|
"print('alfa = %g ' % alfa_sea )"
|
||
|
],
|
||
|
"language": "python",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"output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8PDzg5eWF27dv46OPPgIA7NmzB506dYKrqyvmzp2LLVu2wNnZ\nWRVbZZUfV467Y8eO+OKLLxAREQFvb2+4urqiWbNmqvNUt3HjRrRq1QqNGjXCmjVrsGnTJtVzzZs3\nh0KhgLe3N8aPH4/Vq1cjMDAQgNgbJiAgAI888ggaNWqEgQMH4uLFiwCAHj16YN26dZg7dy4aN26M\n8PBw1R+g1157Ddu3b4e7uzvmzJmjNiZA7LXzn//8B02bNkVKSgr69Omj9vWqez+sBec257aUuS2Q\ntq8REiosLMSMGTPg7OyM8PDwKonOzOvevXtQKBS4dOkSWrZsqfdxiYmJGD9+PDIzM80YHWPG49yu\nHdneYfz444947rnnsGbNmiq318w8fvnlFxQVFaGwsBDz589Hly5dDPpA2Zv4+HgEBQWhbdu2WLp0\naY3nN23ahODgYHTp0gV9+vTBuXPnVM/5+/ujS5cu6Nq1K3r27GnJsO0S57bpWLTAmDhxIjw9PdG5\nc+cq29V9+LKyslQ9BarXIzLT27lzJ3x8fODj44PLly9jy5YtRp3HGqt5DKVUKjFz5kzEx8cjJSUF\nsbGxOH/+fJV9WrdujUOHDuHcuXN499138corr6ieEwQBiYmJSE5OrlJ1xMyDc9t0LFoldfjwYbi4\nuOCll17Cn3/+CUD88LVr1w779u2Dj48PevTogdjYWPz+++9QKBQYNmyYqpcHY3Jw/PhxLFq0CPHx\n8QCAJUuWAAAWLlyodv+8vDx0
|
||
|
},
|
||
|
{
|
||
|
"output_type": "stream",
|
||
|
"stream": "stdout",
|
||
|
"text": [
|
||
|
"alfa = 0.491212 \n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"prompt_number": 1
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Section 4.3.2 Extraction of rainflow cycles\n",
|
||
|
"-------------------------------------------\n",
|
||
|
"Min-max and rainflow cycle plots\n",
|
||
|
"---------------------------------"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"collapsed": false,
|
||
|
"input": [
|
||
|
"mM_rfc = tp.cycle_pairs(h=0.3)\n",
|
||
|
" \n",
|
||
|
"clf()\n",
|
||
|
"subplot(122), \n",
|
||
|
"mM.plot() \n",
|
||
|
"title('min-max cycle pairs')\n",
|
||
|
"subplot(121), \n",
|
||
|
"mM_rfc.plot()\n",
|
||
|
"title('Rainflow filtered cycles')\n",
|
||
|
"show()"
|
||
|
],
|
||
|
"language": "python",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"output_type": "display_data",
|
||
|
"png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAEVCAYAAAAVeRmFAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJztnXl8VNXd/z+TjRCykn0PJiRASEIUTFGWqAQlIEQtLaIS\nXMC2ivXXuuDTurRWxOXx1VZ9Sm0taHlQQauggg+oxAUIWEFRUZElEJYAhkR2QuD7++P0zD1z5947\nM3furDnv12teyczcuffcme+933O+q42ICBKJRCKRaBAR6AFIJBKJJHiRSkIikUgkukglIZFIJBJd\npJKQSCQSiS5SSUgkEolEF6kkJBKJRKKLVBIC//u//4vLL7/c7e1/+9vfIj09HTk5Odi1axciIiJw\n7tw5n43vwIEDGDVqFBITE3HXXXfh0UcfxYwZMwAALS0tPj++EU1NTcjPz/fb8YqKivDee+/57Xjh\nyO7du5GQkICeHgW/YMECjBw50u/H/fnPf44//OEPfj+up0QFegBWU1RUhIMHDyIyMhJ9+vRBXV0d\nnn32WSQmJrr87HXXXYfrrrvOrePs3r0bTz31FFpbW5GamoqWlhYvR+6a5557DhkZGThy5IjLbWtr\na3HDDTfg5ptv9vm4AoHNZoPNZgv0MEKagoICHD16NNDD6LH85S9/CfQQ3CLsVhI2mw1vvfUWjh49\nis8//xxffPGFT7T17t27kZqaitTUVMv3rceuXbswcOBAt7b19gYaqBWJRCIBuru7Az0EO2GnJEQy\nMzMxduxY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rr/+es3j19bW0vPPP2/f9tixY5SXl0cLFiygs2fP0qZNmygtLY22\nbNlCRESNjY2UlJREa9euJSKiEydO0Pnnn08PP/wwnTlzhnbs2EHnnXce/d///R8REd177700atQo\n6ujooNbWViovL6f8/HzNcR85coSysrLoqaeeotOnT9PRo0dpw4YNRERUX19Pf/nLX+zb3nnnnXTH\nHXcQEdHixYspNzeX/v3vfxMR0bZt22jXrl1ExH7n9957j4iI/vjHP9Lw4cNp79691NXVRbfeeitd\ne+21REQ0b948uvLKK+nkyZN07tw52rhxIx05ckRznOFAUVERDR8+nA4ePEh79+6ljIwMqq6ups8+\n+4xOnTpFl156qf16UMvM6NGjqaSkhL777js6efIk1dbW0uzZs3WPNXr0aOrfvz/t2LGDfvjhBxo0\naBCVlJTQe++9R93d3TRt2jS68cYb7dsvXLiQDh8+TGfPnqX//u//pqysLDp16hQREbW1tVFGRga9\n//77tHDhQiouLqZjx45pHvfxxx+niooK2rp1KxERbd68mdrb22nDhg2Uk5ND586dIyKiQ4cOUVxc\nHB08eJC6u7upsrKSfvWrX9GJEyfo1KlTtGbNGiJyvO5dXSda30Fubi599dVXdPz4cbrmmmvs1yTf\n97Fjx6irq4vuvPNOGjJkiP098XpevXo1RUVF0ezZs6mrq4tOnjxJs2fPpp/97GfU3d1N3d3d9PHH\nH+v+Fr4k7JREYWEhxcfHU0JCAtlsNmpoaLBfBFoMGTKEli5dSkTaSoILEhHRT37yE5o7dy4RsR9V\nT0ns3r2bIiMjHYT8vvvuo+nTpxMR0f3330933HEHdXd3U1ZWFv35z3+m2bNn08mTJ6l37950+PBh\nzbFOnz6dfvvb39qfP/jgg4ZK4u9//7t925dffplGjhzpsL+ZM2fabxiNjY3U2Nhof6+5uZkKCgoc\ntp8zZ479ohcVBhHRc8895/B9iCxatIjOP/98zfdefvlluvjii4mI7N/HJ598QkREY8eOpT//+c+a\nnxOVxMCBA+3/ExHt27ePoqOjqbu7m/7xj3/QRRddRJs3b9bcT7hRVFREixYtsj+/5ppr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
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"Min-max and rainflow cycle distributions\n",
|
||
|
"-------------------------------------------"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"collapsed": false,
|
||
|
"input": [
|
||
|
"import wafo.misc as wm\n",
|
||
|
"ampmM_sea = mM.amplitudes()\n",
|
||
|
"ampRFC_sea = mM_rfc.amplitudes()\n",
|
||
|
"clf()\n",
|
||
|
"subplot(121) \n",
|
||
|
"wm.plot_histgrm(ampmM_sea,25)\n",
|
||
|
"ylim = gca().get_ylim()\n",
|
||
|
"title('min-max amplitude distribution')\n",
|
||
|
"subplot(122)\n",
|
||
|
"wm.plot_histgrm(ampRFC_sea,25)\n",
|
||
|
"gca().set_ylim(ylim)\n",
|
||
|
"title('Rainflow amplitude distribution')\n",
|
||
|
"show()"
|
||
|
],
|
||
|
"language": "python",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"output_type": "display_data",
|
||
|
"png": "iVBORw0KGgoAAAANSUhEUgAAAYQAAAEICAYAAABfz4NwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAIABJREFUeJzt3Xl4U2W+B/Dv6aIsTVe6QFNIoS0lBdpqhYKWBqFsaocR\nplCxlE3vdUaujN5RGUAKii0z4EUddRwvQhWFiijlsnSYEYK4QFUWpR2mHehGN5a20Ard3/sH4UzT\nJm3aJF2/n+fJ8yQ5J7/3zTm/k99Z3iSSEEKAiIj6PJuu7gAREXUPLAhERASABYGIiHRYEIiICAAL\nAhER6bAgEBERACsWhPz8fCgUCnBUq3GLFi3CmjVrAADHjx9HYGCgxWJrtVr4+PhYJNb27dsREREh\nP1YoFMjNzbVI7MTERDzxxBMAgNzcXNjY2KCxsdEisTszBz/66CNMnz7d5PlXr14Nd3d3DBkyBHl5\neRZ9311NpVLhyJEjAIBXX31VXr+WkJCQgLi4OIvEsub2N2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zmnTpuH48ePydHt7\ne6xatQq2traYN28eysrKsGLFCgwcOBBqtRpqtRpnz56V5w8LC8Ojjz4KW1tbPPvss6iursaJEyda\ntNv0vRp6360ti/z8fHz//ffy9hMREYFHHnlEnr5jxw7MmjULM2bMAABMnToVYWFhOHjwYItYJ06c\nQH19PZ555hnY2tpizpw5uO+++wy2a2tri5qaGmRkZKCurg5Dhw7F8OHD5f4277MkSVi0aBFGjRoF\nGxsb2NnZtYjp4eEhtx0TE4OR
|
||
|
}
|
||
|
],
|
||
|
"prompt_number": 3
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"collapsed": false,
|
||
|
"input": [
|
||
|
"#!#! Section 4.3.3 Simulation of rainflow cycles\n",
|
||
|
"#!#! Simulation of cycles in a Markov model\n",
|
||
|
"n=41; param_m=[-1, 1, n]; param_D=[1, n, n];\n",
|
||
|
"u_markov=levels(param_m);\n",
|
||
|
"G_markov=mktestmat(param_m,[-0.2, 0.2],0.15,1);\n",
|
||
|
"T_markov=5000;\n",
|
||
|
"#xxD_markov=mctpsim({G_markov [,]},T_markov);\n",
|
||
|
"#xx_markov=[(1:T_markov)' u_markov(xxD_markov)'];\n",
|
||
|
"#clf\n",
|
||
|
"#plot(xx_markov(1:50,1),xx_markov(1:50,2))\n",
|
||
|
"#title('Markov chain of turning points')\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 5'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"##!#! Rainflow cycles in a transformed Gaussian model\n",
|
||
|
"##!#! Hermite transformed wave data and rainflow filtered turning points, h = 0.2.\n",
|
||
|
"#me = mean(xx_sea(:,2));\n",
|
||
|
"#sa = std(xx_sea(:,2));\n",
|
||
|
"#Hm0_sea = 4*sa;\n",
|
||
|
"#Tp_sea = 1/max(lc_sea(:,2));\n",
|
||
|
"#spec = jonswap([],[Hm0_sea Tp_sea]);\n",
|
||
|
"#\n",
|
||
|
"#[sk, ku] = spec2skew(spec);\n",
|
||
|
"#spec.tr = hermitetr([],[sa sk ku me]);\n",
|
||
|
"#param_h = [-1.5 2 51];\n",
|
||
|
"#spec_norm = spec;\n",
|
||
|
"#spec_norm.S = spec_norm.S/sa^2;\n",
|
||
|
"#xx_herm = spec2sdat(spec_norm,[2^15 1],0.1);\n",
|
||
|
"##! ????? PJ, JR 11-Apr-2001\n",
|
||
|
"##! NOTE, in the simulation program spec2sdat\n",
|
||
|
"##!the spectrum must be normalized to variance 1 \n",
|
||
|
"##! ?????\n",
|
||
|
"#h = 0.2;\n",
|
||
|
"#[dtp,u_herm,xx_herm_1]=dat2dtp(param_h,xx_herm,h);\n",
|
||
|
"#clf\n",
|
||
|
"#plot(xx_herm(:,1),xx_herm(:,2),'k','LineWidth',2); hold on;\n",
|
||
|
"#plot(xx_herm_1(:,1),xx_herm_1(:,2),'k--','Linewidth',2);\n",
|
||
|
"#axis([0 50 -1 1]), hold off;\n",
|
||
|
"#title('Rainflow filtered wave data')\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 6'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Rainflow cycles and rainflow filtered rainflow cycles in the transformed Gaussian process.\n",
|
||
|
"#tp_herm=dat2tp(xx_herm);\n",
|
||
|
"#RFC_herm=tp2rfc(tp_herm);\n",
|
||
|
"#mM_herm=tp2mm(tp_herm);\n",
|
||
|
"#h=0.2;\n",
|
||
|
"#[dtp,u,tp_herm_1]=dat2dtp(param_h,xx_herm,h);\n",
|
||
|
"#RFC_herm_1 = tp2rfc(tp_herm_1);\n",
|
||
|
"#clf\n",
|
||
|
"#subplot(121), ccplot(RFC_herm)\n",
|
||
|
"#title('h=0')\n",
|
||
|
"#subplot(122), ccplot(RFC_herm_1)\n",
|
||
|
"#title('h=0.2')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_8.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 7'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.3.4 Calculating the rainflow matrix\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"#Grfc_markov=mctp2rfm({G_markov []});\n",
|
||
|
"#clf\n",
|
||
|
"#subplot(121), cmatplot(u_markov,u_markov,G_markov), axis('square')\n",
|
||
|
"#subplot(122), cmatplot(u_markov,u_markov,Grfc_markov), axis('square')\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 8'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! \n",
|
||
|
"#clf\n",
|
||
|
"#cmatplot(u_markov,u_markov,{G_markov Grfc_markov},3) \n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 9'),pause(pstate)\t\n",
|
||
|
"#\n",
|
||
|
"##!#! Min-max-matrix and theoretical rainflow matrix for test Markov sequence.\n",
|
||
|
"#cmatplot(u_markov,u_markov,{G_markov Grfc_markov},4)\n",
|
||
|
"#subplot(121), axis('square'), title('min2max transition matrix')\n",
|
||
|
"#subplot(122), axis('square'), title('Rainflow matrix')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_9.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 10'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Observed and theoretical rainflow matrix for test Markov sequence.\n",
|
||
|
"#n=length(u_markov);\n",
|
||
|
"#Frfc_markov=dtp2rfm(xxD_markov,n);\n",
|
||
|
"#clf\n",
|
||
|
"#cmatplot(u_markov,u_markov,{Frfc_markov Grfc_markov*T_markov/2},3) \n",
|
||
|
"#subplot(121), axis('square'), title('Observed rainflow matrix')\n",
|
||
|
"#subplot(122), axis('square'), title('Theoretical rainflow matrix')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_10.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 11'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Smoothed observed and calculated rainflow matrix for test Markov sequence.\n",
|
||
|
"#tp_markov=dat2tp(xx_markov);\n",
|
||
|
"#RFC_markov=tp2rfc(tp_markov);\n",
|
||
|
"#h=1;\n",
|
||
|
"#Frfc_markov_smooth=cc2cmat(param_m,RFC_markov,[],1,h);\n",
|
||
|
"#clf\n",
|
||
|
"#cmatplot(u_markov,u_markov,{Frfc_markov_smooth Grfc_markov*T_markov/2},4)\n",
|
||
|
"#subplot(121), axis('square'), title('Smoothed observed rainflow matrix')\n",
|
||
|
"#subplot(122), axis('square'), title('Theoretical rainflow matrix')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_11.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 12'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Rainflow matrix from spectrum\n",
|
||
|
"#clf\n",
|
||
|
"##!GmM3_herm=spec2mmtpdf(spec,[],'Mm',[],[],2);\n",
|
||
|
"#GmM3_herm=spec2cmat(spec,[],'Mm',[],param_h,2);\n",
|
||
|
"#pdfplot(GmM3_herm)\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 13'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"##!#! Min-max matrix and theoretical rainflow matrix for Hermite-transformed Gaussian waves.\n",
|
||
|
"#Grfc_herm=mctp2rfm({GmM3_herm.f []});\n",
|
||
|
"#u_herm=levels(param_h);\n",
|
||
|
"#clf\n",
|
||
|
"#cmatplot(u_herm,u_herm,{GmM3_herm.f Grfc_herm},4)\n",
|
||
|
"#subplot(121), axis('square'), title('min-max matrix')\n",
|
||
|
"#subplot(122), axis('square'), title('Theoretical rainflow matrix')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_12.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 14'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#!\n",
|
||
|
"#clf\n",
|
||
|
"#Grfc_direct_herm=spec2cmat(spec,[],'rfc',[],[],2);\n",
|
||
|
"#subplot(121), pdfplot(GmM3_herm), axis('square'), hold on\n",
|
||
|
"#subplot(122), pdfplot(Grfc_direct_herm), axis('square'), hold off\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fig_mmrfcjfr.eps\n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 15'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"##!#! Observed smoothed and theoretical min-max matrix, \n",
|
||
|
"##!#! (and observed smoothed and theoretical rainflow matrix for Hermite-transformed Gaussian waves).\n",
|
||
|
"#tp_herm=dat2tp(xx_herm);\n",
|
||
|
"#RFC_herm=tp2rfc(tp_herm);\n",
|
||
|
"#mM_herm=tp2mm(tp_herm);\n",
|
||
|
"#h=0.2;\n",
|
||
|
"#FmM_herm_smooth=cc2cmat(param_h,mM_herm,[],1,h);\n",
|
||
|
"#Frfc_herm_smooth=cc2cmat(param_h,RFC_herm,[],1,h);\n",
|
||
|
"#T_herm=xx_herm(end,1)-xx_herm(1,1);\n",
|
||
|
"#clf\n",
|
||
|
"#cmatplot(u_herm,u_herm,{FmM_herm_smooth GmM3_herm.f*length(mM_herm) ; ...\n",
|
||
|
"# Frfc_herm_smooth Grfc_herm*length(RFC_herm)},4)\n",
|
||
|
"#subplot(221), axis('square'), title('Observed smoothed min-max matrix')\n",
|
||
|
"#subplot(222), axis('square'), title('Theoretical min-max matrix')\n",
|
||
|
"#subplot(223), axis('square'), title('Observed smoothed rainflow matrix')\n",
|
||
|
"#subplot(224), axis('square'), title('Theoretical rainflow matrix')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_13.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 16'),pause(pstate)\n",
|
||
|
"# \n",
|
||
|
"##!#! Section 4.3.5 Simulation from crossings and rainflow structure\n",
|
||
|
"#\n",
|
||
|
"##!#! Crossing spectrum (smooth curve) and obtained spectrum (wiggled curve)\n",
|
||
|
"##!#! for simulated process with irregularity factor 0.25.\n",
|
||
|
"#clf\n",
|
||
|
"#cross_herm=dat2lc(xx_herm);\n",
|
||
|
"#alpha1=0.25;\n",
|
||
|
"#alpha2=0.75;\n",
|
||
|
"#xx_herm_sim1=lc2sdat(cross_herm,500,alpha1);\n",
|
||
|
"#cross_herm_sim1=dat2lc(xx_herm_sim1);\n",
|
||
|
"#subplot(211)\n",
|
||
|
"#plot(cross_herm(:,1),cross_herm(:,2)/max(cross_herm(:,2)))\n",
|
||
|
"#hold on\n",
|
||
|
"#stairs(cross_herm_sim1(:,1),...\n",
|
||
|
"# cross_herm_sim1(:,2)/max(cross_herm_sim1(:,2)))\n",
|
||
|
"#hold off\n",
|
||
|
"#title('Crossing intensity, \\alpha = 0.25')\n",
|
||
|
"#subplot(212)\n",
|
||
|
"#plot(xx_herm_sim1(:,1),xx_herm_sim1(:,2))\n",
|
||
|
"#title('Simulated load, \\alpha = 0.25')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_14_25.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 16'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Crossing spectrum (smooth curve) and obtained spectrum (wiggled curve)\n",
|
||
|
"##!#! for simulated process with irregularity factor 0.75.\n",
|
||
|
"#xx_herm_sim2=lc2sdat(cross_herm,500,alpha2);\n",
|
||
|
"#cross_herm_sim2=dat2lc(xx_herm_sim2);\n",
|
||
|
"#subplot(211)\n",
|
||
|
"#plot(cross_herm(:,1),cross_herm(:,2)/max(cross_herm(:,2)))\n",
|
||
|
"#hold on\n",
|
||
|
"#stairs(cross_herm_sim2(:,1),...\n",
|
||
|
"# cross_herm_sim2(:,2)/max(cross_herm_sim2(:,2)))\n",
|
||
|
"#hold off\n",
|
||
|
"#title('Crossing intensity, \\alpha = 0.75')\n",
|
||
|
"#subplot(212)\n",
|
||
|
"#plot(xx_herm_sim2(:,1),xx_herm_sim2(:,2))\n",
|
||
|
"#title('Simulated load, \\alpha = 0.75')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_14_75.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 17'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.4 Fatigue damage and fatigue life distribution\n",
|
||
|
"##!#! Section 4.4.1 Introduction\n",
|
||
|
"#beta=3.2; gam=5.5E-10; T_sea=xx_sea(end,1)-xx_sea(1,1);\n",
|
||
|
"#d_beta=cc2dam(RFC_sea,beta)/T_sea;\n",
|
||
|
"#time_fail=1/gam/d_beta/3600 #!in hours of the specific storm\n",
|
||
|
"#disp('Block 18'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.4.2 Level crossings\n",
|
||
|
"##!#! Crossing intensity as calculated from the Markov matrix (solid curve) and from the observed rainflow matrix (dashed curve).\n",
|
||
|
"#clf\n",
|
||
|
"#mu_markov=cmat2lc(param_m,Grfc_markov);\n",
|
||
|
"#muObs_markov=cmat2lc(param_m,Frfc_markov/(T_markov/2));\n",
|
||
|
"#clf\n",
|
||
|
"#plot(mu_markov(:,1),mu_markov(:,2),muObs_markov(:,1),muObs_markov(:,2),'--')\n",
|
||
|
"#title('Theoretical and observed crossing intensity ')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_15.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 19'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.4.3 Damage\n",
|
||
|
"##!#! Distribution of damage from different RFC cycles, from calculated theoretical and from observed rainflow matrix.\n",
|
||
|
"#beta = 4;\n",
|
||
|
"#Dam_markov = cmat2dam(param_m,Grfc_markov,beta)\n",
|
||
|
"#DamObs1_markov = cc2dam(RFC_markov,beta)/(T_markov/2)\n",
|
||
|
"#DamObs2_markov = cmat2dam(param_m,Frfc_markov,beta)/(T_markov/2)\n",
|
||
|
"#disp('Block 20'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#Dmat_markov = cmat2dmat(param_m,Grfc_markov,beta);\n",
|
||
|
"#DmatObs_markov = cmat2dmat(param_m,Frfc_markov,beta)/(T_markov/2); \n",
|
||
|
"#clf\n",
|
||
|
"#subplot(121), cmatplot(u_markov,u_markov,Dmat_markov,4)\n",
|
||
|
"#title('Theoretical damage matrix') \n",
|
||
|
"#subplot(122), cmatplot(u_markov,u_markov,DmatObs_markov,4)\n",
|
||
|
"#title('Observed damage matrix') \n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_16.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 21'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"##!#!\n",
|
||
|
"##!Damplus_markov = lc2dplus(mu_markov,beta)\n",
|
||
|
"#pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.4.4 Estimation of S-N curve\n",
|
||
|
"#\n",
|
||
|
"##!#! Load SN-data and plot in log-log scale.\n",
|
||
|
"#SN = load('sn.dat');\n",
|
||
|
"#s = SN(:,1);\n",
|
||
|
"#N = SN(:,2);\n",
|
||
|
"#clf\n",
|
||
|
"#loglog(N,s,'o'), axis([0 14e5 10 30])\n",
|
||
|
"##!if (printing==1), print -deps ../bilder/fatigue_?.eps end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 22'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"#\n",
|
||
|
"##!#! Check of S-N-model on normal probability paper.\n",
|
||
|
"#\n",
|
||
|
"#normplot(reshape(log(N),8,5))\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_17.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 23'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Estimation of S-N-model on linear scale.\n",
|
||
|
"#clf\n",
|
||
|
"#[e0,beta0,s20] = snplot(s,N,12);\n",
|
||
|
"#title('S-N-data with estimated N(s)','FontSize',20)\n",
|
||
|
"#set(gca,'FontSize',20)\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_18a.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 24'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Estimation of S-N-model on log-log scale.\n",
|
||
|
"#clf\n",
|
||
|
"#[e0,beta0,s20] = snplot(s,N,14);\n",
|
||
|
"#title('S-N-data with estimated N(s)','FontSize',20)\n",
|
||
|
"#set(gca,'FontSize',20)\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_18b.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 25'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Section 4.4.5 From S-N curve to fatigue life distribution\n",
|
||
|
"##!#! Damage intensity as function of $\\beta$\n",
|
||
|
"#beta = 3:0.1:8;\n",
|
||
|
"#DRFC = cc2dam(RFC_sea,beta);\n",
|
||
|
"#dRFC = DRFC/T_sea;\n",
|
||
|
"#plot(beta,dRFC), axis([3 8 0 0.25])\n",
|
||
|
"#title('Damage intensity as function of \\beta')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_19.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 26'),pause(pstate)\n",
|
||
|
"#\n",
|
||
|
"##!#! Fatigue life distribution with sea load.\n",
|
||
|
"#dam0 = cc2dam(RFC_sea,beta0)/T_sea;\n",
|
||
|
"#[t0,F0] = ftf(e0,dam0,s20,0.5,1);\n",
|
||
|
"#[t1,F1] = ftf(e0,dam0,s20,0,1);\n",
|
||
|
"#[t2,F2] = ftf(e0,dam0,s20,5,1);\n",
|
||
|
"#plot(t0,F0,t1,F1,t2,F2)\n",
|
||
|
"#title('Fatigue life distribution function')\n",
|
||
|
"#if (printing==1), print -deps ../bilder/fatigue_20.eps \n",
|
||
|
"#end\n",
|
||
|
"#wafostamp([],'(ER)')\n",
|
||
|
"#disp('Block 27, last block')"
|
||
|
],
|
||
|
"language": "python",
|
||
|
"metadata": {},
|
||
|
"outputs": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {}
|
||
|
}
|
||
|
]
|
||
|
}
|