From b8bb8bbfa81499ad7fc3f3508be257da65f543af Mon Sep 17 00:00:00 2001 From: nice Date: Tue, 16 Sep 2014 17:48:17 +0530 Subject: updating repo --- Principles_of_Power_System/chapter15.ipynb | 126 +++++++++++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100755 Principles_of_Power_System/chapter15.ipynb (limited to 'Principles_of_Power_System/chapter15.ipynb') diff --git a/Principles_of_Power_System/chapter15.ipynb b/Principles_of_Power_System/chapter15.ipynb new file mode 100755 index 00000000..35b4fcc7 --- /dev/null +++ b/Principles_of_Power_System/chapter15.ipynb @@ -0,0 +1,126 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:99f2463b3650514f9c88ec63c2c7f7ef832ae42348e5f3fe2b1b870ab9434349" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": [ + "Chapter 15: Voltage Control" + ] + }, + { + "cell_type": "heading", + "level": 3, + "metadata": {}, + "source": [ + "Example 15.1, Page Number: 384" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "from sympy import *\n", + "import math\n", + "\n", + "#Variable declaration:\n", + "Pl = 10000 #load(kW)\n", + "pf = 0.8 #power factor(lag)\n", + "Vl = 33000 #receiving end line voltage(V)\n", + "R = 5 #line resistance(ohm)\n", + "X = 10 #line reactance(ohm)\n", + "\n", + "\n", + "\n", + "#Calculation:\n", + "I2 = math.floor(Pl*1000/(3**0.5*Vl*0.8)) #load current(A)\n", + "Ip = I2*pf #A\n", + "Iq = I2*math.sin(math.acos(pf)) #A\n", + "V1 = round(Vl/3**0.5) #sending end voltage(V)\n", + "#Let Im be the current taken by the synchronous condenser.\n", + "Im = symbols('Im') #A\n", + "Im1 = solve((V1+Ip*R-X*(Im-Iq))**2+(Ip*X+(Im-Iq)*R)**2-V1**2,Im)[0]\n", + "C = 3*V1*round(Im1)/1000 #kVAR\n", + "\n", + "\n", + "#Result:\n", + "print \"Capacity of synchronous condenser is\",math.floor(C),\"kVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Capacity of synchronous condenser is 13203.0 kVAR\n" + ] + } + ], + "prompt_number": 13 + }, + { + "cell_type": "heading", + "level": 3, + "metadata": {}, + "source": [ + "Example 15.2 Page Number: 385" + ] + }, + { + "cell_type": "code", + "collapsed": false, + "input": [ + "from __future__ import division\n", + "import math\n", + "\n", + "#Variable declaration:\n", + "Pl = 25000 #load(kW)\n", + "pf = 0.8 #power factor(lag)\n", + "Vl = 33000 #receiving end line voltage(V)\n", + "R = 5 #line resistance(ohm)\n", + "X = 20 #line reactance(ohm)\n", + "\n", + "\n", + "\n", + "#Calculation:\n", + "I2 = round(Pl*1000/(3**0.5*Vl*pf),1) #load current(A)\n", + "Ip = I2*pf #A\n", + "Iq = I2*math.sin(math.acos(pf)) #A\n", + "V1 = Vl/3**0.5 #sending end voltage(V)\n", + "#Let Im be the current taken by the synchronous condenser.\n", + "Im = symbols('Im') #A\n", + "Im1 = solve((V1+Ip*R-X*(Im-Iq))**2+(Ip*X+(Im-Iq)*R)**2-V1**2,Im)[0]\n", + "C = 3*V1*Im1/1000 #kVAR\n", + "\n", + "\n", + "#Result:\n", + "print \"Capacity of synchronous condenser is\",round(C/1000,2),\"MVAR\"" + ], + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": [ + "Capacity of synchronous condenser is 33.11 MVAR\n" + ] + } + ], + "prompt_number": 2 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file -- cgit