|
215 | 215 | "plt.rcParams.update({'font.size': 22})\n",
|
216 | 216 | "plt.plot(range(len(scaled_load_sequence)), load_sequence, \"o-\", c=\"g\", lw=3)\n",
|
217 | 217 | "plt.grid()\n",
|
218 |
| - "plt.ylabel(\"$\\sigma_V$ [MPa]\")" |
| 218 | + "plt.ylabel(r\"$\\sigma_V$ [MPa]\")" |
219 | 219 | ]
|
220 | 220 | },
|
221 | 221 | {
|
|
559 | 559 | "load_sequence_list = scaled_load_sequence\n",
|
560 | 560 | "print(load_sequence_list)\n",
|
561 | 561 | "\n",
|
562 |
| - "# wrap the notch approximation law by a binning class, which precomputes the values\n", |
563 |
| - "maximum_absolute_load = max(np.abs(load_sequence_list))\n", |
564 |
| - "print(f\"maximum_absolute_load: {maximum_absolute_load}\")\n", |
565 |
| - "extended_neuber_binned = pylife.materiallaws.notch_approximation_law.Binned(\n", |
566 |
| - " extended_neuber, maximum_absolute_load, 100)\n", |
567 |
| - "\n", |
568 | 562 | "# create recorder object\n",
|
569 | 563 | "recorder = pylife.stress.rainflow.recorders.FKMNonlinearRecorder()\n",
|
570 | 564 | "\n",
|
571 | 565 | "# create detector object\n",
|
572 | 566 | "detector = pylife.stress.rainflow.fkm_nonlinear.FKMNonlinearDetector(\n",
|
573 |
| - " recorder=recorder, notch_approximation_law=extended_neuber_binned)\n", |
| 567 | + " recorder=recorder, notch_approximation_law=extended_neuber\n", |
| 568 | + ")\n", |
574 | 569 | "\n",
|
575 | 570 | "# perform HCM algorithm, first run\n",
|
576 | 571 | "detector.process(load_sequence_list, flush=False)\n",
|
|
759 | 754 | "load_sequence_list = scaled_load_sequence\n",
|
760 | 755 | "print(load_sequence_list)\n",
|
761 | 756 | "\n",
|
762 |
| - "# wrap the notch approximation law by a binning class, which precomputes the values\n", |
763 |
| - "maximum_absolute_load = max(np.abs(load_sequence_list))\n", |
764 |
| - "print(f\"maximum_absolute_load: {maximum_absolute_load}\")\n", |
765 |
| - "seeger_beste_binned = pylife.materiallaws.notch_approximation_law.Binned(\n", |
766 |
| - " seeger_beste, maximum_absolute_load, 100)\n", |
767 |
| - "\n", |
768 | 757 | "# create recorder object\n",
|
769 | 758 | "recorder = pylife.stress.rainflow.recorders.FKMNonlinearRecorder()\n",
|
770 | 759 | "\n",
|
771 | 760 | "# create detector object\n",
|
772 | 761 | "detector = pylife.stress.rainflow.fkm_nonlinear.FKMNonlinearDetector(\n",
|
773 |
| - " recorder=recorder, notch_approximation_law=seeger_beste_binned)\n", |
| 762 | + " recorder=recorder, notch_approximation_law=seeger_beste\n", |
| 763 | + ")\n", |
774 | 764 | "\n",
|
775 | 765 | "# perform HCM algorithm, first run\n",
|
776 | 766 | "detector.process(load_sequence_list, flush=False)\n",
|
|
0 commit comments