From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3825/CH3/EX3.2/Ex3_2.sce | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 3825/CH3/EX3.2/Ex3_2.sce (limited to '3825/CH3/EX3.2/Ex3_2.sce') 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 + + + + + + + + + + + + -- cgit