diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3864/CH2/EX2.44/Ex2_44.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3864/CH2/EX2.44/Ex2_44.sce')
-rw-r--r-- | 3864/CH2/EX2.44/Ex2_44.sce | 32 |
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) |