Académique Documents
Professionnel Documents
Culture Documents
clc
clear all
Angle=zeros(N,1);
thick=zeros(N,1);
%Total Thickness
h=0;
for i=1:1:N;
h=h+thick(i);
end
Z(1)=-h/2;
Z(N+1)=h/2;
for i=2:1:N;
Z(i)=Z(i-1)+thick(i-1);
end ;
for i=1:1:N
A=A+Qbar(Q,Angle(i))*(Z(i+1)-Z(i));
B=B+Qbar(Q,Angle(i))*(((Z(i+1)^2)-(Z(i)^2))/2);
D=D+Qbar(Q,Angle(i))*(((Z(i+1)^3)-(Z(i)^3))/3);
end
K=[A B;B D]
Q3 and Q4 Matleb Code
clc
clear all
EL=38e9;
ET=9e9;
GLT=3.6e9;
vLT=.32;
Force=zeros(3,1);
%Unit Force in x,y and xy direction
for i=1:1:3;
fprintf('Force %d..........', i);
pf = 'Force? ';
Force(i)=input(pf);
end
Moment=zeros(3,1);
%Moment in x,y and xy direction
for i=1:1:3;
fprintf('Moment %d..........', i);
pm = 'Moment? ';
Moment(i)=input(pm);
end
F=zeros(6,1);
%Force Matrix
F=[Force(1) Force(2) Force(3) Moment(1) Moment(2) Moment(3)]';
S=S(EL,ET,GLT,vLT);
Q=inv(S);
Angle=zeros(N,1);
thick=zeros(N,1);
%Total Thickness
h=0;
for i=1:1:N;
h=h+thick(i);
end
Z(1)=-h/2;
Z(N+1)=h/2;
for i=2:1:N;
Z(i)=Z(i-1)+thick(i-1);
end ;
for i=1:1:N
A=A+Qbar(Q,Angle(i))*(Z(i+1)-Z(i));
B=B+Qbar(Q,Angle(i))*(((Z(i+1)^2)-(Z(i)^2))/2);
D=D+Qbar(Q,Angle(i))*(((Z(i+1)^3)-(Z(i)^3))/3);
end
K=[A B;B D]
exo=single(sol.exo);
eyo=single(sol.eyo);
exyo=single(sol.exyo);
kx=single(sol.kx);
ky=single(sol.ky);
kxy=single(sol.kxy);
MidPlaneStrain=[exo;eyo;exyo]
Curvature_Terms=[kx;ky;kxy]
for i=1:1:N;
fprintf('Layer %d..........', i);
%Strain in x-y direction
GlobalStrain1= MidPlaneStrain +Z(i)*Curvature_Terms;
GlobalStrain2= MidPlaneStrain +Z(i+1)*Curvature_Terms;