diff options
Diffstat (limited to 'Thermodynamics:_From_concepts_to_applications/Chapter_2.ipynb')
-rwxr-xr-x | Thermodynamics:_From_concepts_to_applications/Chapter_2.ipynb | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/Thermodynamics:_From_concepts_to_applications/Chapter_2.ipynb b/Thermodynamics:_From_concepts_to_applications/Chapter_2.ipynb new file mode 100755 index 00000000..1b242151 --- /dev/null +++ b/Thermodynamics:_From_concepts_to_applications/Chapter_2.ipynb @@ -0,0 +1,69 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:2df70ea24eb675b5df88544238cda98c7d9d4538b630227696b56b410ea0e81e"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2 - Work"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2 pg 12"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "import math\n",
+ "##calculate the mass of oxygen and density of oxygen and specific volume and molar specific volume\n",
+ "##initialisation of variables\n",
+ "n= 0.25 ## k mol\n",
+ "M= 32 ##kg/kmol\n",
+ "V= 0.5 ##m^3\n",
+ "##CALCULATIONS\n",
+ "m= n*M\n",
+ "d= m/V\n",
+ "v= 1/d\n",
+ "v1= V/n\n",
+ "##RESULTS\n",
+ "print'%s %.0f %s'%(\"mass of oxygen=\",m,'kg')\n",
+ "print'%s %.0f %s'%(\"density of oxygen=\",d,'kg/m^3')\n",
+ "print'%s %.4f %s'%('specific volume=',v,'kg/m^3')\n",
+ "print'%s %.0f %s'%('molar specific volume=',v1,'m^3/kmol')\n",
+ "\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "mass of oxygen= 8 kg\n",
+ "density of oxygen= 16 kg/m^3\n",
+ "specific volume= 0.0625 kg/m^3\n",
+ "molar specific volume= 2 m^3/kmol\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |