Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
periodic signal
TILS
Co
Ay sin(0 )
Amplitude and different phase
2
Numerical Experimental Approach in Structural Dynamics
(1)
f 0 is fundamental frequency
not
0
n
(2)
(3)
Observations:
Functions cos(nt ) and sin(nt ) form an ortogonal set of functions
The scalar product between the two functions:
(4)
(5)
3
Numerical Experimental Approach in Structural Dynamics
T
2
T
x(t )cos(nt )
an
T
2
Determination of constant bn :
(1) / sin(nt )
(6)
Conform with (5)
T
2
T
x(t )sin(nt )
bn
T
2
(7)
4
Numerical Experimental Approach in Structural Dynamics
An an2 bn2
n arctg
bn
an
(8)
an An cos(n )
bn An sin(n )
n
x(t ) An cos(n nt )
n 0
The string
Example 1:
It is considered the periodic square signal from the Fig. 1. Use the
trigonometric form to reconstruct the original square signal.
u(t)
1
t
0
T/2
(9)
5
Numerical Experimental Approach in Structural Dynamics
In Fig. 3 are considered 2 vectors with the an , and bn lengths which are
moving and their projections an cos(n0t ), bn sin(n0t ) .
d n an2 bn2 .
n arctg
an
bn
6
Numerical Experimental Approach in Structural Dynamics
x(t ) a0 d n sin(n0t n )
n 1
n arctg
bn
an
x(t ) a0 d n cos(n0t n )
n 1
sin A cos( A )
2
d n sin(n0t n ) cos(n0t n )
2
From Fig. 1 n
d n sin(n0t n )
d n cos(n0t n )
e jx e jx
e jx e jx
cos( x)
,sin x j
(10)
2
2
(10) A
x(t ) An cos(n nt ) n (e j (n nt ) e j (n nt )
2
n 0
n 0
An j (n nt )
A
(e
) n (e j (n nt ) )
2
2
n 1
n
A0
(11)
7
Numerical Experimental Approach in Structural Dynamics
(12)
x(t )
(13)
It is defined the Fourier Transform of a signal x(t) :
X ( ) F x(t ) ( )
x(t )e jt dt
x(t ) F 1 X ( ) (t )
1
2
inverse Fourier
X ( )e jt d
(14)
(15)
8
Numerical Experimental Approach in Structural Dynamics
Fig. 4 a) Periodic signal with the period T b) Spectrum Amplitude (The Anc
coeficients module of the signal represented in a)
c) Periodic signal with the period T1 T d) Spectrum Amplitude (The Anc
coeficients module of the signal represented in c)
The semnification of X ( ) is the same with the Anc
X ( ) X ( ) e j ( )
Xk
1
IDFT - x p
N
N 1
N 1
x pe
2 kp
)
N
p 0
Xke
k 0
j(
j(
2 kp
)
N
N 1
kp
x
W
p N
p 0
N 1
X kWN pk
k 0
9
Numerical Experimental Approach in Structural Dynamics
(16)
x(t ) a0 2 ak cos(
i 1
2 kt
2 kt
) bn sin(
)
T
T
0
an
2 T
2 kt
x
(
t
)cos(
)
dt
k
T 0
T
2
b
2 T
2 kt
bn x(t )sin(
)dt bk n
T 0
T
2
(17)
an
(18)
Consider
2 kt
T
cos(
2 kt
2 kt
) j sin(
)
T
T
(19)
Xk
j
1 T
x(t )e
T 0
2 kt
T
dt , X k ak jbk
(20)
10
Numerical Experimental Approach in Structural Dynamics
Xk
j
1 T
x(t )e
T 0
2 kt
T
j(
1 N 1
x pe
T j 0
N 1
x pe
k
, k 0,1,...N 1
T
j(
dt , X k ak jbk
2 k
) p
T
2 kp
)
N
p 0
(21)
DFT - Discrete Fourier Transform of discrete series
x p ( x0 , x1, x2 ,...xN 1)
IDFT inverse Discrete Fourier Transform
2 kp
N 1
j(
)
N
xp
X ke
(22)
k 0
Xk
an
b
j n
2
2
Liniarity
If x(t) and y(t) are 2 signals with integral module and
a, b C
10
(23)
11
Numerical Experimental Approach in Structural Dynamics
F x(t t0 ) ( ) X ( )e jt0
3. The displacement in spectrum
Deplasarea spectrului unui semnal cu o frecven
constant 0 corespunde nmulirii semnalului n timp cu o
cosinusoid complex:
F 1 X ( 0 ) (t ) x(t )e j0t
4. Schimbarea de scal
O contracie a semnalului cu o constant a corespunde
unei relaxri a spectrului cu aceeai constant i vice-versa
F x(at ) ( )
X( )
a
a
5. Derivarea n timp
dx(t )
F
( ) j X ( )
dt
6. Integrarea n timp
F
7. Simetria
x(t ) () j1 X ()
F x(t ) ( ) X ( )
F x(t ) ( ) 2 x( )
x 2 (t )dt
1
2
11
X ( ) d
12
Numerical Experimental Approach in Structural Dynamics
9. Convoluia n timp
Spectrul semnalului obinut prin convoluia temporal
a dou semnale se obine ca produsul spectrelor celor dou
semnale
z (t ) x(t ) * y (t )
x( ) y(t )d
x(t ) y( )d
Z ( ) X ( ) Y ( ), R
10.
Convoluia n frecven
Z ( )
1
2
1
1
X ( ) * Y ( )
2
2
X (0 )Y ( 0 ) d0
X ( 0 )Y (0 )d0
12
13
Numerical Experimental Approach in Structural Dynamics
Example 4
The response (elongation z) of a s-DOF system excited by a
periodic-sinusoidal force la F P sin t
F (t ) a0 an cos(n0t ) bn sin(n0t ), t R
n 1
Using the expression of series, the force is equal with:
F (t ) a0 d n cos(n0t n ) ,
n 1
bn
an
The equilibrum of forces: F mz cz kz
2
Forma standard cu k m n , c 2mn
d n an2 bn2 , n arctg
F / m z 2n z n 2 z
The simplify expresion of elongation z is:
z C cos t D sin t
2
4
13
14
Numerical Experimental Approach in Structural Dynamics
3
X k xnW4nk , k 0, 1, 2,...
n 0
k 0 : X0
n 0
xnW4n0
xn x0 x1 x2 x3 6
n 0
Similarly:
3
k 1: X1
n 0
0
xnW4n1
xn ( j ) n
n 0
1
x0 ( j ) x1 ( j ) x2 ( j ) 2 x3 ( j )3 j 2 3 j 2 2 j
3
n 0
3
n 0
3
n 0
n 0
k 2 : X 2 xnW4n2 xn ( j ) 2 n 2
k 3: X 3 xnW4n3 xn ( j )3n 2 2 j
1
1
1
1 WN
kn
WN [WN ,0 k , n N 1]
1 WNN 1
... WNN 1
( N 1) 2
... WN
...
15
Numerical Experimental Approach in Structural Dynamics
%%[xk] = idfs(Xk,N);
% Xk = DFS coefficient array over 0 <=k<= N-1
% xn - one period of periodic signal over 0<=n<N-1
%N- fundamental period of xn
n = [0:1:N-1]; % row vector for n
k = [0:1:N-1]; %row vector for k
WN = exp(-j*2*pi/N);%Wn vector
nk = n'*k;%creates a N X N matrix of nk values
WNnk = WN.^(-nk);%DFS matrix
xn=(Xk*WNnk)/N;%row vector for DFS coefficients
3. Harmonic excitation of undamped SDOF system
subject to an external force
The system under consideration is shown in Fig.2. The
forcing function is assumed to be of the form F F cos t where is
driving frequency.
0
M n xn Kn xn F0 cos t or
xn n2 xn
f0 cos t , f0
F0
Mn
f0
cos t
,
n2 2
With
A1
v0
, A2 x0
f0
f0
A3
n2 2 ,
n2 2 .
15
16
Numerical Experimental Approach in Structural Dynamics
17
Numerical Experimental Approach in Structural Dynamics
x(j,:)=A1*sin(wn*t)+A2*cos(wn*t)+A3*cos(wdr(j)*t);
end
for k=1:3
subplot(3,1,k)
plot(t,x(k,:))
title(['Response for
wdr=',num2str(wdr(k)),',wn=',num2str(wn)])
ylabel('Response x')
grid
end
xlabel('Time, seconds')
Note that two of the three constants in the expression for
x(t) involve the difference between the frequencies. This gives
rise to two interesting phenomena: beats and resonance. Beats
occur when the natural frequency and the driving frequency are
close but not equal. The result is then a rapid oscillation with a
slowly varying amplitude,
2. Illustrate the resonance and the beats for the
corresponding .
By changing the values of the initial conditions, wn, and f0
to input statements, this program would become a general solver
for the single-degree of freedom undamped oscillator, subject to
harmonic forcing.
%This program shows beats and resonance in undamped
systems. Again, in order to better see the effects, the initial
velocity and displacement are zero.
x0=0;
v0=0;
wn=3;
wdr=input('Enter the driving frequency. ');
f0=6;
tf=120;
%This section chooses the proper response formula for the
given situation.
t=0:tf/1000:tf;
if wdr==wn
A1=v0/wn;
A2=x0;
A3=f0/2*wn;
n
17
18
Numerical Experimental Approach in Structural Dynamics
x=A1*sin(wn*t)+A2*cos(wn*t)+A3*t.*cos(wdr*t);
else
A1=v0/wn;
A2=x0-(f0/(wn^2-wdr^2));
A3=f0/(wn^2-wdr^2);
x=A1*sin(wn*t)+A2*cos(wn*t)+A3*cos(wdr*t);
end
plot(t,x);
if wdr==wn
title('Example of Resonance Phenomenon');
else
title('Example of Beat Phenomenon');
end
xlabel('Time, seconds')
ylabel('Response x')
grid
3. Using the function which computes the discrete Fourier
Series (or fft.m), illustrate the magnitude and the angle of the
input and ouput signal from the above problems 1 and 2 (see
problem 4).
4. The matlab code for illustrating the Magnitude and the
angle of the DTF for the sequence xn = [0 1 2 3 4 5 6 7 8 ] is:
xn = [0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 ];
N=9*2;
Xk=dfs(xn,N)
%%%Magnitude
magXk=abs(Xk(1:1:N));
phaXk=angle(Xk)*180/pi;
k=0:1:N-1;w=2*pi/N*k;%frequency in pi units
%%Figures
subplot(3,1,1);plot(w/pi,magXk);ylabel('DTFT
Magnitude','FontSize',14)
set(gca,'FontSize',14,'FontName','Helvetica');
18
19
Numerical Experimental Approach in Structural Dynamics
subplot(3,1,2);plot(w/pi,phaXk);ylabel('DTFT
Angle','FontSize',14)
set(gca,'FontSize',14,'FontName','Helvetica');
subplot(3,1,3);stem(w/pi,xn);ylabel('Signal
xn,0<n<9','FontSize',14);xlabel('frequency
in
units','FontSize',14)
set(gca,'FontSize',14,'FontName','Helvetica');
% %%Inverse DFS
% xn=idfs(Xk,N)
pi
20
Numerical Experimental Approach in Structural Dynamics
tf=10;
t=0:tf/1000:tf;
for k=1:3
zeta(k)=input('Enter a damping ratio (zeta). ');
if (zeta(k)<0 || zeta(k)>=1)
error('Zeta out of range for this program!')
end
end
for k=1:3
wd=wn*sqrt(1-zeta(k)^2);
Ao=fo/sqrt((wn^2-wdr^2)^2+(2*zeta(k)*wn*wdr)^2);
phi=atan2(2*zeta(k)*wn*wdr,(wn^2-wdr^2));
Z1=-zeta(k)*wn-wdr*tan(phi);
Z2=sqrt((zeta(k)*wn)^2+2*zeta(k)*wn*wdr*tan(phi)+
(wdr*tan(phi))^2+wd^2);
Z=(Z1+Z2)/wd;
Anum=Ao*((zeta(k)*wn*Z-wd)*cos(phi)+wdr*Z*sin(phi));
Aden=Z*wd;
A=Anum/Aden;
theta=2*atan(Z);
x(k,:)=A*exp(zeta(k)*wn*t).*sin(wd*t+theta)+Ao*cos(wdr*t-phi);
end
for k=1:3
subplot(3,1,k)
plot(t,x(k,:))
title(['Response for zeta=',num2str(zeta(k)),', wn=', ...
num2str(wn),', and wdr=', num2str(wdr)])
ylabel('Response x')
grid
end
xlabel('Time, seconds')
20