summaryrefslogtreecommitdiff
path: root/3825/CH3/EX3.2/Ex3_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3825/CH3/EX3.2/Ex3_2.sce')
-rw-r--r--3825/CH3/EX3.2/Ex3_2.sce30
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
+
+
+
+
+
+
+
+
+
+
+
+