dyna2fΒΆ
- Purpose:
Compute the dynamic solution to a set of uncoupled second-order differential equations.
- Syntax:
Y = dyna2f(w2, xi, f, p, dt)- Description:
dyna2fcomputes the solution to the set of differential equations:\[\ddot{x}_i + 2 \xi_i\omega_i \dot{x}_i + \omega^{2}_i x_i = f_i g(t), \qquad i=1,\ldots,m\]The vectors
w2,xiandfare the squared circular frequencies \(\omega_i^2\), the damping ratios \(\xi_i\), and the applied forces \(f_i\), respectively. The force vectorpcontains the Fourier coefficients \(p(k)\) formed by the commandfft.The solution in the frequency domain is computed at equal time increments defined by
dt. The result is stored in the \(m \times n\) matrixY, wheremis the number of equations andnis the number of frequencies resulting from thefftcommand. The dynamic solution in the time domain is achieved by the use of the commandifft.- Example:
The dynamic solution to a set of uncoupled second-order differential equations can be computed by the following sequence of commands:
>> g = gfunc(G, dt); >> p = fft(g); >> Y = dyna2f(w2, xi, f, p, dt); >> X = (real(ifft(Y.')))';where it is assumed that the input variables
G,dt,w2,xiandfare properly defined. Note that theifftcommand operates on column vectors ifYis a matrix; therefore use the transpose ofY. The output from theifftcommand is complex. Therefore useY.'to transpose rows and columns inYin order to avoid the complex conjugate transpose ofY.The time response is represented by the real part of the output from the
ifftcommand. If the transpose is used and the result is stored in a matrixX, each row will represent the time response for each equation as the output from the commanddyna2.- See also: