diff options
Diffstat (limited to '3825/CH6')
-rw-r--r-- | 3825/CH6/EX6.1/Ex6_1.sce | 21 | ||||
-rw-r--r-- | 3825/CH6/EX6.10/Ex6_10.sce | 5 | ||||
-rw-r--r-- | 3825/CH6/EX6.11/Ex6_11.sce | 14 | ||||
-rw-r--r-- | 3825/CH6/EX6.12/Ex6_12.sce | 72 | ||||
-rw-r--r-- | 3825/CH6/EX6.13/Ex6_13.sce | 25 | ||||
-rw-r--r-- | 3825/CH6/EX6.14/Ex6_14.sce | 22 | ||||
-rw-r--r-- | 3825/CH6/EX6.15/Ex6_15.sce | 16 | ||||
-rw-r--r-- | 3825/CH6/EX6.16/Ex6_16.sce | 30 | ||||
-rw-r--r-- | 3825/CH6/EX6.17/Ex6_17.sce | 10 | ||||
-rw-r--r-- | 3825/CH6/EX6.18/Ex6_18.sce | 11 | ||||
-rw-r--r-- | 3825/CH6/EX6.2/Ex6_2.sce | 5 | ||||
-rw-r--r-- | 3825/CH6/EX6.20/Ex6_20.sce | 16 | ||||
-rw-r--r-- | 3825/CH6/EX6.21/Ex6_21.sce | 21 | ||||
-rw-r--r-- | 3825/CH6/EX6.22/Ex6_22.sce | 14 | ||||
-rw-r--r-- | 3825/CH6/EX6.3/Ex6_3.sce | 7 | ||||
-rw-r--r-- | 3825/CH6/EX6.4/Ex6_4.sce | 6 | ||||
-rw-r--r-- | 3825/CH6/EX6.5/Ex6_5.sce | 6 | ||||
-rw-r--r-- | 3825/CH6/EX6.6/Ex6_6.sce | 11 | ||||
-rw-r--r-- | 3825/CH6/EX6.7/Ex6_7.sce | 12 | ||||
-rw-r--r-- | 3825/CH6/EX6.8/Ex6_8.sce | 16 | ||||
-rw-r--r-- | 3825/CH6/EX6.9/Ex6_9.sce | 22 |
21 files changed, 362 insertions, 0 deletions
diff --git a/3825/CH6/EX6.1/Ex6_1.sce b/3825/CH6/EX6.1/Ex6_1.sce new file mode 100644 index 000000000..f9f2ed825 --- /dev/null +++ b/3825/CH6/EX6.1/Ex6_1.sce @@ -0,0 +1,21 @@ +clc
+mi=1 //in kg/second
+me=mi
+m=mi
+Q=-10 //in kJ/s
+hi=3276.6 //in kJ/kg
+vi=80 //in metre/second
+Zi=10 //in metres
+hg=2584.8
+hf=191.83
+Xe=0.95
+he=(hg*Xe)+(1-Xe)*hf
+mprintf("he=%fkJ/kg\n",he)//ans vary due to roundoff error
+g=9.81
+Ze=3
+ve=150 //in metre/second
+Ws=(Q*10^3)-((((he*10^3)+(ve^2/2)+(g*Ze))-((hi*10^3)+(vi^2/2)+(g*Zi)))*m)//from the first law of thermodynamics
+mprintf("Ws=%fkW\n",Ws/1000)//ans vary due to roundoff error
+
+
+
diff --git a/3825/CH6/EX6.10/Ex6_10.sce b/3825/CH6/EX6.10/Ex6_10.sce new file mode 100644 index 000000000..47801b896 --- /dev/null +++ b/3825/CH6/EX6.10/Ex6_10.sce @@ -0,0 +1,5 @@ +clc
+//after derivation in the book
+T=600
+Tf=(7*T)/6
+mprintf("Tf=%iK",Tf)
diff --git a/3825/CH6/EX6.11/Ex6_11.sce b/3825/CH6/EX6.11/Ex6_11.sce new file mode 100644 index 000000000..b1391983d --- /dev/null +++ b/3825/CH6/EX6.11/Ex6_11.sce @@ -0,0 +1,14 @@ +clc
+Pf=30*10^5 //pressure in pascal
+P0=50*10^5 //pressure in pascal
+T0=300 //temperature in Kelvin
+gama=1.4
+Tf=T0*((Pf/P0)^((gama-1)/gama))
+mprintf("Tf=%fK\n",Tf)//ans vary due to roundoff error
+V=0.1 //volumme in metre-cube
+M=28.97*10^-3 //molar mass of air
+R=8.314
+mprintf("m0-mf=%fkg",(M*V/R)*((P0/T0)-(Pf/Tf)))//ans vary due to roundoff error
+
+
+
diff --git a/3825/CH6/EX6.12/Ex6_12.sce b/3825/CH6/EX6.12/Ex6_12.sce new file mode 100644 index 000000000..7e6810fcc --- /dev/null +++ b/3825/CH6/EX6.12/Ex6_12.sce @@ -0,0 +1,72 @@ +clc
+m1=1000 //mass of wet steam in kg
+vg1=0.06663
+vf1=0.0012163
+V=(2*m1)/((1/vf1)+(1/vg1))
+P1=3*10^5
+mprintf("V=%fmetre-cube\n",V)//ans vary due to roundoff error\n
+mf=V/(2*vf1)
+mg=V/(2*vg1)
+mprintf("mass of liquid=%fkg\n",mf)//ans vary due to roundoff erorr
+mprintf("mass of steam=%fkg\n",mg)//ans vary due to roundoff error
+m2=900 //mass in kg
+X1=mg/m1
+mprintf("X1=%f\n",X1)//ans vary due to roundoff error
+hg1=2802.3
+hf1=1008.4
+h1=(X1*hg1)+((1-X1)*hf1)
+mprintf("h1=%fkJ/kg\n",h1)//ans vary due to roundoff error
+u1=(h1*10^3)-(P1*(V/m1))
+mprintf("u1=%fkJ/kg\n",u1/1000)//ans vary due to roundoff error
+P2=15*10^5 //pressure assumed
+vg2=0.1317
+vf2=0.0011538
+v2=V/m2
+mprintf("v2=%fmetre-cube/kg\n",v2)//ans vary due to roundoff error
+X=(v2-vf2)/(vg2-vf2)
+mprintf("X=%f\n",X)//ans vary due to roundoff error
+hg2=2789.8
+hf2=844.67
+h2=(X*hg2)+((1-X)*hf2)
+mprintf("h2=%fkJ/kg\n",h2)//ans vary due to roundoff error
+u2=(h2*10^3)-(P2*v2)
+mprintf("u2=%fkJ/kg\n",u2/1000)//ans vary due to roundoff error
+he=(hg1+hg2)/2
+LHS=(m1-m2)*he
+RHS=(m1*u1)-(m2*u2)
+mprintf("RHS=%fkJ\n",RHS/1000)//ans in textbook is wrong
+mprintf("LHS=%fkJ\n",LHS)//ans vary due to roundoff error
+P3=14*10^5 //pressure assumed
+hg3=2787.8
+hf3=830.08
+vg3=0.1407
+vf3=0.0011489
+X=(v2-vf3)/(vg3-vf3)
+mprintf("X=%f\n",X)//ans vary due to roundoff error
+h2=(X*hg3)+((1-X)*hf3)
+mprintf("h2=%fkJ/kg\n",h2)//ans vary due to roundoff error
+u2=(h2*10^3)-(P3*v2)
+mprintf("u2=%fkJ/kg\n",u2/1000)//ans vary due to roundoff error
+he=(hg1+hg3)/2
+LHS=(m1-m2)*he
+RHS=(m1*u1)-(m2*u2)
+mprintf("LHS=%fkJ\n",LHS)//ans vary due to roundoff error
+mprintf("RHS=%fkJ\n",RHS/1000)//ans in the textbook is wrong
+P4=13.8*10^5 //pressure assumed
+hg4=2787.32
+hf4=827
+vg4=0.1428
+vf4=0.0011478
+X=(v2-vf4)/(vg4-vf4)
+mprintf("X=%f\n",X)//ans vary due to roundoff error
+h2=(X*hg4)+((1-X)*hf4)
+mprintf("h2=%fkJ/kg\n",h2)//ans vary due to roundoff error
+u2=(h2*10^3)-(P4*v2)//ans may vary due to roundoff error
+mprintf("u2=%fkJ/kg\n",u2/1000)//ans vary due to roundoff error
+he=(hg1+hg4)/2
+LHS=(m1-m2)*he
+RHS=(m1*u1)-(m2*u2)
+mprintf("LHS=%fkJ\n",LHS)//ans vary due to roundoff error
+mprintf("RHS=%fkJ\n",RHS/1000)//ans in textbook is wrong
+mprintf("Final pressure=%fbar",P4*10^-5)//since LHS and RHS differ by 0.2 percent
+
diff --git a/3825/CH6/EX6.13/Ex6_13.sce b/3825/CH6/EX6.13/Ex6_13.sce new file mode 100644 index 000000000..c760324dc --- /dev/null +++ b/3825/CH6/EX6.13/Ex6_13.sce @@ -0,0 +1,25 @@ +clc
+O2=8 //moles of oxygen in combustion equation of C5H12
+N2=8*3.7619 //moles of nitrogen in combustion equation of C5H12
+C5H12=1 //moles of C5H12 in combustion equation of C5H12
+mprintf("Air-fuel ratio=%fmol air/mol fuel\n",(O2+N2)/C5H12)//air-fuel ratio for combustion of C5H12
+molmass1=72 //molar mass of C5H12
+molmass2=28.97 //molar mass of air
+mprintf("Air-fuel ratio=%fkg air/kg fuel\n",((O2+N2)*molmass2)/(molmass1*C5H12))//ans vary due to roundoff error
+a=5//moles of C02(product side) in combustion equation of C5H12 with 150 percent theoretical air
+b=6//moles of H2O(product side) in combustion equation of C5H12 with 150 percent theoretical air
+c=45.14//moles of N2(product side) in combustion equation of C5H12 with 150 percent theoretical air
+d=4//moles of 02(product side) in combustion equation of C5H12 with 150 percent theoretical air
+Totalmol=a+b+c+d
+CO2=a/Totalmol
+mprintf("CO2=%f\n",CO2)//ans vary due to roundoff error
+H2O=b/Totalmol
+mprintf("H2O=%f\n",H2O)//ans vary due to roundoff error
+N2=c/Totalmol
+mprintf("N2=%f\n",N2)//ans vary due to roundoff error
+O2=d/Totalmol
+mprintf("O2=%f",O2)//ans vary due to roundoff error
+
+
+
+
diff --git a/3825/CH6/EX6.14/Ex6_14.sce b/3825/CH6/EX6.14/Ex6_14.sce new file mode 100644 index 000000000..7ee879344 --- /dev/null +++ b/3825/CH6/EX6.14/Ex6_14.sce @@ -0,0 +1,22 @@ +clc
+O2=0.19 //moles of O2
+N2a=0.19*3.7619 //moles of N2
+CO=0.26 //moles of CO in fuel
+H2=0.12 //moles of H2 in fuel
+CO2=0.07 //moles of CO2 in fuel
+N2b=0.55 //moles of N2 in fuel
+mprintf("Theoretical ari-fuel ratio=%f mole air/mole fuel\n",(O2+N2a)/(CO+H2+CO2+N2b))//ans vary due to roundoff error
+CO2=0.33 //moles in product after combustion
+H2O=0.12//moles in product after combustion
+O2=0.038//moles in product after combustion
+N2=1.408//moles in product after combustion
+//product analysis
+sigmaNi=CO2+H2O+O2+N2
+a=CO2/sigmaNi //for CO2
+b=H2O/sigmaNi //for H2O
+c=O2/sigmaNi //for O2
+d=N2/sigmaNi //for N2
+mprintf("yi=.\n%f\n%f\n%f\n%f",a,b,c,d)//ans may vary due to roundoff error
+
+
+
diff --git a/3825/CH6/EX6.15/Ex6_15.sce b/3825/CH6/EX6.15/Ex6_15.sce new file mode 100644 index 000000000..8dc470e3e --- /dev/null +++ b/3825/CH6/EX6.15/Ex6_15.sce @@ -0,0 +1,16 @@ +clc
+a=83.56 //moles of nitrogen in product
+b=3.7619
+y=a/b
+mprintf("y=%f\n",y)//ans vary due to roundoff error
+c=(9.27+2.31)//moles of carbon in product
+d=5
+x=c/d
+mprintf("x=%f\n",x)//ans vary due to roundoff error
+e=(12*x)
+z=e/2
+mprintf("z=%f\n",z)//ans vary due to roundoff error
+t=(y+a)/x
+mprintf("Actual air-fuel ratio is given by%f mol air/mol fuel\n",t)//ans vary due to roundoff error
+s=38.095
+mprintf("percent theoretical air=%f\n",(t/s)*100)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.16/Ex6_16.sce b/3825/CH6/EX6.16/Ex6_16.sce new file mode 100644 index 000000000..735a5a381 --- /dev/null +++ b/3825/CH6/EX6.16/Ex6_16.sce @@ -0,0 +1,30 @@ +clc
+r=83.56 //moles of nitrogen in product
+b=3.7619
+z=r/b
+mprintf("z=%f\n",z)//ans vary due to roundoff error
+c=9.27 //moles of carbon in product
+d=2.31 //moles of carbon in product
+x=c+d
+mprintf("x=%f\n",x)//ans vary due to roundoff error
+e=4.86 //moles of nitrogen
+a=(z-c-(d/2)-e)*2
+mprintf("a=%f\n",a)//ans vary due to roundoff error
+y=2*a
+mprintf("y=%f\n",y)//ans vary due to roundoff error
+g=12
+carbon=(x*g)/((x*g)+y)
+mprintf("carbon=%fpercent\n",carbon*100)//ans vary due to roundoff error
+hydrogen=y/((x*g)+y)
+mprintf("hydrogen=%fpercent\n",hydrogen*100)//ans vary due to roundoff error
+h=28.97
+s=((z+r)*h)/((x*g)+y)
+mprintf("Air-fuel ratio=%fkg air/kg fuel\n",s)//ans vary due to roundoff error
+O2=25.43
+N2=95.665
+t=((O2+N2)*h)/((x*g)+y)
+mprintf("theoretical air-fuel ratio=%f kg air/kg fuel\n",t)//ans vary due to roundoff error
+pert=(s/t)*100
+mprintf("Percent theoretical air=%fpercent\n",pert)//ans vary due to roundoff error
+mprintf("Percent deficit air=%fpercent\n",100-pert)//ans vary due to roundoff error
+
diff --git a/3825/CH6/EX6.17/Ex6_17.sce b/3825/CH6/EX6.17/Ex6_17.sce new file mode 100644 index 000000000..7a1604d30 --- /dev/null +++ b/3825/CH6/EX6.17/Ex6_17.sce @@ -0,0 +1,10 @@ +clc
+a=5//moles of solid carbon
+b=6//moles of H2
+deltaHf1=-146.5
+deltaHf2=-393.8
+deltaHf3=-242
+deltaH=(a*deltaHf2)+(b*deltaHf3)-deltaHf1
+mprintf("deltaH298=%fkJ",deltaH)
+
+
diff --git a/3825/CH6/EX6.18/Ex6_18.sce b/3825/CH6/EX6.18/Ex6_18.sce new file mode 100644 index 000000000..6267e07a4 --- /dev/null +++ b/3825/CH6/EX6.18/Ex6_18.sce @@ -0,0 +1,11 @@ +clc
+hg=2547.3 //in kJ/kg
+hf=104.77 //in kJ/kg
+deltaH=hg-hf
+mass=18 //molar mass of water
+moles=1000/mass //moles of water in kg
+mprintf("DeltaH=%fkJ/kg=%fkJ/mol\n",deltaH,deltaH/moles)//ans vary due to roundoff error
+deltaHst=-3274.5 //standard from Ex6_17.sce
+deltaH=deltaHst+(6*(-deltaH/moles))
+mprintf("deltaH298=%fkJ",deltaH)//ans vary due to roundoff error
+
diff --git a/3825/CH6/EX6.2/Ex6_2.sce b/3825/CH6/EX6.2/Ex6_2.sce new file mode 100644 index 000000000..8da3b7f79 --- /dev/null +++ b/3825/CH6/EX6.2/Ex6_2.sce @@ -0,0 +1,5 @@ +clc
+he=2609.9 //in kJ/kg
+hi=3072.1 //in kJ/kg
+ve=sqrt(2*(hi-he)*10^3)
+mprintf("ve=%fm/s",ve)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.20/Ex6_20.sce b/3825/CH6/EX6.20/Ex6_20.sce new file mode 100644 index 000000000..47d890e09 --- /dev/null +++ b/3825/CH6/EX6.20/Ex6_20.sce @@ -0,0 +1,16 @@ +clc
+CO2=52.32
+H2O=38.49
+C5H12=247
+O2=33.62
+e=5 //moles of CO2
+g=6 //moles of H2O
+h=8 //moles of O2
+deltaCp=(e*CO2)+(g*H2O)-C5H12-(h*O2)
+mprintf("deltaCp=%f\n",deltaCp)//ans vary due to roundoff error
+deltaH298=-3274.5
+t1=298
+t2=800
+deltaH800=deltaH298+(deltaCp*(10^-3)*(t2-t1))
+mprintf("deltaH800=%fkJ",deltaH800)//ans vary due to roundoff error
+
diff --git a/3825/CH6/EX6.21/Ex6_21.sce b/3825/CH6/EX6.21/Ex6_21.sce new file mode 100644 index 000000000..aca6d3c54 --- /dev/null +++ b/3825/CH6/EX6.21/Ex6_21.sce @@ -0,0 +1,21 @@ +clc
+m1=5
+m2=6
+m3=8
+//values from appendix are used below given in book
+deltaa=m1*19.8+m2*32.24-(-3.626)-m3*28.11
+mprintf("deta a=%E\n",deltaa)//ans in the textbook is wrong
+deltab=(m1*7.334+m2*0.1924-48.73-m3*(-3.68*10^-4))*10^-2
+mprintf("deltab=%E\n",deltab)//ans vary due to roundoff error
+deltac=((m1*-5.602)+m2*1.055-(-25.8)-m3*1.746)*10^-5
+mprintf("deltac=%E\n",deltac)//ans vary due to roundoff error
+deltad=(m1*1.715+(m2*-0.3596)-5.305-(m3*-1.065))*10^-8
+mprintf("deltad=%E\n",deltad)//ans vary due to roundoff error
+T=298
+deltaH298=-3274.5*10^3
+deltaH0=deltaH298-(deltaa*T)+((deltab/2)*(T*T))-((deltac/3)*(T*T*T))-((deltad/4)*(T*T*T*T))
+mprintf("deltaH0=%EkJ\n",deltaH0/1000)//ans in the textbook is wrong
+
+
+
+
diff --git a/3825/CH6/EX6.22/Ex6_22.sce b/3825/CH6/EX6.22/Ex6_22.sce new file mode 100644 index 000000000..98003bbf9 --- /dev/null +++ b/3825/CH6/EX6.22/Ex6_22.sce @@ -0,0 +1,14 @@ +clc
+deltaHp=3274.5 //in kJ
+a=5
+b=6
+c=2
+d=37.619
+CO2=62.75
+H2O=52.96
+O2=38.67
+N2=37.13
+e=((a*CO2)+(b*H2O)+(c*O2)+(d*N2))*10^-3
+T1=298
+T=(deltaHp+(e*T1))/e
+mprintf("T=%fK",T)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.3/Ex6_3.sce b/3825/CH6/EX6.3/Ex6_3.sce new file mode 100644 index 000000000..6def88f0c --- /dev/null +++ b/3825/CH6/EX6.3/Ex6_3.sce @@ -0,0 +1,7 @@ +clc
+hf=762.61 //in kJ/kg
+hg=2776.2 //in kJ/kg
+he=2696.12 //in kJ/kg
+hi=he//isenthalpic process
+X=(hi-hf)/(hg-hf)
+mprintf("X=%f",X)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.4/Ex6_4.sce b/3825/CH6/EX6.4/Ex6_4.sce new file mode 100644 index 000000000..af4f0cc9e --- /dev/null +++ b/3825/CH6/EX6.4/Ex6_4.sce @@ -0,0 +1,6 @@ +clc
+h3=75.1134 //in kJ/kg
+hf=12.5201 //in kJ/kg
+hg=176.1723 //in kJ/kg
+X=(h3-hf)/(hg-hf)
+mprintf("X=%f\n",X)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.5/Ex6_5.sce b/3825/CH6/EX6.5/Ex6_5.sce new file mode 100644 index 000000000..1e813888b --- /dev/null +++ b/3825/CH6/EX6.5/Ex6_5.sce @@ -0,0 +1,6 @@ +clc
+he=2686.16 //in kJ/kg
+hf=908.59 //in kJ/kg
+hg=2797.2 //in kJ/kg
+X=(he-hf)/(hg-hf)
+mprintf("X=%f",X)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.6/Ex6_6.sce b/3825/CH6/EX6.6/Ex6_6.sce new file mode 100644 index 000000000..a9244a103 --- /dev/null +++ b/3825/CH6/EX6.6/Ex6_6.sce @@ -0,0 +1,11 @@ +clc
+h3=2686.16 //in kJ/kg
+hf=1008.4 //in kJ/kg
+hg=2802.3 //in kJ/kg
+h2=h3
+X2=(h2-hf)/(hg-hf)
+mprintf("X2=%f\n",X2)//ans vary due to roundoff error
+m1=1000 //mass of wet steam in grams
+mc=30 //mass of condensate in grams
+X1=X2*(1-(mc/m1))
+mprintf("X1=%f",X1)//ans may vary due to roundoff error
diff --git a/3825/CH6/EX6.7/Ex6_7.sce b/3825/CH6/EX6.7/Ex6_7.sce new file mode 100644 index 000000000..837aebb67 --- /dev/null +++ b/3825/CH6/EX6.7/Ex6_7.sce @@ -0,0 +1,12 @@ +clc
+T=300 //temperature in Kelvin
+gama=1.4
+Tf=gama*T
+mprintf("Tf=%iK\n",Tf)
+P=50*10^5 //pressure in Pascals
+V=0.1 //volume in metre-cube
+R=8.314
+N=(P*V)/(R*Tf)
+mprintf("N=%f\n",N)//ans vary due to roundoff error
+molmass=28.97 //molar mass of air
+mprintf("Mass of air filled in cylinder=%fkg",N*molmass*10^-3)//ans vary due to roundoff error
diff --git a/3825/CH6/EX6.8/Ex6_8.sce b/3825/CH6/EX6.8/Ex6_8.sce new file mode 100644 index 000000000..e09f5a87c --- /dev/null +++ b/3825/CH6/EX6.8/Ex6_8.sce @@ -0,0 +1,16 @@ +clc
+P=20 //pressure in bar
+T1=600
+h=3689.2 //in kJ/kg for T1
+v=0.1995 //in metre-cube/kg for T1
+u1=((h*10^3)-((P*10^5)*v))/1000 //conversion into kJ/kg
+mprintf("u=%fkJ/kg\n",u1)
+T2=700
+h=3916.5 //in kJ/kg for T2
+v=0.2232 //in metre-cube/kg for T2
+u2=((h*10^3)-((P*10^5)*v))/1000 //conversion into kJ/kg
+mprintf("u=%fkJ/kg\n",u2)
+uf=3467.3 //in kJ/kg
+T=T1+(((T2-T1)/(u2-u1))*(uf-u1))//by interpolation
+mprintf("T=%fcelsius",T)//ans vary due to roundoff error
+
diff --git a/3825/CH6/EX6.9/Ex6_9.sce b/3825/CH6/EX6.9/Ex6_9.sce new file mode 100644 index 000000000..38120b4a0 --- /dev/null +++ b/3825/CH6/EX6.9/Ex6_9.sce @@ -0,0 +1,22 @@ +clc
+P1=10^6 //pressure in pascal
+P2=4*10^6 //pressure in pascal
+h0=2776.2 //in kJ/kg
+v0=0.1943 //in metre-cube/kg
+hi=3215.7 //in kJ/kg
+u0=h0-(v0*(P1/1000))
+mprintf("u0=%fkJ/kg\n",u0)//ans vary due to roundoff error
+V=2 //in metre-cube
+m0=V/v0
+mi=m0
+mprintf("mo=%fkg\n",m0)//ans vary due to roundoff error
+Tf=425 //final temperature assumed in celsius
+hf=3273.03 //in kJ/kg
+vf=0.0766 //in metre-cube/kg
+uf=hf-(vf*(P2/1000))
+mprintf("uf=%fkJ/kg\n",uf)//ans vary due to roundoff error
+mf=V/vf
+mprintf("mf=%fkg\n",mf)//ans vary due to roundoff error
+mprintf("Final temperature=%iCelsius\n",Tf)//since mf(hi-uf)=m0(hi-u0) at this temperature
+mprintf("Mass of steam that enters tank=%fkg",mf-mi)//ans vary due to roundoff error
+
|