diff options
author | kinitrupti | 2017-05-12 18:53:46 +0530 |
---|---|---|
committer | kinitrupti | 2017-05-12 18:53:46 +0530 |
commit | 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d (patch) | |
tree | 22789c9dbe468dae6697dcd12d8e97de4bcf94a2 /Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb | |
parent | d36fc3b8f88cc3108ffff6151e376b619b9abb01 (diff) | |
download | Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.gz Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.tar.bz2 Python-Textbook-Companions-6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d.zip |
Removed duplicates
Diffstat (limited to 'Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb')
-rwxr-xr-x | Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb b/Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb new file mode 100755 index 00000000..dad780a4 --- /dev/null +++ b/Physical_Chemistry_by_Duffey_George_H/Chapter9.ipynb @@ -0,0 +1,103 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:d8a3e9ee0b493342a03a360ee0ca604f80a61547dd5ed22ef022608eecfbe8c4"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9 - Boltzmann distribution law"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1 - pg 235"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the no of particles\n",
+ "#Initialization of variables\n",
+ "import math\n",
+ "r=2.1*10**-6 #cm\n",
+ "n=889\n",
+ "x=0.1 #cm\n",
+ "T=298.2 #K\n",
+ "#calculations\n",
+ "V=4/3 *math.pi *r**3\n",
+ "rho=19.3-1\n",
+ "ffd=rho*V*980.7\n",
+ "eps=ffd*x\n",
+ "logN=-6.96*10**-14 /(2.303*1.38*10**-16 *T)\n",
+ "N=10**logN *n\n",
+ "#results\n",
+ "print '%s %.1f' %(\"No. of particles =\",N)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "No. of particles = 163.9\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2 - pg 237"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the Temperature\n",
+ "#Initialization of variables\n",
+ "import math\n",
+ "x=1. #percent\n",
+ "wave=1595 #cm**-1\n",
+ "#calculations\n",
+ "E=2.8593*wave\n",
+ "Nratio=(100-x)/x\n",
+ "logN=math.log10(Nratio)\n",
+ "T=E/(2.303*1.987*logN)\n",
+ "#results\n",
+ "print '%s %d %s' %(\"Temperature =\",T,\"K\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Temperature = 499 K\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |