summaryrefslogtreecommitdiff
path: root/Chemical_Engineering_Thermodynamics/ch2_2.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'Chemical_Engineering_Thermodynamics/ch2_2.ipynb')
-rw-r--r--Chemical_Engineering_Thermodynamics/ch2_2.ipynb59
1 files changed, 18 insertions, 41 deletions
diff --git a/Chemical_Engineering_Thermodynamics/ch2_2.ipynb b/Chemical_Engineering_Thermodynamics/ch2_2.ipynb
index 659ed555..b3f8bd13 100644
--- a/Chemical_Engineering_Thermodynamics/ch2_2.ipynb
+++ b/Chemical_Engineering_Thermodynamics/ch2_2.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": ""
+ "name": "",
+ "signature": "sha256:6aa23fb1475338cf467e7afb5732b8b9e456bbb3ad63c14224d73232d920457e"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -28,8 +29,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of acentric factor\n",
- "\n",
+ " \n",
"import math\n",
"\n",
"# Variables\n",
@@ -71,8 +71,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of acentric factor\n",
- "\n",
+ " \n",
"# Variables\n",
"\t\t\t#math.log10(Psat)=8.1122-(1592.864/(t+226.184))\t\t\t# 'Psat' in [mm Hg] and 't' in [c]\n",
"Tc = 513.9;\t\t\t#[K] - Critical temperature\n",
@@ -116,8 +115,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of virial coefficients\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 380;\t\t\t#[K] - Temperature\n",
"Tc = 562.1;\t\t\t#[K] - Critical temperature\n",
@@ -173,8 +171,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of mass using virial equation of state\n",
- "\n",
+ " \n",
"# Variables\n",
"V_1 = 0.3;\t\t\t#[m**(3)]\t\t\t#volume of cylinder\n",
"T = 60+273.15;\t\t\t#[K] - Temperature\n",
@@ -234,8 +231,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of molar volume\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 373.15;\t\t\t#[K] - Temperature\n",
"P = 101325;\t\t\t#[N/m**(2)] - Pressure\n",
@@ -288,8 +284,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of molar volume and virial coefficients\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 50+273.15;\t\t\t#[K] - Temperature\n",
"P = 15*10**(5)\t\t\t#[N/m**(2)] - Pressure\n",
@@ -405,9 +400,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of second and third virial coefficients\n",
- "\n",
- "# Variables\n",
+ " \n",
"T = 0 + 273.15;\t\t\t#[K] - Temperature\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
"from numpy import linalg,array\n",
@@ -464,9 +457,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Estimation of second virial coefficient\n",
- "\n",
- "# Variables\n",
+ " \n",
"T = 444.3;\t\t\t#[K] - Temperature\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
"B_11 = -8.1;\t\t\t#[cm**(3)/mol]\n",
@@ -532,9 +523,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Estimation of molar volume\n",
- "\n",
- "# Variables\n",
+ " \n",
"T = 71+273.15;\t\t\t#[K] - Temperature\n",
"P = 69*10**(5)\t\t\t#[N/m**(2)] - Pressure\n",
"y1 = 0.5;\t\t\t#[mol] - mole fraction of equimolar mixture\n",
@@ -625,9 +614,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of maximum temperature\n",
- "\n",
- "# Variables\n",
+ " \n",
"P = 6.*10**(6)\t\t\t# [Pa] - Pressure\n",
"P_max = 12.*10**(6)\t\t\t# [Pa] - Max pressure to which cylinder may be math.exposed\n",
"T = 280.;\t\t\t#[K] - Temperature\n",
@@ -755,10 +742,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure\n",
- "\n",
- "# Variables\n",
- "\n",
+ " \n",
"V_vessel = 0.1;\t\t\t#[m**(3)]\t\t\t# Volume of vessel\n",
"T = 25 + 273.15;\t\t#[K] - Temperature\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
@@ -815,9 +799,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure\n",
- "\n",
- "# Variables\n",
+ " \n",
"\n",
"V_vessel = 360*10**(-3)\t\t\t#[m**(3)] - volume of vessel\n",
"T = 62+273.15;\t\t\t#[K] - Temperature\n",
@@ -905,9 +887,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of compressibility factor\n",
- "\n",
- "# Variables\n",
+ " \n",
"T = 500+273.15;\t\t\t#[K] - Temperature\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
"P = 325*1000;\t\t\t#[Pa] - Pressure\n",
@@ -981,8 +961,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of molar volume\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve\n",
"\n",
"\n",
@@ -1054,8 +1033,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of volume\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 500+273.15;\t\t\t#[K] - Temperature\n",
"P = 15.;\t\t\t#[atm] - Pressure\n",
@@ -1173,8 +1151,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Estimation of compressibility factor\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 310.93;\t\t\t#[K] - Temperature\n",
"P = 2.76*10**(6)\t\t\t#[N/m**(2)] - Pressure\n",