From f35ea80659b6a49d1bb2ce1d7d002583f3f40947 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:38:01 +0530 Subject: updated the code --- 1100/CH10/EX10.6/10_6.sce | 38 +++++++++++++++++++------------------- 1100/CH14/EX14.4/14_4.sce | 38 +++++++++++++++++++------------------- 2 files changed, 38 insertions(+), 38 deletions(-) (limited to '1100') diff --git a/1100/CH10/EX10.6/10_6.sce b/1100/CH10/EX10.6/10_6.sce index cb9c95d09..7ff780085 100755 --- a/1100/CH10/EX10.6/10_6.sce +++ b/1100/CH10/EX10.6/10_6.sce @@ -1,19 +1,19 @@ - clc -//initialisation of variables -P= 15 //psia -S= 1.7050 //Btu/lb R -sg= 1.7549 //btu/lb R -sfg= 1.4415 //Bru/lb R -hg= 1150.8 //btu/lb -hfg= 969.7 //Btu/lb -vg= 26.29 //cu ft/lb -vfg= 26.27 //cu ft/lb -//CALCULATIONS -n= (sg-sx)/sfg -sx= sg-n*sfg -hx= hg-n*hfg -vx= vg-n*vfg -//RESULTS -printf ('Volume= %.2f cu ft/lb',vx) -printf (' \n Entropy = %.2f Btu/lb R',sx) -printf (' \n Enthalpy= %.1f Btu/lb',hx) +clc +//initialisation of variables +P= 15 //psia +sx= 1.7050 //Btu/lb R +sg= 1.7549 //btu/lb R +sfg= 1.4415 //Bru/lb R +hg= 1150.8 //btu/lb +hfg= 969.7 //Btu/lb +vg= 26.29 //cu ft/lb +vfg= 26.27 //cu ft/lb +//CALCULATIONS +n= (sg-sx)/sfg +sx= sg-n*sfg +hx= hg-n*hfg +vx= vg-n*vfg +//RESULTS +printf ('Volume= %.2f cu ft/lb',vx) +printf (' \n Entropy = %.2f Btu/lb R',sx) +printf (' \n Enthalpy= %.1f Btu/lb',hx) \ No newline at end of file diff --git a/1100/CH14/EX14.4/14_4.sce b/1100/CH14/EX14.4/14_4.sce index af86d4903..a766cb74c 100755 --- a/1100/CH14/EX14.4/14_4.sce +++ b/1100/CH14/EX14.4/14_4.sce @@ -1,19 +1,19 @@ -clc -//initialisation of variables -mO2=1.33 //lb -mCO2=3.67 //lb -CvO2=0.155 //Btu/lb F -CvCO2=0.165 //Btu/lb F -Cc=0.170 //Btu/lb F -t2=1000 //F -tB=68 //F -t=300 //F -mC=1 -mO=4 -//Calculations -deltaE1=mO2*CvO2*(t2-tB) + mCO2*CvCO2*(t2-tB) -deltaE2=mC*CC*(tB-t) + mO*CvO2*(tB-t) -E= -14087 //Btu -Q=deltaE1+E+deltaE2 -//Results -printf ('Heat Transfer from the system = %.2f',Q) +clc +//initialisation of variables +mO2=1.33 //lb +mCO2=3.67 //lb +CvO2=0.155 //Btu/lb F +CvCO2=0.165 //Btu/lb F +Cc=0.170 //Btu/lb F +t2=1000 //F +tB=68 //F +t=300 //F +mC=1 +mO=4 +//Calculations +deltaE1=mO2*CvO2*(t2-tB) + mCO2*CvCO2*(t2-tB) +deltaE2=mC*Cc*(tB-t) + mO*CvO2*(tB-t) +E= -14087 //Btu +Q=deltaE1+E+deltaE2 +//Results +printf ('Heat Transfer from the system = %.2f',Q) \ No newline at end of file -- cgit