diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /3456/CH2/EX2.1/Ex2_1.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '3456/CH2/EX2.1/Ex2_1.sce')
-rw-r--r-- | 3456/CH2/EX2.1/Ex2_1.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3456/CH2/EX2.1/Ex2_1.sce b/3456/CH2/EX2.1/Ex2_1.sce new file mode 100644 index 000000000..024ebaa28 --- /dev/null +++ b/3456/CH2/EX2.1/Ex2_1.sce @@ -0,0 +1,19 @@ +//Example 2.1
+//State of Stress in two dimensions
+//Page No. 25
+clc;clear;close;
+
+sigma_x=25; //no unit
+sigma_y=5; //no unit
+theta=45; //in degrees
+sigma_x_=50; //in Mpa
+T_x_y_=5; //in Mpa
+A=[(sigma_x+sigma_y)/2+(sigma_x-sigma_y)/2*cosd(2*theta),sind(2*theta);(sigma_y-sigma_x)/2*sind(2*theta),cosd(2*theta)];
+B=[sigma_x_;T_x_y_];
+X=inv(A)*B;
+p=X(1);
+T_xy=X(2);
+sigma_x1=sigma_x*p;
+sigma_y1=sigma_y*p;
+sigma_y_=sigma_x1+sigma_y1-sigma_x_;
+printf('\nsigma_x= %g MPa\nsigma_y= %g MPa\nT_xy= %g MPa\nsigma_y`= %g MPa',sigma_x1,sigma_y1,T_xy,sigma_y_);
|