summaryrefslogtreecommitdiff
path: root/3864/CH2/EX2.44/Ex2_44.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3864/CH2/EX2.44/Ex2_44.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3864/CH2/EX2.44/Ex2_44.sce')
-rw-r--r--3864/CH2/EX2.44/Ex2_44.sce32
1 files changed, 32 insertions, 0 deletions
diff --git a/3864/CH2/EX2.44/Ex2_44.sce b/3864/CH2/EX2.44/Ex2_44.sce
new file mode 100644
index 000000000..8cd10f122
--- /dev/null
+++ b/3864/CH2/EX2.44/Ex2_44.sce
@@ -0,0 +1,32 @@
+clear
+//
+//
+
+//Initilization of Variables
+
+P=10*10**3 //N //Load
+E=2*10**5 //N/mm**2 //Youngs Modulus
+d2=12 //mm //Diameter of bar1
+d1=16 //mm //diameter of bar2
+L1=200 //mm //Length of bar1
+L2=500 //mm //Length of bar2
+
+//Calculations
+
+//Let A1 and A2 be the cross Area of Bar1 & bar2 respectively
+A1=%pi*4**-1*d1**2 //mm**2
+A2=%pi*4**-1*d2**2 //mm**2
+
+//Let p1 and p2 be the stress in Bar1 nad bar2 respectively
+p1=P*A1**-1 //N/mm**2
+p2=P*A2**-1 //N/mm**2
+
+//Let V1 nad V2 be the Volume of of Bar1 and Bar2
+V1=A1*(L1+L1)
+V2=A2*L2
+
+//Let E be the strain Energy stored in the bar
+E=p1**2*(2*E)**-1*V1+p2**2*V2*(2*E)**-1
+
+//result
+printf("\n The Strain Energy stored in Bar is %0.2f N-mm",E)