From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 866/CH11/EX11.1/11_1.sce | 23 ++++++++++++++++++++ 866/CH11/EX11.2/11_2.sce | 18 ++++++++++++++++ 866/CH11/EX12.8/12_8.sce | 9 ++++++++ 866/CH12/EX12.1/12_1.sce | 16 ++++++++++++++ 866/CH12/EX12.10/12_10.sce | 14 ++++++++++++ 866/CH12/EX12.11/12_11.sce | 17 +++++++++++++++ 866/CH12/EX12.2/12_2.sce | 20 +++++++++++++++++ 866/CH12/EX12.3/12_3.sce | 13 +++++++++++ 866/CH12/EX12.4/12_4.sce | 17 +++++++++++++++ 866/CH12/EX12.5/12_5.sce | 9 ++++++++ 866/CH12/EX12.6/12_6.sce | 15 +++++++++++++ 866/CH12/EX12.7/12_7.sce | 14 ++++++++++++ 866/CH12/EX12.8/12_8.sce | 9 ++++++++ 866/CH12/EX12.9/12_9.sce | 12 +++++++++++ 866/CH14/EX14.1/14_1.sce | 19 ++++++++++++++++ 866/CH14/EX14.10/14_10.sce | 13 +++++++++++ 866/CH14/EX14.2/14_2.sce | 19 ++++++++++++++++ 866/CH14/EX14.3/14_3.sce | 24 +++++++++++++++++++++ 866/CH14/EX14.5/14_5.sce | 24 +++++++++++++++++++++ 866/CH14/EX14.6/14_6.sce | 21 ++++++++++++++++++ 866/CH14/EX14.7/14_7.sce | 21 ++++++++++++++++++ 866/CH14/EX14.8/14_8.sce | 19 ++++++++++++++++ 866/CH14/EX14.9/14_9.sce | 15 +++++++++++++ 866/CH15/EX15.3/15_3.sce | 10 +++++++++ 866/CH16/EX16.1/16_1.sce | 11 ++++++++++ 866/CH16/EX16.13/16_13.sce | 23 ++++++++++++++++++++ 866/CH16/EX16.18/16_18.sce | 27 +++++++++++++++++++++++ 866/CH16/EX16.19/16_19.sce | 19 ++++++++++++++++ 866/CH16/EX16.2/16_2.sce | 14 ++++++++++++ 866/CH16/EX16.20/16_20.sce | 25 +++++++++++++++++++++ 866/CH16/EX16.21/16_21.sce | 22 +++++++++++++++++++ 866/CH16/EX16.22/16_22.sce | 15 +++++++++++++ 866/CH16/EX16.23/16_23.sce | 20 +++++++++++++++++ 866/CH16/EX16.3/16_3.sce | 13 +++++++++++ 866/CH16/EX16.4/16_4.sce | 14 ++++++++++++ 866/CH16/EX16.7/16_7.sce | 31 ++++++++++++++++++++++++++ 866/CH18/EX18.1/18_1.sce | 11 ++++++++++ 866/CH18/EX18.2/18_2.sce | 12 +++++++++++ 866/CH18/EX18.3/18_3.sce | 15 +++++++++++++ 866/CH18/EX18.7/18_7.sce | 13 +++++++++++ 866/CH2/EX2.1/2_1.sce | 17 +++++++++++++++ 866/CH2/EX2.2/2_2.sce | 16 ++++++++++++++ 866/CH2/EX2.3/2_3.sce | 21 ++++++++++++++++++ 866/CH2/EX2.4/2_4.sce | 23 ++++++++++++++++++++ 866/CH20/EX20.1/20_1.sce | 21 ++++++++++++++++++ 866/CH20/EX20.2/20_2.sce | 13 +++++++++++ 866/CH20/EX20.3/20_3.sce | 17 +++++++++++++++ 866/CH20/EX20.4/20_4.sce | 20 +++++++++++++++++ 866/CH20/EX20.6/20_6.sce | 20 +++++++++++++++++ 866/CH20/EX20.7/20_7.sce | 22 +++++++++++++++++++ 866/CH20/EX20.8/20_8.sce | 21 ++++++++++++++++++ 866/CH3/EX3.1/3_1.sce | 8 +++++++ 866/CH3/EX3.12/3_12.sce | 12 +++++++++++ 866/CH3/EX3.2/3_2.sce | 10 +++++++++ 866/CH3/EX3.3/3_3.sce | 15 +++++++++++++ 866/CH4/EX4.2/4_2.sce | 30 ++++++++++++++++++++++++++ 866/CH4/EX4.3/4_3.sce | 23 ++++++++++++++++++++ 866/CH4/EX4.4/4_4.sce | 53 +++++++++++++++++++++++++++++++++++++++++++++ 866/CH4/EX4.6/4_6.sce | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 866/CH5/EX5.1/5_1.sce | 25 +++++++++++++++++++++ 866/CH5/EX5.2/5_2.sce | 23 ++++++++++++++++++++ 866/CH5/EX5.4/5_4.sce | 15 +++++++++++++ 866/CH5/EX5.5/5_5.sce | 24 +++++++++++++++++++++ 866/CH6/EX6.1/6_1.sce | 19 ++++++++++++++++ 866/CH6/EX6.2/6_2.sce | 29 +++++++++++++++++++++++++ 866/CH7/EX7.1/7_1.sce | 10 +++++++++ 866/CH7/EX7.2/7_2.sce | 17 +++++++++++++++ 866/CH7/EX7.3/7_3.sce | 15 +++++++++++++ 866/CH7/EX7.4/7_4.sce | 13 +++++++++++ 866/CH7/EX7.5/7_5.sce | 23 ++++++++++++++++++++ 866/CH7/EX7.6/7_6.sce | 29 +++++++++++++++++++++++++ 866/CH7/EX7.7/7_7.sce | 15 +++++++++++++ 866/CH7/EX7.8/7_8.sce | 14 ++++++++++++ 866/CH9/EX9.1/9_1.sce | 15 +++++++++++++ 866/CH9/EX9.2/9_2.sce | 16 ++++++++++++++ 866/CH9/EX9.3/9_3.sce | 13 +++++++++++ 866/CH9/EX9.4/9_4.sce | 19 ++++++++++++++++ 866/CH9/EX9.5/9_5.sce | 18 ++++++++++++++++ 866/CH9/EX9.6/9_6.sce | 10 +++++++++ 866/CH9/EX9.8/9_8.sce | 20 +++++++++++++++++ 80 files changed, 1474 insertions(+) create mode 100755 866/CH11/EX11.1/11_1.sce create mode 100755 866/CH11/EX11.2/11_2.sce create mode 100755 866/CH11/EX12.8/12_8.sce create mode 100755 866/CH12/EX12.1/12_1.sce create mode 100755 866/CH12/EX12.10/12_10.sce create mode 100755 866/CH12/EX12.11/12_11.sce create mode 100755 866/CH12/EX12.2/12_2.sce create mode 100755 866/CH12/EX12.3/12_3.sce create mode 100755 866/CH12/EX12.4/12_4.sce create mode 100755 866/CH12/EX12.5/12_5.sce create mode 100755 866/CH12/EX12.6/12_6.sce create mode 100755 866/CH12/EX12.7/12_7.sce create mode 100755 866/CH12/EX12.8/12_8.sce create mode 100755 866/CH12/EX12.9/12_9.sce create mode 100755 866/CH14/EX14.1/14_1.sce create mode 100755 866/CH14/EX14.10/14_10.sce create mode 100755 866/CH14/EX14.2/14_2.sce create mode 100755 866/CH14/EX14.3/14_3.sce create mode 100755 866/CH14/EX14.5/14_5.sce create mode 100755 866/CH14/EX14.6/14_6.sce create mode 100755 866/CH14/EX14.7/14_7.sce create mode 100755 866/CH14/EX14.8/14_8.sce create mode 100755 866/CH14/EX14.9/14_9.sce create mode 100755 866/CH15/EX15.3/15_3.sce create mode 100755 866/CH16/EX16.1/16_1.sce create mode 100755 866/CH16/EX16.13/16_13.sce create mode 100755 866/CH16/EX16.18/16_18.sce create mode 100755 866/CH16/EX16.19/16_19.sce create mode 100755 866/CH16/EX16.2/16_2.sce create mode 100755 866/CH16/EX16.20/16_20.sce create mode 100755 866/CH16/EX16.21/16_21.sce create mode 100755 866/CH16/EX16.22/16_22.sce create mode 100755 866/CH16/EX16.23/16_23.sce create mode 100755 866/CH16/EX16.3/16_3.sce create mode 100755 866/CH16/EX16.4/16_4.sce create mode 100755 866/CH16/EX16.7/16_7.sce create mode 100755 866/CH18/EX18.1/18_1.sce create mode 100755 866/CH18/EX18.2/18_2.sce create mode 100755 866/CH18/EX18.3/18_3.sce create mode 100755 866/CH18/EX18.7/18_7.sce create mode 100755 866/CH2/EX2.1/2_1.sce create mode 100755 866/CH2/EX2.2/2_2.sce create mode 100755 866/CH2/EX2.3/2_3.sce create mode 100755 866/CH2/EX2.4/2_4.sce create mode 100755 866/CH20/EX20.1/20_1.sce create mode 100755 866/CH20/EX20.2/20_2.sce create mode 100755 866/CH20/EX20.3/20_3.sce create mode 100755 866/CH20/EX20.4/20_4.sce create mode 100755 866/CH20/EX20.6/20_6.sce create mode 100755 866/CH20/EX20.7/20_7.sce create mode 100755 866/CH20/EX20.8/20_8.sce create mode 100755 866/CH3/EX3.1/3_1.sce create mode 100755 866/CH3/EX3.12/3_12.sce create mode 100755 866/CH3/EX3.2/3_2.sce create mode 100755 866/CH3/EX3.3/3_3.sce create mode 100755 866/CH4/EX4.2/4_2.sce create mode 100755 866/CH4/EX4.3/4_3.sce create mode 100755 866/CH4/EX4.4/4_4.sce create mode 100755 866/CH4/EX4.6/4_6.sce create mode 100755 866/CH5/EX5.1/5_1.sce create mode 100755 866/CH5/EX5.2/5_2.sce create mode 100755 866/CH5/EX5.4/5_4.sce create mode 100755 866/CH5/EX5.5/5_5.sce create mode 100755 866/CH6/EX6.1/6_1.sce create mode 100755 866/CH6/EX6.2/6_2.sce create mode 100755 866/CH7/EX7.1/7_1.sce create mode 100755 866/CH7/EX7.2/7_2.sce create mode 100755 866/CH7/EX7.3/7_3.sce create mode 100755 866/CH7/EX7.4/7_4.sce create mode 100755 866/CH7/EX7.5/7_5.sce create mode 100755 866/CH7/EX7.6/7_6.sce create mode 100755 866/CH7/EX7.7/7_7.sce create mode 100755 866/CH7/EX7.8/7_8.sce create mode 100755 866/CH9/EX9.1/9_1.sce create mode 100755 866/CH9/EX9.2/9_2.sce create mode 100755 866/CH9/EX9.3/9_3.sce create mode 100755 866/CH9/EX9.4/9_4.sce create mode 100755 866/CH9/EX9.5/9_5.sce create mode 100755 866/CH9/EX9.6/9_6.sce create mode 100755 866/CH9/EX9.8/9_8.sce (limited to '866') diff --git a/866/CH11/EX11.1/11_1.sce b/866/CH11/EX11.1/11_1.sce new file mode 100755 index 000000000..60585c981 --- /dev/null +++ b/866/CH11/EX11.1/11_1.sce @@ -0,0 +1,23 @@ +clc +//initialisation of variables +Lab= 2 //m +Lbc= 0.5 //m +Dab= 200 //mm +Dbc= 100 //mm +T= 50 //KNm +G= 80000 //N/mm^2 +//CALCULATIONS +Jab= %pi*Dab^4/32 +Jbc= %pi*Dbc^4/32 +Tc= T/((Lbc*Jab)/(Lab*Jbc)+1) +Ta= T-Tc +if(Dab=BMS then + printf("Limiting material is Steel and moment of resistance of the beam is %f",BMS) +else + printf("Limiting material is Concrete and moment of resistance of the beam is %f",BMC) +end diff --git a/866/CH12/EX12.5/12_5.sce b/866/CH12/EX12.5/12_5.sce new file mode 100755 index 000000000..287d5efe1 --- /dev/null +++ b/866/CH12/EX12.5/12_5.sce @@ -0,0 +1,9 @@ +clc +d=400 //mm +m=15 +ASs=120 //N/mm^2 +ASc=6.5 //N/mm^2 +BM=40*10^3 //Nm +n=d/(ASs/(ASc*m) +1 ) +As=BM*10^3/(ASs*(d-n/3)) +printf("required area= %f mm^2",As) diff --git a/866/CH12/EX12.6/12_6.sce b/866/CH12/EX12.6/12_6.sce new file mode 100755 index 000000000..b74a57828 --- /dev/null +++ b/866/CH12/EX12.6/12_6.sce @@ -0,0 +1,15 @@ +clc +b=180 //mm +d=360 //mm +m=15 +BM=45*10^3 //Nm +depth=40 //mm +Sc=8.5 //N/mm^2 +Ss=140 //N/mm^2 +n=d/(Ss/(Sc*m) +1 ) +Ast=(BM*10^3 - Sc*b*n*(n/3 - depth)/2)/(Ss*(d-depth)) +Asc=(m*Ast*(d-n) - b*n^2 /2 )/((m-1)*(n-depth)) +SigmaSC=-m*(n-depth)*Sc/n +printf("Area of reinforcement steel = %f mm^2",Ast) +printf("\n Area of reinforcement concrete= %f mm^2",Asc) +printf("\n Stress in compresson steel=%f N/mm^2 compression",SigmaSC) diff --git a/866/CH12/EX12.7/12_7.sce b/866/CH12/EX12.7/12_7.sce new file mode 100755 index 000000000..c1c6f3021 --- /dev/null +++ b/866/CH12/EX12.7/12_7.sce @@ -0,0 +1,14 @@ +//CLC +d= 600 //mm +b= 250 //mm +BM= 350 //KNm +t= 28 +Sc= 30 //N/mm^2 +T= 400 //N/mm^2 +//CALCULATIONS +Mu= 0.15*Sc*b*d^2*10^-6 +n= d-sqrt(d^2-(2*BM*10^6/(0.4*Sc*b))) +l= d-(n/2) +As= BM*10^6/(l*T*0.87) +//RESULTS +printf("As(mm^2) = %.2f",As) diff --git a/866/CH12/EX12.8/12_8.sce b/866/CH12/EX12.8/12_8.sce new file mode 100755 index 000000000..a23400a16 --- /dev/null +++ b/866/CH12/EX12.8/12_8.sce @@ -0,0 +1,9 @@ +clc +b=250 //mm +BM=350*10^3 //Nm +SigmaCu=30 //N/mm^2 +SigmaY=400 //N/mm^2 +d1=sqrt(BM*10^3 /(0.15*SigmaCu*b)) +lever=3*d1/4 +As=BM*10^3/(0.87*SigmaY*lever) +printf("As=%f mmm^2",As) diff --git a/866/CH12/EX12.9/12_9.sce b/866/CH12/EX12.9/12_9.sce new file mode 100755 index 000000000..e745d8fab --- /dev/null +++ b/866/CH12/EX12.9/12_9.sce @@ -0,0 +1,12 @@ +clc +b=300 //mm +d=618 //mm +depth=60 //mm +SigmaCu=30 //N/mm^2 +SigmaY=410 //N/mm^2 +BM=650 //Nm +Mu=0.15*SigmaCu*b*d^2 *10^(-6) +Asc=(BM-Mu)*10^6 /((d-depth)*0.72*SigmaY) +Ast=Mu*10^6/(0.75*d*SigmaY*0.87) + (BM-Mu)*10^6/((d-depth)*0.87*SigmaY) +printf("Asc=%f mm^2",Asc) +printf("\n Ast=%f mm^2",Ast) diff --git a/866/CH14/EX14.1/14_1.sce b/866/CH14/EX14.1/14_1.sce new file mode 100755 index 000000000..7ead5d32e --- /dev/null +++ b/866/CH14/EX14.1/14_1.sce @@ -0,0 +1,19 @@ +clc +//initialisation of variables +d= 2 //m +t= 20 //mm +p= 1.5 //N/mm^2 +load= 2500 //KN +alpha= 60 //degrees +//CALCULATIONS +Cs= (p*d*10^3)/(2*t) +Ls= (p*d*10^3)/(4*t) +Ds= (load*10^3)/(%pi*d*t*10^3) +Ts= Ls+Ds +sigman= (Ts*t*(cosd(90-alpha))^2+Cs*t*(cosd(alpha))^2)/t +tab= Ts*sind(alpha)*cosd(alpha)-Cs*sind(alpha)*cosd(alpha) +tmax= (Ts-Cs)/2 +//RESULTS +printf ('direct stress= %.1f N/mm^2',sigman) +printf (' \n Shear stress=%.1f N/mm^2',tab) +printf (' \n maximum Shear stress=%.1f N/mm^2',tmax) diff --git a/866/CH14/EX14.10/14_10.sce b/866/CH14/EX14.10/14_10.sce new file mode 100755 index 000000000..9358e82f0 --- /dev/null +++ b/866/CH14/EX14.10/14_10.sce @@ -0,0 +1,13 @@ +clc +//initialisation of variables +BeamL= 250 //mm +BeamH= 500 //mm +spanlength= 4 //m +Failurestress= 1.5 //N/mm^2 +//CALCULATIONS +W1= (Failurestress*BeamL*BeamH^3)/(10^3*BeamL*12) +W2= (4*Failurestress*BeamL*BeamH)/3 +if(W1>W2) + printf ("W2= %.2e kN",W2) +else + printf ("W2= %.2e kN",W1) diff --git a/866/CH14/EX14.2/14_2.sce b/866/CH14/EX14.2/14_2.sce new file mode 100755 index 000000000..12ff51aff --- /dev/null +++ b/866/CH14/EX14.2/14_2.sce @@ -0,0 +1,19 @@ +clc +//initialisation of variables +load= 50000 //N +torque= 1200 //Nm +d= 60//mm +t= 1.5 //mm +alpha= 60 //degrees +//CALCULATIONS +BM= load*t +axialload= (load*4)/(%pi*d^2) +bendingmoment= (BM*d*64)/(%pi*d^4*2) +Ts= axialload+bendingmoment +shearstress= (torque*10^3*d*32)/(2*%pi*d^4) +sigman= -Ts*(cosd(alpha-30))^2+shearstress*cosd(alpha-30)*sind(alpha-30)+shearstress*cosd(alpha-30)*sind(alpha-30) +T= -Ts*sind(alpha)*cosd(alpha)-shearstress*(sind(alpha))^2+shearstress*(cosd(alpha)^2) +//RESULTS +printf ('direct stress= %.1f N/mm^2',sigman) +printf (' \n Shear stress=%.1f N/mm^2',T) + diff --git a/866/CH14/EX14.3/14_3.sce b/866/CH14/EX14.3/14_3.sce new file mode 100755 index 000000000..af9f5eecd --- /dev/null +++ b/866/CH14/EX14.3/14_3.sce @@ -0,0 +1,24 @@ +clc +//initialisation of variables +directstress= 80 //N.mm^2 +shearstress= 45 //N/mm^2 +//CALCULATIONS +Sx= directstress +Sy= 0 +Txy= shearstress +sigma1= ((Sx+Sy)/2)+(sqrt((Sx-Sy)^2+4*Txy^2))/2 +sigma2= ((Sx+Sy)/2)-(sqrt((Sx-Sy)^2+4*Txy^2))/2 +theta= (atand(-((2*Txy)/(Sx-Sy))))/2 +direction1= theta +direction2= theta-90 +Tmax= (sigma1-sigma2) /2 +theta1= direction1-45 +theta2= direction2-45 +//RESULTS +printf ('principal stress1= %.1f N/mm^2',sigma1) +printf (' \n principal stress2=%.1f N/mm^2',sigma2) +printf (' \n direction of principal stress1=%.1f degrees',direction1) +printf (' \n.direction of principal stress2=%.1f degrees',direction2) +printf (' \n.maximum shear stress=%.1f N/mm^2',Tmax) +printf (' \n.derection of plane1=%.1f degrees',theta1) +printf (' \n.derection of plane2=%.1f degrees',theta2) diff --git a/866/CH14/EX14.5/14_5.sce b/866/CH14/EX14.5/14_5.sce new file mode 100755 index 000000000..d2abc4e3b --- /dev/null +++ b/866/CH14/EX14.5/14_5.sce @@ -0,0 +1,24 @@ +clc +//initialisation of variables +sigmax= 60 //N/mm^2 +sigmay= -40 //N/mm^2 +Txy= 50 //N/mm^2 +E= 200000 //N/mm^2 +mu= 0.3 +//CALCULATIONS +Sx= (sigmax-mu*sigmay)/E +Sy= (sigmay-mu*sigmax)/E +G= E/(2*(1+mu)) +gamaxy= Txy/G +e1= ((Sx+Sy)/2+(sqrt((Sx-Sy)^2+(gamaxy)^2))/2) +e2= ((Sx+Sy)-(sqrt((Sx-Sy)^2+gamaxy^2)))/2 +theta= atand(-gamaxy/(Sx-Sy))/2 +theta1= -90+theta +//RESULTS +printf ('direct strain in x direction= %.2e ',Sx) +printf (' \n direct strain in y direction=%.2e ',Sy) +printf (' \n Gamaxy=%.2e ',gamaxy) +printf (' \n.principal strain1=%.9e ',e1) +printf (' \n.principal strain2=%.9e ',e2) +printf (' \n.direction of plane1=%.1f degrees',theta) +printf (' \n.direction of plane2=%.1f degrees',theta1) diff --git a/866/CH14/EX14.6/14_6.sce b/866/CH14/EX14.6/14_6.sce new file mode 100755 index 000000000..22f8b2afc --- /dev/null +++ b/866/CH14/EX14.6/14_6.sce @@ -0,0 +1,21 @@ +clc +//initialisation of variables +ea= 1000*10^-6 +eb= -200*10^-6 +ec= -300*10^-6 +sigmay= 0 //N/mm^2 +E= 70000 //N/mm^2 +mu= 0.3 +d= 50 //mm +//CALCULATIONS +e1= ((ea+ec)/2)+sqrt(((ea-eb)^2+(ec-eb)^2)/2) +e2= ((ea+ec)/2)-sqrt(((ea-eb)^2+(ec-eb)^2)/2) +sigma1= (E*(e1+mu*e2))/(1-mu^2) +sigma2= (E*(e2+mu*e1))/(1-mu^2) +sigmax= sigma1+sigma2 +Txy= sqrt((((sigma1*2)-(sigmax))^2-(sigmax^2)))/2 +P= sigmax*((%pi/4)*(d^2)) +T= Txy*((%pi/32)*(50^4)/25) +//RESULTS +printf ('T= %.2fNm',T) +printf ('\n P= %.2fN',P) diff --git a/866/CH14/EX14.7/14_7.sce b/866/CH14/EX14.7/14_7.sce new file mode 100755 index 000000000..32d194fe7 --- /dev/null +++ b/866/CH14/EX14.7/14_7.sce @@ -0,0 +1,21 @@ +clc +//initialisation of variables +sigmax= 140 //N/mm^2 +sigmay= -70 //N/mm^2 +Txy= 60 //N/mm^2 +T= 225 //N/mm^2 +//CALCULATIONS +sigma1= (sigmax+sigmay)/2+(sqrt((sigmax-sigmay)^2+4*(Txy^2)))/2 +sigma2= (sigmax+sigmay)/2-(sqrt((sigmax-sigmay)^2+4*(Txy^2)))/2 +sigmaY= sigma1-sigma2 +sigmaY1= sqrt(sigma1^2+sigma2^2-sigma1*sigma2) +if(sigmaY>T) + disp("Tresca theory failure has ocurred") +else + disp("Tresca theory failed") +end +if(sigmaY1P2) + disp(P2) +else + disp(P1) +end diff --git a/866/CH9/EX9.6/9_6.sce b/866/CH9/EX9.6/9_6.sce new file mode 100755 index 000000000..6343e108b --- /dev/null +++ b/866/CH9/EX9.6/9_6.sce @@ -0,0 +1,10 @@ +clc +//initialisation of variables +Height= 7 //m +Thickness= 0.6 //m +density= 2000 //Kg/m^3 +//CALCULATIONS +W= density*9.81*Thickness*Height +p= 0.1*W*2/(Height*Height) +//RESULTS +printf ('p= %.2f N/m^1',p) diff --git a/866/CH9/EX9.8/9_8.sce b/866/CH9/EX9.8/9_8.sce new file mode 100755 index 000000000..8b8cb0f3f --- /dev/null +++ b/866/CH9/EX9.8/9_8.sce @@ -0,0 +1,20 @@ +clc +//initialisation of variables +M= 1500 //Nm +x1= 40 //mm +x2= 80 //mm +x3= 8 //mm +y1= 8 //mm +y2= 80 //mm +//CALCULATIONS +Ycentroid= (((x1+x2)*y1*y1/2)+(y2*x3*((y2/2)+y1)))/((x1+x2)*y1+y2*x3) +Zcentroid= (((y2*x3*y1/2)+((x1+x2)*x3*((y2/2)+y1)/2))/((x1+x2)*y1+y2*x3)) +Iz= (((x1+x2)*(y1)^3)/12)+(x1+x2)*y1*((Ycentroid-(y1/2))^2)+(x3/12)*(y2^3)+y2*x3*((y2/2)-(Ycentroid-y1))^2 +Iy= (y1*(((x1+x2)^3)/12))+(x1+x2)*y1*(y1^2)+((x3^3)/12)*(y2)+y2*x3*((Zcentroid-(x3/2))^2) +Izy= (x1+x2)*y1*(-y1)*(Ycentroid-(y1/2))+y2*x3*(Zcentroid-(x3/2))*(-(y2/2)+(Ycentroid-y1)) +sigmax= ((-M*10^3*Izy*x3)+(-M*10^3*Iy*(y2-Ycentroid+y1)))/((Iz*Iy)-(Izy)^2) +//RESULTS +printf ('Maximum direct stress= %.2f N/mm^2',sigmax) + + + -- cgit