From 92cca121f959c6616e3da431c1e2d23c4fa5e886 Mon Sep 17 00:00:00 2001 From: hardythe1 Date: Tue, 7 Apr 2015 15:58:05 +0530 Subject: added books --- .../Chapter_2_1.ipynb | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100755 Thermodynamics:_From_concepts_to_applications/Chapter_2_1.ipynb (limited to 'Thermodynamics:_From_concepts_to_applications/Chapter_2_1.ipynb') diff --git a/Thermodynamics:_From_concepts_to_applications/Chapter_2_1.ipynb b/Thermodynamics:_From_concepts_to_applications/Chapter_2_1.ipynb new file mode 100755 index 00000000..a9cf01c8 --- /dev/null +++ b/Thermodynamics:_From_concepts_to_applications/Chapter_2_1.ipynb @@ -0,0 +1,69 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c445f39e7878cf61ffc763516de39900f14df501737d9a8da58454f14557359b" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 2 - Basic concepts " + ] + }, + { + "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 -- cgit