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 /1019/CH2/EX2.9/Example_2_9.sce | |
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 '1019/CH2/EX2.9/Example_2_9.sce')
-rw-r--r-- | 1019/CH2/EX2.9/Example_2_9.sce | 26 |
1 files changed, 26 insertions, 0 deletions
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 |