I am posting some of my files on the Mathworks File Exchange for longevity sake. Please let me know if you have any comments or questions. Here are a few so far:
FFT – One-sided, Full Amplitude, Discrete Fourier Transform:
Power Spectral Density of a Time History
SDOF Response to Base Input PSD
https://www.mathworks.com/matlabcentral/fileexchange/127793-sdof-response-to-base-input-psd
Synthesize a Time History for an Acceleration PSD
SDOF Response to Base Input Acceleration Time History for Given Natural Frequency
Shock Response Spectrum (SRS) for base input acceleration:
A Matlab function for implementing the rainflow and relative damage equations:
https://www.mathworks.com/matlabcentral/fileexchange/127224-rainflow-fatigue-relative-damage
A Matlab function that combines the SDOF response to an acceleration base input, rainflow cycle counting, and the damage calculation:
A Matlab Dirlik function for a response PSD is given at:
https://www.mathworks.com/matlabcentral/fileexchange/127239-dirlik-relative-damage-for-response-psd
A Matlab Dirlik function for an SDOF response to a base input PSD is given at:
A Matlab function for the FDS time domain:
A Matlab function for the FDS frequency domain method:
This script calculates the Dirlik fatigue damage from a stress PSD using S/N Coefficients from MIL-HDBK-5J, MMPDS or NASGRO:
https://www.mathworks.com/matlabcentral/fileexchange/127294-dirlik-stress-psd-fatigue
more later…
– Tom Irvine
Thank you but I do not use math lab and do not believe in dirlik’s formula