Thursday, August 1, 2019

String Vibration problem

Problem definition

String vibration equation is expressed by the function of space and time y(x,t): y(x,t) = u(x)φ(t). t: time, x: x position, y: y position, amplitude.
Initial string shape is given: y=g(x) at t=0
Initial string velocity is zero: ∂y(x,0)∂t = 0
Both end of the string is fixed: y(0,t) = 0, y(1,t) = 0
Function y(x,t) follows following partial differential equation: u d2φ dt2 = c2φ d2u dx2 , c: constant, c2 = tensiondensity.

Solution


Above problem is solved by Jean d'Alembert in 1747. Following more explicit solution is found by Daniel Bernoulli in 1755 : y(x,t) = n=1 Ansin(nπx)cos(nπct), g(x) = n=1 Ansin(nπx) Where g(x) coefficient Anis calculated using Discrete Sine Transform (but Fourier Transform is not known at that time).

Windows App

Windows App: https://sourceforge.net/projects/playpcmwin/files/others/WWStringVibration103.zip/download
Source code : https://sourceforge.net/p/playpcmwin/code/HEAD/tree/PlayPcmWin/WWStringVibration/

How to install

Extract Zip file to create folder contains WWStringVibration.exe and accompanying DLLs.

How to use

Run WWStringVibration.exe. Edit g(x) using mouse. Press Start to simulate string vibration.

How to uninstall

Just delete downloaded files.

License

MIT License.