From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3831/CH3/EX3.7/Ex3_7.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 3831/CH3/EX3.7/Ex3_7.sce (limited to '3831/CH3/EX3.7/Ex3_7.sce') diff --git a/3831/CH3/EX3.7/Ex3_7.sce b/3831/CH3/EX3.7/Ex3_7.sce new file mode 100644 index 000000000..b60011599 --- /dev/null +++ b/3831/CH3/EX3.7/Ex3_7.sce @@ -0,0 +1,26 @@ +// Example 3_7 +clc;funcprot(0); +// Given data +T_1=240;// °F +T_2=80;// °F +p_1=150;// psia +p_2=14.7;// psia +c_p=0.240;// Btu/lbm · R +c_v=0.172;// Btu/lbm · R + +// Solution +// (a) +deltau=c_v*((T_2+459.67)-(T_1+459.67));// Btu/lbm +deltah=c_p*(T_2-T_1);// Btu/lbm +printf('\n(a)The change in specific internal energy,u_2-u_1=%2.1f Btu/lbm \n The change in specific enthalpy,h_2-h_1=%2.1f kJ/kg',deltau,deltah); +// (b) +// Values for u and h for variable specific heat air can be found in Table C.16. +T_1=T_1+459.67;// R +h_1=167.56;// Btu/lbm +u_1=119.58;// Btu/lbm +T_2=T_2+459.67;// R +h_2=129.06;// Btu/lbm +u_2=92.04;// Btu/lbm +deltau=u_2-u_1;// Btu/lbm +deltah=h_2-h_1;// Btu/lbm +printf('\n(b)The change in specific internal energy,u_2-u_1=%2.1f Btu/lbm \n The change in specific enthalpy,h_2-h_1=%2.1f kJ/kg',deltau,deltah); -- cgit