summaryrefslogtreecommitdiff
path: root/3871/CH4
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH4
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH4')
-rw-r--r--3871/CH4/EX4.1/Ex4_1.sce20
-rw-r--r--3871/CH4/EX4.2/Ex4_2.sce19
-rw-r--r--3871/CH4/EX4.3/Ex4_3.sce31
-rw-r--r--3871/CH4/EX4.4/Ex4_4.sce23
-rw-r--r--3871/CH4/EX4.5/Ex4_5.sce25
-rw-r--r--3871/CH4/EX4.6/Ex4_6.sce23
-rw-r--r--3871/CH4/EX4.7/Ex4_7.sce20
7 files changed, 161 insertions, 0 deletions
diff --git a/3871/CH4/EX4.1/Ex4_1.sce b/3871/CH4/EX4.1/Ex4_1.sce
new file mode 100644
index 000000000..6f0bd68ef
--- /dev/null
+++ b/3871/CH4/EX4.1/Ex4_1.sce
@@ -0,0 +1,20 @@
+//===========================================================================
+//chapter 4 example 1
+clc;
+clear all;
+
+
+//variable decalartion
+L =0.4; //length of the strip in m
+W = 0.0005; //width of the strip in m
+t = 0.00008 //thickness in m
+E = 1.2*10^10; //young's modulus in kg/m**2
+d = 90; //deflection in degrees
+
+//calucaltions
+theta = %pi/(2); //deflection in radians
+T = ((E*W*(t^3))/(12*L*2))*(%pi); //torque exerted in Kg-m
+
+//result
+
+mprintf("torque exerted T = %3.2e Kg-m",T);
diff --git a/3871/CH4/EX4.2/Ex4_2.sce b/3871/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..240800e10
--- /dev/null
+++ b/3871/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,19 @@
+//===========================================================================
+//chapter 4 example 2
+clc;
+clear all;
+
+
+//variable decalartion
+W = 0.005; //controlling weight in Kg
+L = 0.024; //length in m
+Td = 1.05*10**-4; //deflecting Torque in kg-m
+
+//calculations
+x = Td/(W*L);
+//Td = W*L*sin(theta)
+theta = asin(x);
+theta1 = (theta*180)/(%pi);
+
+//result
+mprintf("deflection = %3.0f °",theta1);
diff --git a/3871/CH4/EX4.3/Ex4_3.sce b/3871/CH4/EX4.3/Ex4_3.sce
new file mode 100644
index 000000000..d3cba3b18
--- /dev/null
+++ b/3871/CH4/EX4.3/Ex4_3.sce
@@ -0,0 +1,31 @@
+//===========================================================================
+//chapter 4 example 3
+
+clc;
+clear all;
+
+
+//variable decalartion
+Smax = 3.0*10^6; //maximum stress in kg/m**2
+E = 1.2*10^10; //young's modulus in kg/m**2
+w = 0.0006; //width of spring in m
+Td = 1.2*10^-4; //deflecting torque in kg-m
+d = 90; //deflection in degrees
+
+//calucaltions
+theta = %pi/(2); //deflection in radians
+//since T = ((E*W*(t*3))/(12*L))*theta
+//t^3/l = (12*Tc)/(E*W*theta)
+Tc = Td/(2); //controlling torque of each spring in kg-m
+//x = t**3/l
+x = (12*Tc)/((E*w*theta)); //equqation 1
+//y =l/t
+y = (E*theta)/(2*Smax); //equation 2
+//by multiplying equations 1 and 2 (x*y =t**2 =z)
+z = x*y;
+t = sqrt(z); //thickness of spring strip in mm
+l = y*t; //length on m
+
+//result
+mprintf("thickness of spring strip = %3.2f mm",(t*10^3));
+mprintf("\nlength in = %3.2f m",l);
diff --git a/3871/CH4/EX4.4/Ex4_4.sce b/3871/CH4/EX4.4/Ex4_4.sce
new file mode 100644
index 000000000..8f01e491a
--- /dev/null
+++ b/3871/CH4/EX4.4/Ex4_4.sce
@@ -0,0 +1,23 @@
+//===========================================================================
+//chapter 4 example 4
+clc;
+clear all;
+
+//variable declaration
+theta1 = 90; //deflection in °
+x = 0.5; //I2/I1
+
+//calculations
+//Td proprtional to I
+//theta proprtional to I
+theta2 = theta1*(x); //deflection for the current equal to the half of the current in spring controlled instrument in °
+//Tc proprtional to sin(theta)
+//sin(theta) proprtional to I
+y = sin((%pi/(2)))
+theta21 = asin(x*y); //deflection for the current equal to the half of the current in gravity controlled instrument in °
+theta22 = (theta21*180)/(%pi);
+
+//result
+mprintf("deflection for the current equal to the half of the current in spring controlled instrument = %3.2f °",theta2);
+mprintf("\ndeflection for the current equal to the half of the current in gravity controlled instrument = %3.2f °",theta22);
+
diff --git a/3871/CH4/EX4.5/Ex4_5.sce b/3871/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..a83c3e258
--- /dev/null
+++ b/3871/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,25 @@
+//===========================================================================
+//chapter 4 example 5
+clc;
+clear all;
+
+
+//variable decelaration
+theta1 = 90; //deflection in °
+I1 = 10;
+I2 =5;
+
+//calculations
+//Td proprtional to I^2
+//Theta proprtional to I^2
+theta2 = theta1*((I2/(I1))^2); //deflection for I1 A spring controlled instrument in °
+//Tc proprtional to sin(theta)
+//sin(theta) proprtional to I**2
+
+x = (I2/((I1)))
+theta21 = asin(x**2)*(sin(%pi/(2))); //deflection for I1 A Gravity controlled instrument in °
+theta22 = (theta21*180)/(%pi);
+
+//result
+mprintf("deflection for I1 A spring controlled instrument = %3.2f °",theta2);
+mprintf("\ndeflection for I1 A Gravity controlled instrument = %3.1f °",theta22);
diff --git a/3871/CH4/EX4.6/Ex4_6.sce b/3871/CH4/EX4.6/Ex4_6.sce
new file mode 100644
index 000000000..22896cc90
--- /dev/null
+++ b/3871/CH4/EX4.6/Ex4_6.sce
@@ -0,0 +1,23 @@
+//===========================================================================
+//chapter 4 example 6
+
+clc;
+clear all;
+
+//Variable declaration
+I1 = 10; //current in A
+theta1 = 60; //deflection in °
+theta2 = 40; //deflection in °
+
+
+//calculations
+I2 = (I1)*(theta2/(theta1)); //current in case spring controlled ammeter in A
+x = sin(((theta2*%pi)/(180)));
+y = sin((theta1*%pi)/(180));
+I21 = (I1)*(x/y); //current in case gravity controlled ammeter in A
+
+
+//result
+mprintf("current in case spring controlled ammeter = %3.2f A",I2);
+mprintf("\ncurrent in case gravity controlled ammeter = %3.2f A",I21);
+
diff --git a/3871/CH4/EX4.7/Ex4_7.sce b/3871/CH4/EX4.7/Ex4_7.sce
new file mode 100644
index 000000000..177295b7a
--- /dev/null
+++ b/3871/CH4/EX4.7/Ex4_7.sce
@@ -0,0 +1,20 @@
+//===========================================================================
+//chapter 4 example 7
+
+clc;
+clear all;
+
+
+//variable declaration
+Td = 1.13*10^-3; //defelecting torque in Nm
+m = 5*10^-3; //weight in kg
+g = 9.81; //gravity
+theta = 60; //deflection in °
+
+//calculations
+d = Td/(m*g*sin(((theta*%pi)/(180)))); //distance of the controlling weight from spindle in mm
+
+//result
+mprintf("distance of the controlling weight from spindle = %3.1f mm",(d*10^3));
+
+