diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH9/EX9.5 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3685/CH9/EX9.5')
-rw-r--r-- | 3685/CH9/EX9.5/Ex9_5.sce | 35 | ||||
-rw-r--r-- | 3685/CH9/EX9.5/Ex9_5.txt | 9 |
2 files changed, 44 insertions, 0 deletions
diff --git a/3685/CH9/EX9.5/Ex9_5.sce b/3685/CH9/EX9.5/Ex9_5.sce new file mode 100644 index 000000000..4daefea05 --- /dev/null +++ b/3685/CH9/EX9.5/Ex9_5.sce @@ -0,0 +1,35 @@ +clc
+Psat = 3.973 // Saturation pressure in MPa
+vf = 0.0012512 // specific volume of fluid in m^3/kg
+vg = 0.05013 // Specific volume of gas in m^3/kg
+hf = 1085.36 // Specific enthalpy of fluid in kJ/kg
+hfg = 1716.2 // Latent heat of vaporization in kJ/kg
+sf = 2.7927 // Specific entropy of fluid in kJ/kgK
+sfg = 3.2802 // Entropy change due to vaporization in kJ/kgK
+mf = 9 // Mass of liquid in kg
+V = 0.04 // Volume of vessel in m^3
+// at T = 250
+uf = 1080.39 //Specific internal energy in kJ/kg
+ufg = 1522// Change in internal energy due to vaporization in kJ/kg
+
+printf("\n Example 9.5")
+Vf = mf*vf // volume of fluid
+Vg = V-Vf // volume of gas
+mg = Vg/vg // mass of gas
+m = mf+mg // mass if mixture
+x = mg/m // quality of steam
+v = vf+x*(vg-vf) // specific volume of mixture
+h = hf+x*hfg // enthalpy of mixture
+s = sf+(x*sfg) // entropy of mixture
+u = h-Psat*1e6*v*1e-03 // Internal energy of mixture
+u_ = uf+x*ufg // Internal energy at 250 degree Celsius
+printf("\n The pressure is %f MPa",Psat)
+printf("\n The total mass of mixture is %f kg",m)
+printf("\n Specific volume is %f m3/kg",v)
+printf("\n Enthalpy is is %f kJ/kg",h)
+printf("\n The entropy is %f kJ/kg K",s)
+printf("\n The internal energy is %f kJ/kg",u)
+printf("\n At 250 degree Celsius, internal energy is %fkJ/kg",u_) //The answer provided in the textbook is wrong
+
+//The answers vary due to round off error
+
diff --git a/3685/CH9/EX9.5/Ex9_5.txt b/3685/CH9/EX9.5/Ex9_5.txt new file mode 100644 index 000000000..7124f1639 --- /dev/null +++ b/3685/CH9/EX9.5/Ex9_5.txt @@ -0,0 +1,9 @@ +
+ Example 9.5
+ The pressure is 3.973000 MPa
+ The total mass of mixture is 9.573293 kg
+ Specific volume is 0.004178 m3/kg
+ Enthalpy is is 1188.134056 kJ/kg
+ The entropy is 2.989134 kJ/kg K
+ The internal energy is 1171.533708 kJ/kg
+ At 250 degree Celsius, internal energy is 1171.534455kJ/kg
\ No newline at end of file |