File Exchange

## Harmonic excitation of a SDOF

version 2.2 (276 KB) by E. Cheynet

### E. Cheynet (view profile)

Implementation of some numerical methods to study forced vibrations of a SDOF in the time domain.

Updated 03 Mar 2019

The exact solution of a damped Single Degree Of Freedom (SDOF) system is excited by a harmonic force is calculated [1]. It is compared to the numerical solution provided by the Matlab built-in function ode 45, the central difference method, Newmark method and the 4th order Runge-Kutta method, the implementation of which is based on the book from S. Rao [2].

[1] Daniel J. Inman, Engineering Vibrations, Pearson Education, 2013
[2] Singiresu S. Rao, Mechanical Vibrations,Prentice Hall, 2011

### Cite As

E. Cheynet (2019). Harmonic excitation of a SDOF (https://www.mathworks.com/matlabcentral/fileexchange/53854-harmonic-excitation-of-a-sdof), MATLAB Central File Exchange. Retrieved .

E. Cheynet

### E. Cheynet (view profile)

Hi Vishal Antony,
There won't be much difference in the way to proceed with a rectangular pulse. However, you will probably need a (very) high sampling frequency to properly model the discontinuity that exists in a rectangular pulse.

Vishal Antony

### Vishal Antony (view profile)

How to express a rectangular Pulse as forcing function in the numerical method e.g. central difference method?

E. Cheynet

### E. Cheynet (view profile)

@Maede I agree with you. I have re-arranged the inputs of the function "Newmark" in the new submission

Maede Zolanvari

### Maede Zolanvari (view profile)

I think it would be nicer if you had the inputs for both functions (CentDiff and Newmark) in the same order. Just to look better, no big deal :)

 3 Mar 2019 2.2 Added project website 10 Apr 2018 2.1.0.0 The inputs of the Newmark-Beta funciton are ordered to be consistent with the function CentDiff 31 Dec 2016 2.0.0.0 Added Newmark and Runge-Kutta methods 7 Nov 2015 1.0.0.0 - picture added
##### MATLAB Release Compatibility
Created with R2017b
Compatible with any release
##### Platform Compatibility
Windows macOS Linux