Beruflich Dokumente
Kultur Dokumente
xl = input ('Input lengths of stepped beam, default [40 32 24], ... ');
if (isempty(xl))
xl = [40 32 24];
else
end
e = input('Input modulus of material, mN/mm^2, default mild steel 206e+6 ... ');
if (isempty(e))
e=206e+6;
else
end
rho = input('Input density of material,kg/mm^3 , default mild steel 7.85e-6 ... ');
if (isempty(rho))
rho = 7.85e-6;
else
end
bj = input('Input global degree of freedom, default global degree of freedom [1 2 3 4;3 4 5 6;5 6 7
8] ... ');
if (isempty(bj))
bj = [1 2 3 4;3 4 5 6;5 6 7 8];
else
end
end
% Calculate area (a), area moment of Inertia (xi) and mass per unit of length (xmas) of
% the stepped beam
a = w.*t;
% Define area moment of inertia according to flap-wise or edge-wise
% vibration of the stepped beam.
vibrationdirection = input('enter "1" for edge-wise vibration, "enter" for flap-wise vibration ... ');
if (isempty(vibrationdirection))
vibrationdirection = 0;
else
end
if vibrationdirection == 0
xi=w.*t.^3/12;
else
xi=t.*w.^3/12;
end
for i=1:ne
xmas(i)=a(i)*rho;
end
% Size the stiffness and mass matrices
no = ne+1;
n = 2*no;
bigm = zeros(n,n);
bigk = zeros(n,n);
% Now build up the global stiffness and consistent mass matrices, element
% by element
for ii =1:ne
ai=zeros(4,n);
i1=bj(ii,1);
i2=bj(ii,2);
i3=bj(ii,3);
i4=bj(ii,4);
ai(1,i1)=1;
ai(2,i2)=1;
ai(3,i3)=1;
ai(4,i4)=1;
xm(1,1)=156;
xm(1,2)=22*xl(ii);
xm(1,3)=54;
xm(1,4)=-13*xl(ii);
xm(2,2)=4*xl(ii)^2;
xm(2,3)=13*xl(ii);
xm(2,4)=-3*xl(ii)^2;
xm(3,3)=156;
xm(3,4)=-22*xl(ii);
xm(4,4)=4*xl(ii)^2;
xk(1,1)=12;
xk(1,2)=6*xl(ii);
xk(1,3)=-12;
xk(1,4)=6*xl(ii);
xk(2,2)=4*xl(ii)^2;
xk(2,3)=-6*xl(ii);
xk(2,4)=2*xl(ii)^2;
xk(3,3)=12;
xk(3,4)=-6*xl(ii);
xk(4,4)=4*xl(ii)^2;
for i=1:4
for j=1:4
xm(j,i)=xm(i,j);
xk(j,i)=xk(i,j);
end
end
for i=1:4
for j=1:4
xm(i,j)=(((xmas(ii)*xl(ii))/420))*xm(i,j);
xk(i,j)=((e*xi(ii))/(xl(ii)^3))*xk(i,j);
end
end
for i=1:n
for j=1:4
ait(i,j)=ai(j,i);
end
end
xka=xk*ai;
xma=xm*ai;
aka=ait*xka;
ama=ait*xma;
for i=1:n
for j=1:n
bigm(i,j)=bigm(i,j)+ama(i,j);
bigk(i,j)=bigk(i,j)+aka(i,j);
end
end
end
% Application of boundary conditions
% Rows and columns corresponding to zero displacements are deleted
bigk(1:2,:) = [];
bigk(:,1:2) = [];
bigm(1:2,:) = [];
bigm(:,1:2) = [];
% Natural frequency
V1 = V.^(1/2)
W = diag(V1)
f=W/(2*pi)
have 2 papers published using these programs:
1. vibration analysis of a variable blade length wing turbine
2. modal testing of a simplified wind turbine blade