summaryrefslogtreecommitdiff
path: root/3856/CH4/EX4.5/Ex4_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3856/CH4/EX4.5/Ex4_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3856/CH4/EX4.5/Ex4_5.sce')
-rw-r--r--3856/CH4/EX4.5/Ex4_5.sce33
1 files changed, 33 insertions, 0 deletions
diff --git a/3856/CH4/EX4.5/Ex4_5.sce b/3856/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..032b222db
--- /dev/null
+++ b/3856/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,33 @@
+//Calculate the change in Enternal energy and change in Enthalpy for heating of Xenon
+
+//Example4.5
+
+clc;
+
+clear;
+
+T1=300; //Initial temperature in K
+
+T2=400; //Final temperature in K
+
+m=55.40; //Mass of Xenon in g
+
+M=131.29; //Molecular mass of Xenon
+
+n=m/M; //Number of mole of Xenon in mol
+
+R=8.314; //Gas constant in J K^-1 mol^-1
+
+Cbarv=(3/2)*R; //Molar constant volume in J K^-1 mol^-1
+
+delT=T2-T1; //Thange in temperature in K
+
+delU=n*delT*Cbarv; //Change in Enternal energy in J
+
+printf("Change in Enternal energy = %.0f J",delU);
+
+Cbarp=(5/2)*R; //Molar constant pressure in J K^-1 mlo^-1
+
+delH=n*Cbarp*delT; //Change in Enthalpy in J
+
+printf("\nChange in Enthalpy = %.0f J",delH);