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 --- 2066/CH4/EX4.3/4_3.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 2066/CH4/EX4.3/4_3.sce (limited to '2066/CH4/EX4.3') 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) -- cgit