diff options
author | nice | 2014-09-16 17:48:17 +0530 |
---|---|---|
committer | nice | 2014-09-16 17:48:17 +0530 |
commit | b9ebc3adfe1cd0b17f061dd639a5c76329e09afa (patch) | |
tree | b86470bf2c0f61f0d2d8facadbc9c62336d77f43 /Principles_of_Power_System/chapter1.ipynb | |
parent | dfe3c858e90bb33c32f84a46e0a17cdd93b38e11 (diff) | |
download | Python-Textbook-Companions-b9ebc3adfe1cd0b17f061dd639a5c76329e09afa.tar.gz Python-Textbook-Companions-b9ebc3adfe1cd0b17f061dd639a5c76329e09afa.tar.bz2 Python-Textbook-Companions-b9ebc3adfe1cd0b17f061dd639a5c76329e09afa.zip |
updating repo
Diffstat (limited to 'Principles_of_Power_System/chapter1.ipynb')
-rwxr-xr-x | Principles_of_Power_System/chapter1.ipynb | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Principles_of_Power_System/chapter1.ipynb b/Principles_of_Power_System/chapter1.ipynb new file mode 100755 index 00000000..95ebdafe --- /dev/null +++ b/Principles_of_Power_System/chapter1.ipynb @@ -0,0 +1,68 @@ +{
+ "metadata": {
+ "name": ""
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1: Introduction"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 3,
+ "metadata": {},
+ "source": [
+ "Example 1.1, Page Number: 6"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "from __future__ import division\n",
+ "\n",
+ "\n",
+ "#Variable declaration:\n",
+ "Pi = 4200 #input power(W)\n",
+ "E = 120 #voltage supply of generator(V)\n",
+ "I = 32.2 #supply current(A)\n",
+ "\n",
+ "\n",
+ "#Calculation:\n",
+ "Po = E*I #output power(W)\n",
+ "n = Po/Pi*100 #efficiency(%)\n",
+ "Pl = Pi-Po #power lost(W)\n",
+ "El = Pl*60 #energy lost per minute(J)\n",
+ "\n",
+ "\n",
+ "#Result:\n",
+ "print \"The percentage efficiency of the generator is\",n,\"%\"\n",
+ "print \"Energy lost per minute of operation is\",El,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The percentage efficiency of the generator is 92.0 %\n",
+ "Energy lost per minute of operation is 20160.0 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |