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/chapter15.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/chapter15.ipynb')
-rwxr-xr-x | Principles_of_Power_System/chapter15.ipynb | 126 |
1 files changed, 126 insertions, 0 deletions
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 |