summaryrefslogtreecommitdiff
path: root/Chemical_Engineering_Thermodynamics/ch15_1.ipynb
diff options
context:
space:
mode:
authordebashisdeb2014-06-20 15:42:42 +0530
committerdebashisdeb2014-06-20 15:42:42 +0530
commit83c1bfceb1b681b4bb7253b47491be2d8b2014a1 (patch)
treef54eab21dd3d725d64a495fcd47c00d37abed004 /Chemical_Engineering_Thermodynamics/ch15_1.ipynb
parenta78126bbe4443e9526a64df9d8245c4af8843044 (diff)
downloadPython-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.gz
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.tar.bz2
Python-Textbook-Companions-83c1bfceb1b681b4bb7253b47491be2d8b2014a1.zip
removing problem statements
Diffstat (limited to 'Chemical_Engineering_Thermodynamics/ch15_1.ipynb')
-rw-r--r--Chemical_Engineering_Thermodynamics/ch15_1.ipynb78
1 files changed, 25 insertions, 53 deletions
diff --git a/Chemical_Engineering_Thermodynamics/ch15_1.ipynb b/Chemical_Engineering_Thermodynamics/ch15_1.ipynb
index ad62c947..fcfb0cd5 100644
--- a/Chemical_Engineering_Thermodynamics/ch15_1.ipynb
+++ b/Chemical_Engineering_Thermodynamics/ch15_1.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": ""
+ "name": "",
+ "signature": "sha256:aa6f699613cdf9bcba2dda4617212630ca1760d21939d5cd99d17e7e03b7e885"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -27,8 +28,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of number of moles in liquid and vapour phase\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 90+ 273.15;\t\t\t#[K] - Temperature\n",
"P = 1;\t\t\t#[atm] - Pressure\n",
@@ -97,8 +97,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure temperature and composition\n",
- "\n",
+ " \n",
"import math\n",
"\n",
"# Variables\n",
@@ -232,14 +231,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure temperature and composition\n",
- "\n",
- "# Variables\n",
- "\t\t\t# math.log(P_1_sat) = 14.3916 - 2795.82/(t + 230.00)\n",
- "\t\t\t# math.log(P_2_sat) = 14.2724 - 2945.47/(t + 224.00)\n",
- "\t\t\t# math.log(P_3_sat) = 14.2043 - 2972.64/(t + 209.00)\n",
- "\n",
- "\t\t\t#(a)\n",
+ " \n",
"x_1_a = 0.25;\t\t\t# Equilibrium composition of liquid phase\n",
"x_2_a = 0.35;\n",
"x_3_a = 1 - x_1_a - x_2_a;\n",
@@ -381,8 +373,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure and composition\n",
- "\n",
+ " \n",
"import math\n",
"\n",
"# Variables\n",
@@ -458,8 +449,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure temperature and composition\n",
- "\n",
+ " \n",
"import math\n",
"# Variables\n",
"T = 27;\t\t\t#[C] - Temperature\n",
@@ -556,8 +546,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determinatin of DPT and BPT\n",
- "\n",
+ " \n",
"# Variables\n",
"P = 90;\t\t\t#[kPa] - Pressure\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
@@ -639,8 +628,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of range of temperature for which two phase exists\n",
- "\n",
+ " \n",
"# Variables\n",
"P = 1;\t\t\t#[bar] - Pressure\n",
"P = P*10**(2);\t\t\t#[kPa]\n",
@@ -732,8 +720,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of DPT and BPT\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve \n",
"import math \n",
"\n",
@@ -859,8 +846,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of range of pressure for which two phase exists\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve \n",
"import math \n",
"\n",
@@ -959,8 +945,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of vapour and liquid phase composition\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 50;\t\t\t#[C] - Temperature\n",
"P = 64;\t\t\t#[kPa] - Pressure\n",
@@ -1037,8 +1022,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of temperature\n",
- "\n",
+ " \n",
"# Variables\n",
"P = 12.25*101325*10**(-3);\t\t\t#[kPa]\n",
"z_1 = 0.8;\n",
@@ -1121,8 +1105,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of number of moles in liquid and vapour phase\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 105;\t\t\t#[C]\n",
"P = 1.5;\t\t\t#[atm]\n",
@@ -1173,8 +1156,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of vapour and liquid phase composition\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 90;\t\t\t#[C]\n",
"P = 1;\t\t\t#[atm]\n",
@@ -1235,8 +1217,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Preparation of table having composition and pressure data\n",
- "\n",
+ " \n",
"from numpy import zeros\n",
"\n",
"# Variables\n",
@@ -1340,8 +1321,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of DPT and BPT\n",
- "\n",
+ " \n",
"# Variables\n",
"P_1_sat = 79.80;\t\t\t#[kPa]\n",
"P_2_sat = 40.45;\t\t\t#[kPa]\n",
@@ -1409,7 +1389,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of pressure\n",
+ "\n",
"\n",
"# Variables\n",
"T = 78.15;\t\t\t#[C]\n",
@@ -1473,8 +1453,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of van Laar activity coefficient parameters\n",
- "\n",
+ " \n",
"from scipy.stats import linregress\n",
"\n",
"# Variables\n",
@@ -1546,8 +1525,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Prediction of azeotrrope formation\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve \n",
"import math \n",
"\n",
@@ -1623,8 +1601,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Tabulation of activity coefficients relative volatility and compositions\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 45;\t\t\t#[C] - Temperature\n",
"\n",
@@ -1733,8 +1710,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Tabulation of partial pressure and total pressure data of components\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 25;\t\t\t#[C] - Temperature\n",
"P_1_sat = 230.4;\t\t\t#[mm Hg]\n",
@@ -1837,9 +1813,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of azeotrope formation\n",
- "\n",
- "# Variables\n",
+ " \n",
"T = 50;\t\t\t#[C]\n",
"\t\t\t# At 50 C\n",
"P_1_sat = 0.67;\t\t\t#[atm]\n",
@@ -1923,8 +1897,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Tabulation of pressure and composition data\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 25;\t\t\t#[C]\n",
"\t\t\t# At 50 C\n",
@@ -2027,8 +2000,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of van Laar parameters\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 58.7;\t\t\t#[C]\n",
"P = 1;\t\t\t#[atm]\n",