summaryrefslogtreecommitdiff
path: root/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb
diff options
context:
space:
mode:
authorkinitrupti2017-05-12 18:53:46 +0530
committerkinitrupti2017-05-12 18:53:46 +0530
commitf270f72badd9c61d48f290c3396004802841b9df (patch)
treebc8ba99d85644c62716ce397fe60177095b303db /Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb
parent64d949698432e05f2a372d9edc859c5b9df1f438 (diff)
downloadPython-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.tar.gz
Python-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.tar.bz2
Python-Textbook-Companions-f270f72badd9c61d48f290c3396004802841b9df.zip
Removed duplicates
Diffstat (limited to 'Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb')
-rwxr-xr-xConcepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb94
1 files changed, 94 insertions, 0 deletions
diff --git a/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb b/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb
new file mode 100755
index 00000000..f2dd489f
--- /dev/null
+++ b/Concepts_of_Thermodynamics_by_Obert_Edward_F/Chapter3.ipynb
@@ -0,0 +1,94 @@
+{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3 - Temperature and the ideal gas"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2 - Pg 48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the volume of the gas\n",
+ "#Initialization of variables\n",
+ "p=14.7 #psia\n",
+ "R0=1545 \n",
+ "t=460 +60. #R\n",
+ "#calculations\n",
+ "v=R0*t/(p*144.)\n",
+ "#results\n",
+ "print '%s %.1f %s' %(\"Volume =\",v,\"ft^3/mol\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Volume = 379.5 ft^3/mol\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3 - Pg 48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#calculate the density of nitrogen\n",
+ "#Initialization of variables\n",
+ "p=20 #psia\n",
+ "R0=1545. \n",
+ "t=460. +100 #R\n",
+ "M=28.\n",
+ "#calculations\n",
+ "v=R0*t/(p*144*M)\n",
+ "rho=1/v\n",
+ "#results\n",
+ "print '%s %.4f %s' %(\"density of nitrogen =\",rho,\"lbm/ft^3\")\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "density of nitrogen = 0.0932 lbm/ft^3\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+} \ No newline at end of file