MCM Assignment 2
MCM Assignment 2
Code
%Sakshi Tonde
%C22021552707
%Semi-Empirical Approach to find E1, E2, u12, u21, G12 wrt Vf
%Inputs
close all;clear all;clc;
Ef=input('Enter Ef = ');
Em=input('Enter Em = ');
vf=input('Enter mu f = ');
vm=input('Enter mu m = ');
zeta1=input('Enter zeta1 = ');
%Calculations
n=11;
Vf=[0:0.1:1]
Gf=Ef/(2*(1+vf))
Gm=Em/(2*(1+vm))
for i=1:n
Vm=1-Vf(i);
E1(i)=(Ef*Vf(i))+(Em*Vm);
eta1=((Ef/Em)-1)/((Ef/Em)+zeta1);
E2(i)= Em*((1+(zeta1*eta1*Vf(i))))/(1-(eta1*Vf(i)));
u12(i)=(Vf(i)*vf)+(Vm*vm);
u21(i)= (u12(i)*E2(i))/E1(i);
if (Vf(i)>0.3)
zeta2=1+(40*(Vf(i)^10));
else
zeta2=1;
end
eta2=((Gf/Gm)-1)/((Gf/Gm)+zeta2);
G12(i)= Gm*(1+(zeta2*eta2*Vf(i)))/(1-(eta2*Vf(i)));
end
%Results
E1
E2
u12
u21
G12
%Plots
%E1 VS Vf
subplot(3,2,1)
plot(Vf,E1,'b')
grid on;
xlabel('Volume fraction of fibre Vf')
ylabel('Longitudinal Youngs Modulus GPa ')
legend('E1 vs Vf')
title('Variation wrt Youngs Modulus')
hold on;
%E2 VS Vf
subplot(3,2,2)
plot(Vf,E2,'r')
grid on;
xlabel('Volume fraction of fibre Vf')
ylabel('Transverse Youngs Modulus GPa')
legend('E2 vs Vf')
title('Variation wrt Youngs Modulus')
hold on;
%u12 vs Vf
subplot(3,2,3)
plot(Vf,u12,'g')
grid on;
xlabel('Volume fraction of fibre Vf');
ylabel('Minor Poissons Ratio');
legend('u12 vs Vf')
title('Variation wrt Poissons Ratio')
hold on;
%u21 vs Vf
subplot(3,2,4)
plot(Vf,u21,'b')
grid on;
xlabel('Volume fraction of fibre Vf');
ylabel('Major Poissons Ratio');
legend('u21 vs Vf')
title('Variation wrt Poissons Ratio')
hold on;
%G12 VS Vf
subplot(3,2,5.5)
plot(Vf,G12,'g')
grid on;
xlabel('Volume fraction of fiber Vf')
ylabel('In plane Shear modulus Gpa');
legend('G12 vs Vf')
title('Variation wrt Shear Modulus')
Code Output
Enter Ef = 85
Enter Em = 3.4
Enter mu f = 0.2
Enter mu m = 0.3
Enter zeta1 = 2
Vf =
Gf =
35.4167
Gm =
1.3077
E1 =
E2 =
u12 =
G12 =
>>