summaryrefslogtreecommitdiff
path: root/2510/CH3/EX3.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2510/CH3/EX3.6
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2510/CH3/EX3.6')
-rwxr-xr-x2510/CH3/EX3.6/Ex3_6.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2510/CH3/EX3.6/Ex3_6.sce b/2510/CH3/EX3.6/Ex3_6.sce
new file mode 100755
index 000000000..4886b70c5
--- /dev/null
+++ b/2510/CH3/EX3.6/Ex3_6.sce
@@ -0,0 +1,16 @@
+//Variable declaration:
+SG = 0.8 //Specific Gravity
+AV = 0.02 //Absolute Viscosity (cP)
+cP = 1 //Viscosity of centipoise (cP)
+VcP = 6.72 * 10**-4 //Pound per feet.sec in a centipoise (lb/ft.s)
+pR = 62.43 //Reference density (lb/ft^3)
+
+//Calculations:
+u = AV*VcP/cP //Viscosity of gas (lb/ft.s)
+p = SG*pR //Density of gas (lb/ft^3)
+v = u/p //Kinematic viscosity of gas (ft^2/s)
+
+//Result:
+disp("Kinematic viscosity of gas is:")
+disp(v/10**-7)
+disp ("x 10**-7 ft^2/s")