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 --- 647/CH2/EX2.6/Example2_6.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 647/CH2/EX2.6/Example2_6.sce (limited to '647/CH2/EX2.6/Example2_6.sce') diff --git a/647/CH2/EX2.6/Example2_6.sce b/647/CH2/EX2.6/Example2_6.sce new file mode 100755 index 000000000..2b39429ad --- /dev/null +++ b/647/CH2/EX2.6/Example2_6.sce @@ -0,0 +1,26 @@ +clear; +clc; + +// Example: 2.6 +// Page: 44 + +printf("Example: 2.6 - Page: 44\n\n"); + +// Solution + +//*****Data*****// +m = 1;// [kg] +Temp = 373;// [K] +P = 101325;// [N/square m] +V_Liquid = 1.04*10^(-3);// [cubic m/kg] +V_Vapour = 1.673;// [cubic m/kg] +Q = 2257;// [kJ] +//**************// + +// Work done due to expansion: +Wexpansion = P*(V_Vapour - V_Liquid);// [N-m] +deltaU = Q - Wexpansion/1000;// [kJ] +deltaH = deltaU + Wexpansion/1000;// [kJ] + +printf("Change in Internal Energy is %.2f kJ\n",deltaU); +printf("Change in enthalpy is %d kJ\n",deltaH); \ No newline at end of file -- cgit