SlideShare a Scribd company logo
1 of 3
clc
clear all
%% inputs
%modulus of elasticity (GPa)
Em=3.4; Ef=72.345;
%thermal expansion coefficient (/c)
alpham=54*10^-4; alphaf=-0.9*10^-4;
%poisson's ratio
neum=0.38; neuf=0.22;
%%shear modulus (GPa)
Gm=Em/(2*(1+neum)); Gf=Ef/(2*(1+neuf));
%volume fraction
Vf=0.5; Vm=1-Vf;
theta(1)=0; theta(2)=90; theta(3)=45; theta(4)=theta(3);
theta(5)=theta(2);
theta(6)=theta(1);
z(1)=0; z(2)=1; z(3)=3; z(4)=6; z(5)=9; z(6)=11; z(7)=12;
%% outputs
E1=Vf*Ef+Vm*Em;
E2=(Em*Ef)/(Vm*Ef+Vf*Em);
alpha1=(Vf*Ef*alphaf+Vm*Em*alpham)/(Vf*Ef+Vm*Em);
alpha2=Vm*alpham+Vf*alphaf;
G12=(Gm*Gf)/(Vf*Gm+Vm*Gf);
neu12=Vf*neuf+Vm*neum;
delta=1-(((neu12)^2)*(E2/E1));
Q=[(E1/delta) ((neu12*E2)/delta) 0; ((neu12*E2)/delta) (E2/delta) 0; 0
0 G12];
t(1)=z(7)-z(6);
t(2)=z(6)-z(5);
t(3)=z(5)-z(4);
t(4)=t(3);
t(5)=t(2);
t(6)=t(1);
t_total=2*t(1)+2*t(2)+2*t(3);
t_theta1=t(1)+t(6);
t_theta2=t(2)+t(5);
t_theta3=t(3)+t(4);
A=zeros(3);
B=zeros(3);
D=zeros(3);
alpha=0:0.1:1;
gamma=0:0.1:1;
beta=0;
for L=1:length(alpha)
for j=1:1:length(gamma)
fori=1:1:6
C(i)=cosd(theta(i)) ;
S(i)=sind(theta(i));
T(:,:,i)=[(C(i)^2) (S(i)^2) (2*S(i)*C(i)); (S(i)^2) (C(i)^2) (-
2*S(i)*C(i)); (-C(i)*S(i)) (S(i)*C(i)) ((C(i)^2)-(S(i)^2))];
Q_bar(:,:,i)=inv(T(:,:,i))*Q*T(:,:,i);
ifi==1|i==6
a(:,:,i)=Q_bar(:,:,i)*((alpha(L)*t_total)/2);
b(:,:,i)=Q_bar(:,:,i)*((alpha(L)*t_total)/2)*(z(i+1)+z(i));
d(:,:,i)=Q_bar(:,:,i)*(((alpha(L)*t_total)/2)^3+3*(z(i+1)^2*z(i)-
z(i+1)*z(i)^2));
end
ifi==2|i==5
a(:,:,i)=Q_bar(:,:,i)*((beta*t_total)/2);
b(:,:,i)=Q_bar(:,:,i)*((beta*t_total)/2)*(z(i+1)+z(i));
d(:,:,i)=Q_bar(:,:,i)*(((beta*t_total)/2)^3+3*(z(i+1)^2*z(i)-
z(i+1)*z(i)^2));
end
ifi==3|i==4
a(:,:,i)=Q_bar(:,:,i)*((gamma(j)*t_total)/2)
b(:,:,i)=Q_bar(:,:,i)*((gamma(j)*t_total)/2)*(z(i+1)+z(i));
d(:,:,i)=Q_bar(:,:,i)*(((gamma(j)*t_total)/2)^3+3*(z(i+1)^2*z(i)-
z(i+1)*z(i)^2));
end
ifi==1
A=a(:,:,1)
B=b(:,:,1)
D=d(:,:,1)
else
A=A+a(:,:,i)
B=B+b(:,:,i)
D=D+d(:,:,i)
end
end
Ex(j)=((A(1,1)*A(2,2))/(t_theta3*A(2,2)))-
(((A(1,2).^2)*gamma(j))/(t_theta3*A(2,2)));
neuxy(j)=A(1,2)/A(2,2);
Gxy(j)=(gamma(j)*A(3,3))/t_theta3;
Exb(j)=(gamma(j)^3*12*(D(1,1)*D(2,2)-D(1,2).^2))/(D(2,2)*t_theta3.^3);
neuxyb(j)=D(1,2)/D(2,2);
end
figure(1)
plot (gamma, Ex)
hold on
grid on
legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1
',11);
xlabel('string')
ylabel('Ex')
figure(2)
plot (gamma, neuxy)
hold on
grid on
legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1
',11);
xlabel('string')
ylabel('neuxy')
figure(3)
plot (gamma, Exb)
hold on
grid on
legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1
',11);
xlabel('string')
ylabel('string')
hold off
figure(4)
plot (gamma, neuxyb)
hold on
grid on
legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1
',11);
xlabel('string')
ylabel('string')
hold off
end

More Related Content

Similar to Project2 (6)

Echantionnage.docx
Echantionnage.docxEchantionnage.docx
Echantionnage.docx
 
Capsizing
CapsizingCapsizing
Capsizing
 
Project 1
Project 1Project 1
Project 1
 
Matlab code of chapter 4
Matlab code of chapter 4Matlab code of chapter 4
Matlab code of chapter 4
 
matlab codes.pdf
matlab codes.pdfmatlab codes.pdf
matlab codes.pdf
 
H.w.5
H.w.5H.w.5
H.w.5
 

Recently uploaded

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 

Recently uploaded (20)

Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 

Project2

  • 1. clc clear all %% inputs %modulus of elasticity (GPa) Em=3.4; Ef=72.345; %thermal expansion coefficient (/c) alpham=54*10^-4; alphaf=-0.9*10^-4; %poisson's ratio neum=0.38; neuf=0.22; %%shear modulus (GPa) Gm=Em/(2*(1+neum)); Gf=Ef/(2*(1+neuf)); %volume fraction Vf=0.5; Vm=1-Vf; theta(1)=0; theta(2)=90; theta(3)=45; theta(4)=theta(3); theta(5)=theta(2); theta(6)=theta(1); z(1)=0; z(2)=1; z(3)=3; z(4)=6; z(5)=9; z(6)=11; z(7)=12; %% outputs E1=Vf*Ef+Vm*Em; E2=(Em*Ef)/(Vm*Ef+Vf*Em); alpha1=(Vf*Ef*alphaf+Vm*Em*alpham)/(Vf*Ef+Vm*Em); alpha2=Vm*alpham+Vf*alphaf; G12=(Gm*Gf)/(Vf*Gm+Vm*Gf); neu12=Vf*neuf+Vm*neum; delta=1-(((neu12)^2)*(E2/E1)); Q=[(E1/delta) ((neu12*E2)/delta) 0; ((neu12*E2)/delta) (E2/delta) 0; 0 0 G12]; t(1)=z(7)-z(6); t(2)=z(6)-z(5); t(3)=z(5)-z(4); t(4)=t(3); t(5)=t(2); t(6)=t(1); t_total=2*t(1)+2*t(2)+2*t(3); t_theta1=t(1)+t(6); t_theta2=t(2)+t(5); t_theta3=t(3)+t(4); A=zeros(3); B=zeros(3);
  • 2. D=zeros(3); alpha=0:0.1:1; gamma=0:0.1:1; beta=0; for L=1:length(alpha) for j=1:1:length(gamma) fori=1:1:6 C(i)=cosd(theta(i)) ; S(i)=sind(theta(i)); T(:,:,i)=[(C(i)^2) (S(i)^2) (2*S(i)*C(i)); (S(i)^2) (C(i)^2) (- 2*S(i)*C(i)); (-C(i)*S(i)) (S(i)*C(i)) ((C(i)^2)-(S(i)^2))]; Q_bar(:,:,i)=inv(T(:,:,i))*Q*T(:,:,i); ifi==1|i==6 a(:,:,i)=Q_bar(:,:,i)*((alpha(L)*t_total)/2); b(:,:,i)=Q_bar(:,:,i)*((alpha(L)*t_total)/2)*(z(i+1)+z(i)); d(:,:,i)=Q_bar(:,:,i)*(((alpha(L)*t_total)/2)^3+3*(z(i+1)^2*z(i)- z(i+1)*z(i)^2)); end ifi==2|i==5 a(:,:,i)=Q_bar(:,:,i)*((beta*t_total)/2); b(:,:,i)=Q_bar(:,:,i)*((beta*t_total)/2)*(z(i+1)+z(i)); d(:,:,i)=Q_bar(:,:,i)*(((beta*t_total)/2)^3+3*(z(i+1)^2*z(i)- z(i+1)*z(i)^2)); end ifi==3|i==4 a(:,:,i)=Q_bar(:,:,i)*((gamma(j)*t_total)/2) b(:,:,i)=Q_bar(:,:,i)*((gamma(j)*t_total)/2)*(z(i+1)+z(i)); d(:,:,i)=Q_bar(:,:,i)*(((gamma(j)*t_total)/2)^3+3*(z(i+1)^2*z(i)- z(i+1)*z(i)^2)); end ifi==1 A=a(:,:,1) B=b(:,:,1) D=d(:,:,1) else A=A+a(:,:,i) B=B+b(:,:,i) D=D+d(:,:,i) end end Ex(j)=((A(1,1)*A(2,2))/(t_theta3*A(2,2)))- (((A(1,2).^2)*gamma(j))/(t_theta3*A(2,2))); neuxy(j)=A(1,2)/A(2,2); Gxy(j)=(gamma(j)*A(3,3))/t_theta3; Exb(j)=(gamma(j)^3*12*(D(1,1)*D(2,2)-D(1,2).^2))/(D(2,2)*t_theta3.^3); neuxyb(j)=D(1,2)/D(2,2); end figure(1) plot (gamma, Ex) hold on grid on legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1 ',11);
  • 3. xlabel('string') ylabel('Ex') figure(2) plot (gamma, neuxy) hold on grid on legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1 ',11); xlabel('string') ylabel('neuxy') figure(3) plot (gamma, Exb) hold on grid on legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1 ',11); xlabel('string') ylabel('string') hold off figure(4) plot (gamma, neuxyb) hold on grid on legend('0','r','0.1','0.2','0.3','0.4','0.5','0.6','0.7','0.8','0.9','1 ',11); xlabel('string') ylabel('string') hold off end