Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

%If we starts from fibers and matrices

%{
Em=input(' Please enter E matrix = ');
Ef=input(' Please enter E fiber = ');
neu_m=input(' Please enter NEU matrix = ');
neu_f=input(' Please enter NEU fiber = ');
Vf=input(' Please enter Fiber Volume Ratio = ');
Vm=1-Vf;
E1=(Vm*Em)+(Vf*Ef);
E2=(Em*Ef)/((Vf*Em)+(Vm*Ef));
Gm=Em/(2*(1+neu_m));
Gf=Ef/(2*(1+neu_f));
neu_12=(Vf*neu_f)+(Vm*neu_m);
neu_21=(E2/E1)*neu_12;
G12=Gm/(Vm+((Vf*Gm)/Gf));
eta23=(3-(4*neu_m)+(Gm/Gf))/(4*(1-neu_m));
G23=Gm*((Vf+(eta23*(1-Vf)))/((eta23*(1-Vf))+((Vf*Gm)/Gf)));

%}
%If we start from Lamina calculations
n=input('Please enter No. of laminas = ');
E1=input('Please enter E1 = ');
E2=input('Please enter E2 = ');
neu_12=input('Please enter neu_12 = ');
neu_21=input('Please enter neu_21 = ');
G12=input('Please enter G12 = ');
for i=1:n;
disp('For lamina No. = ');disp(i);
z_upper=input('Please enter upper distance of lamina = ');
z_lower=input('Please enter lower distance of lamina = ');
disp('Z_upper = ');disp(z_upper);
disp('Z_lower = ');disp(z_lower);
theta(i)=input('Please enter lamina inclination angle in degree =
');
th(i)=rad2deg(theta(i));
C=cos(th(i));S=sin(th(i));
T=[C^2,S^2,S*C;S^2,C^2,-S*C;-2*S*C,2*S*C,((C^2)-(S^2))];
disp('T matrix = ');disp(T);
T_T=T';
disp('T-transpose = ');disp(T_T);
Delta=(1-(neu_12*neu_21));
Q11=E1/Delta;

Q22=E2/Delta;
Q12=(neu_12*E2)/Delta;
Q66=G12;
Q=[Q11,Q12,0;Q12,Q22,0;0,0,Q66];
disp('Q matrix = ');disp(Q);
Q_step=T_T.*Q;
disp('Qstep = '); disp(Q_step);
Qbar=Q_step.*T;
disp('Qbar = '); disp(Qbar);
Z1=(z_upper-z_lower);
disp('Z1 = ');disp(Z1);
A_matrix=Qbar.*[Z1,0,0;0,Z1,0;0,0,Z1];
Z2=(((z_upper^2)-(z_lower^2)))/2;
disp('Z2 = ');disp(Z2);
B_matrix=Z2*Qbar;

Z3=(((z_upper^3)-(z_lower^3)))/3;
disp('Z3 = ');disp(Z3);
D_matrix=Z3*Qbar;
disp('i = ');disp(i);
disp('A_matrix for this lamina = ');disp(A_matrix);
disp('B_matrix for this lamina = ');disp(B_matrix);
disp('D_matrix for this lamina = ');disp(D_matrix);
end
A_matrix_tot=input('Enter Sum of Matrix A = ');
B_matrix_tot=input('Enter Sum of Matrix B = ');
D_matrix_tot=input('Enter Sum of Matrix D = ');
disp('A_matrix_tot = ');disp(A_matrix_tot);
disp('B_matrix_tot = ');disp(B_matrix_tot);
disp('D_matrix_tot = ');disp(D_matrix_tot);

Ex=(((A_matrix_tot(1,1))*(A_matrix_tot(2,2)))((A_matrix_tot(1,2))^2))/(thickness*(A_matrix_tot(2,2)));
neu_xy=(A_matrix_tot(1,2))/(A_matrix_tot(2,2));

You might also like