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 --- 3456/CH2/EX2.1/Ex2_1.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 3456/CH2/EX2.1/Ex2_1.sce (limited to '3456/CH2/EX2.1/Ex2_1.sce') 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_); -- cgit