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 --- 1019/CH2/EX2.9/Example_2_9.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 1019/CH2/EX2.9/Example_2_9.sce (limited to '1019/CH2/EX2.9/Example_2_9.sce') diff --git a/1019/CH2/EX2.9/Example_2_9.sce b/1019/CH2/EX2.9/Example_2_9.sce new file mode 100644 index 000000000..9bbf918bc --- /dev/null +++ b/1019/CH2/EX2.9/Example_2_9.sce @@ -0,0 +1,26 @@ +//Example 2.9 +clear; +clc; + +//Given +R=8.314;// gas constant in J K^-1 mol^-1 +t1=298;// temperature in K +p1=303975;// initial pressure in Pa +v1=1.43;//initial volume in dm^3 +v2=2.86;// final volume in dm^3 +Cp=29.1;// heat capacity at constant pressure in J mol^-1 K^-1 + +// To determine t2,p2,w,delH and DelE +Cv=Cp-R;//heat capacity at constant volume +t2=t1*((v1/v2)^(R/Cv));//final temperature in K +p2=p1*((v1/v2)^(Cp/Cv));//final pressure in Pa +n=(p1*v1*0.001)/(R*t1);//number of moles +delE=n*Cv*(t2-t1);//delE in J +w=delE;//work done in J +delH=n*Cp*(t2-t1);//enthalpy change in J +mprintf('Final Temperature = %f K',t2); +mprintf('\n Final Pressure = %f Pa',p2); +mprintf('\n delE = %f J',delE); +mprintf('\n delH = %f J',delH); +mprintf('\n w = %f J',w); +//end \ No newline at end of file -- cgit