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 /2066/CH4/EX4.3 | |
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 '2066/CH4/EX4.3')
-rwxr-xr-x | 2066/CH4/EX4.3/4_3.sce | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2066/CH4/EX4.3/4_3.sce b/2066/CH4/EX4.3/4_3.sce new file mode 100755 index 000000000..09e2ef136 --- /dev/null +++ b/2066/CH4/EX4.3/4_3.sce @@ -0,0 +1,26 @@ +clc
+clear
+//Initialization of variables
+pd=15 //psia
+rhod=0.005//slug/ft^3
+pi=150 //psia
+rhoi=0.03 //slug/ft^3
+dz=-25 //ft
+vd=1000 //ft/s
+vi=100 //ft/s
+ud=200 //Btu/slug
+ui=250 //Btu/slug
+g=32.2 //ft/s^2
+J=778
+uff=5 //ft/s
+Q=50 //Btu/sec
+//calculations
+pr=pd/rhod*144 - pi/rhoi *144
+zr=g*(dz)
+vr=(vd^2 -vi^2)/2
+ur=(ud-ui)*J
+jeh=J*Q*g/uff
+gem=pr+zr+vr+ur+jeh
+power=gem*uff/g
+//results
+printf("Power transferred = %d ft-lb/sec",power)
|