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 /3825/CH3/EX3.2/Ex3_2.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 '3825/CH3/EX3.2/Ex3_2.sce')
-rw-r--r-- | 3825/CH3/EX3.2/Ex3_2.sce | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/3825/CH3/EX3.2/Ex3_2.sce b/3825/CH3/EX3.2/Ex3_2.sce new file mode 100644 index 000000000..28e043a2d --- /dev/null +++ b/3825/CH3/EX3.2/Ex3_2.sce @@ -0,0 +1,30 @@ +clc
+R=8.314*(10^3)//universal gas constant
+T=473 //temperature of bath in kelvin
+v1=0.6 //volume of steel vessel in metre-cube
+P=R*T/v1 //pressure developed by ideal gas law
+mprintf("P=%fMPa\n",P*10^-6)//ans may vary due to roundoff error
+a=453.046*(10^-3) //vander waals constant in Pa(metre-cube/mol)^2
+b=0.057*(10^-3)//vander waals constant in metre cube/mol
+P=((R*T)/(v1-b))-(a/(v1*v1))//pressure by vander waals equation
+mprintf("P=%fMPa\n",P*10^-6)//ans may vary due to roundofff error
+Pc=51.17 //pressure in bars
+Tc=283.1 //temperature in kelvin
+a=(0.42748*R*R*(Tc^2.5))/((Pc*10^5)*(T^0.5))//Redlich-Kwong equation
+b=0.0867*R*Tc/(Pc*(10^5))//Redlich-Kwong equation
+mprintf("a=%fPam^6/mol square\n",a*10^-6)//ans may vary due to roundoff error
+mprintf("b=%fm^3/mol\n",b*10^-3)//ans may vary due to roundoff error
+P=(R*T/(v1-b))-(a/(v1*(v1+b))) //pressure by Redlich-Kwong euation
+mprintf("P=%fMPa",P*10^-6)//ans may vary due to roundoff error
+
+
+
+
+
+
+
+
+
+
+
+
|