diff options
Diffstat (limited to '1427/CH18/EX18.32/18_32.sce')
-rw-r--r-- | 1427/CH18/EX18.32/18_32.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1427/CH18/EX18.32/18_32.sce b/1427/CH18/EX18.32/18_32.sce new file mode 100644 index 000000000..e0d705d78 --- /dev/null +++ b/1427/CH18/EX18.32/18_32.sce @@ -0,0 +1,13 @@ +//ques-18.32
+//Calculating entropy change when pressure is kept constant and when volume is kept constant
+clc
+n=1;//moles of ideal gas
+Cv=12.471;//calorific volume (in J/K/mol)
+T1=300; T2=600;//temperature (in K)
+R=8.314;//in J/K/mol
+//Pressure is constant
+Cp=Cv+R;//calorific pressure (in J/K/mol)
+S_P=2.303*n*Cp*log10(T2/T1);
+//Volume is constant
+S_V=2.303*n*Cv*log10(T2/T1);
+printf("The entropy change when pressure is kept constant is %.3f J/K/mol and when volume is kept constant is %.3f J/K/mol.",S_P,S_V);
|