summaryrefslogtreecommitdiff
path: root/3532/CH4/EX4.1/Ex4_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3532/CH4/EX4.1/Ex4_1.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3532/CH4/EX4.1/Ex4_1.sce')
-rw-r--r--3532/CH4/EX4.1/Ex4_1.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3532/CH4/EX4.1/Ex4_1.sce b/3532/CH4/EX4.1/Ex4_1.sce
new file mode 100644
index 000000000..8dfd86913
--- /dev/null
+++ b/3532/CH4/EX4.1/Ex4_1.sce
@@ -0,0 +1,21 @@
+clc
+clear
+mprintf('Mechanical vibrations by G.K.Grover\n Example 4.2.1\n')
+//given data
+//T=To*sin(W*t)
+To=0.588 //maximum value of periodic torque in N-m
+W=4// freqency of applied force in rad/sec
+J=0.12//moment of inertia of wheel in kg-m^2
+Kt=1.176//stiffness of wire in N-m/rad
+Ct=0.392/1 //damping coefficient in N-m_sec/rad
+//calculations
+theta=To/sqrt((Kt-J*W^2)^2+(Ct*W)^2)//Equation for torsional vibration amplitude from Fig (4.2.2) and Eqn (4.2.5)
+MaxDcoup=Ct*W*theta//maximum damping couple in N-m
+if atan((Ct*W)/(Kt-J*W^2))>0 then
+ phiD=(180/%pi)*atan((Ct*W)/(Kt-J*W^2));//from eqn 4.2.6(in degrees)
+else
+ phiD=180+(180/%pi)*atan((Ct*W)/(Kt-J*W^2));
+
+end
+//output
+mprintf(' a)The maximum angular displacement from rest position is %4.4f radians\n b)The maximum couple applied to dashpot is %4.4f N-m\n c)angle by which the angular displacement lags the torque is %4.4f degrees',theta,MaxDcoup,phiD)