summaryrefslogtreecommitdiff
path: root/Chemical_Engineering_Thermodynamics/ch10_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/ch10_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/ch10_1.ipynb')
-rw-r--r--Chemical_Engineering_Thermodynamics/ch10_1.ipynb79
1 files changed, 24 insertions, 55 deletions
diff --git a/Chemical_Engineering_Thermodynamics/ch10_1.ipynb b/Chemical_Engineering_Thermodynamics/ch10_1.ipynb
index ed294198..0a1b388b 100644
--- a/Chemical_Engineering_Thermodynamics/ch10_1.ipynb
+++ b/Chemical_Engineering_Thermodynamics/ch10_1.ipynb
@@ -1,6 +1,7 @@
{
"metadata": {
- "name": ""
+ "name": "",
+ "signature": "sha256:3b50ad151f89e9ea380ce80c8112ec5468586c82e236862a1e3d8e194fa15249"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -27,7 +28,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Preparation of fugacity and fugacity coefficient\n",
"\n",
"import math\n",
"\n",
@@ -113,8 +113,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of enthalpy entropy and internal energy change\n",
- "\n",
+ " \n",
"\n",
"import math \n",
"from scipy.integrate import quad \n",
@@ -249,8 +248,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of molar heat capacity\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 35 + 273.15;\t\t\t#[K] - Temperature\n",
"P = 10;\t\t\t#[atm] - Pressure\n",
@@ -307,8 +305,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of final temperature after expansion\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve \n",
"\n",
"# Variables\n",
@@ -387,8 +384,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of fugacity of liquid benzene\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 220 + 273.15;\t\t\t#[K] - Temperature\n",
"Tc = 562.2;\t\t\t#[K] - Critical temperature\n",
@@ -463,8 +459,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of molar enthalpy\n",
- "\n",
+ " \n",
"# Variables\n",
"# C = -0.067 + 30.7/T\n",
"# D = 0.0012 - 0.416/T\n",
@@ -520,8 +515,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of second and third virial coefficients and fugacity\n",
- "\n",
+ " \n",
"# Variables\n",
"# (1)\n",
"T = 311;\t\t\t#[K] - Temperature\n",
@@ -626,8 +620,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of second and third virial coefficients\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 0 + 273.15;\t\t\t#[K] - Temperature\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
@@ -722,8 +715,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of work done and the exit temperature\n",
- "\n",
+ " \n",
"from scipy.optimize import fsolve \n",
"import math\n",
"from scipy.integrate import quad \n",
@@ -948,8 +940,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of temperature and pressure\n",
- "\n",
+ " \n",
"# Variables\n",
"Vol = 0.15;\t\t\t #[m**(3)] - Volume of the cylinder\n",
"P_1 = 100.;\t\t\t #[bar] - Initial pressure\n",
@@ -1089,8 +1080,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of change of internal energy enthalpy entropy and exergy\n",
- "\n",
+ " \n",
"# Variables\n",
"P_1 = 80.;\t\t\t #[bar] - Initial pressure\n",
"P_1 = P_1*10.**(5);\t\t\t#[Pa]\n",
@@ -1187,8 +1177,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of change in enthalpy\n",
- "\n",
+ " \n",
"# Variables\n",
"T_1 = 500.;\t\t\t#[K] - Initial temperature\n",
"P_1 = 30.;\t\t\t#[atm] - Initial pressure\n",
@@ -1255,14 +1244,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of final temperature\n",
- "\n",
- "#(1)\n",
- "#This part involves proving a relation in which no mathematical components are involved.\n",
- "#For proof refer to this example 10.14 on page number 354 of the book.\n",
- "\n",
- "\n",
- "#(2)\n",
+ " \n",
"\n",
"# Variables\n",
"Vol_1 = 0.1;\t\t\t#[m**(3)] - Initial volume of each compartment\n",
@@ -1311,8 +1293,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of work done and the exit temperature\n",
- "\n",
+ " \n",
"# Variables\n",
"P_1 = 1*10**(6);\t\t\t#[Pa] - Initial pressure\n",
"T_1 = 200 + 273.15;\t\t\t#[K] - Initial temperature\n",
@@ -1450,8 +1431,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of molar volume and fugacity\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 100 + 273.15;\t\t\t#[K] - Temperature\n",
"Tc = 647.1;\t\t\t#[K] - Critical temperature of water\n",
@@ -1514,9 +1494,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of enthalpy and entropy change\n",
- "\n",
- "# Variables\n",
+ " \n",
"P_1 = 6;\t\t\t#[bar] - Initial pressure\n",
"P_1 = P_1*10**(5);\t\t\t#[Pa]\n",
"T_1 = 100 + 273.15;\t\t\t#[T] - Initial temperature\n",
@@ -1650,8 +1628,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of fugacity\n",
- "\n",
+ " \n",
"# Variables\n",
"P = 2.76*10**(6);\t\t\t#[N/m**(2)] - Pressure\n",
"T = 310.93;\t\t\t#[K] - Temperature\n",
@@ -1739,8 +1716,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of enthalpy change\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 50+273.15;\t\t\t#[K] - Temperature\n",
"P = 25.*10**(3);\t\t\t#[Pa] - Pressure\n",
@@ -1878,8 +1854,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of fugacity of water vapour\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 320 + 273.15;\t\t\t#[K]\n",
"R = 8.314;\t\t\t#[J/mol*K] - Universal gas constant\n",
@@ -1975,8 +1950,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of change in internal energy\n",
- "\n",
+ " \n",
"# Variables\n",
"Vol = 0.057;\t\t\t#[m**(3)] - Volume of car tyre\n",
"P_1 = 300.;\t\t\t#[kPa] - Initial pressure\n",
@@ -2071,8 +2045,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of enthalpy and entropy change\n",
- "\n",
+ " \n",
"# Variables\n",
"T_1 = 150 + 273.15;\t\t\t#[K] - Initial emperature\n",
"T_2 = T_1;\t\t\t# Isothermal process\n",
@@ -2195,8 +2168,6 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of final temperature and pressure\n",
- "\n",
"# Variables\n",
"Vol = 0.15;\t\t\t#[m**(3)]\n",
"T_1 = 170;\t\t\t#[K] - Initial emperature\n",
@@ -2370,8 +2341,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Calculation of vapour pressure\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 373.15;\t\t\t#[K]\n",
"Tc = 562.16;\t\t\t#[K]\n",
@@ -2460,8 +2430,7 @@
"cell_type": "code",
"collapsed": false,
"input": [
- "# Determination of vapour pressure\n",
- "\n",
+ " \n",
"# Variables\n",
"T = 150 + 273.15;\t\t\t#[K]\n",
"Tc = 647.1;\t\t\t#[K]\n",