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.18 | |
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.18')
-rw-r--r-- | 1019/CH2/EX2.18/Example_2_18.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/1019/CH2/EX2.18/Example_2_18.sce b/1019/CH2/EX2.18/Example_2_18.sce new file mode 100644 index 000000000..22553e015 --- /dev/null +++ b/1019/CH2/EX2.18/Example_2_18.sce @@ -0,0 +1,24 @@ +//Example 2.18
+clear;
+clc;
+
+//Given
+R=8.314;// gas constant in J K^-1 mol^-1
+q=1675;//heat absorbed in J mol^-1
+Cp=2.5*R; //specific heat capacity at constant pressure of the gas in J K^-1 mol^-1
+n=1;//moles of the gas
+T1=273; //initial temperature in K
+delH=2078.5;//enthalpy change in J mol^-1
+P1=1;//initial pressure in atm
+
+// To determine P2,w,delE and T2
+Cv=Cp-R;//specific heat capacity at constant volume of the gas in J K^-1 mol^-1
+T2=T1+(delH/Cp);//final temperature in K
+delE=n*Cv*(T2-T1);//internal energy change in J mol^-1
+w=q-delE;//work done in J mol^-1
+P2=(P1*T2)/(T1*2);//final pressure in atm
+mprintf('delE = %f J mol^-1',delE);
+mprintf('\n work done = %f J mol^-1',w);
+mprintf('\n Final temperature = %f K',T2);
+mprintf('\n Final pressure = %f atm',P2);
+//end
\ No newline at end of file |