summaryrefslogtreecommitdiff
path: root/Principles_of_Power_System/chapter15_1.ipynb
diff options
context:
space:
mode:
authornice2014-10-09 18:07:00 +0530
committernice2014-10-09 18:07:00 +0530
commit8048392490bd2efe0fdfa001945f663cba969841 (patch)
treec298682dfb22073b17d86791c5e7a756f4aa1a92 /Principles_of_Power_System/chapter15_1.ipynb
parentb9ebc3adfe1cd0b17f061dd639a5c76329e09afa (diff)
downloadPython-Textbook-Companions-8048392490bd2efe0fdfa001945f663cba969841.tar.gz
Python-Textbook-Companions-8048392490bd2efe0fdfa001945f663cba969841.tar.bz2
Python-Textbook-Companions-8048392490bd2efe0fdfa001945f663cba969841.zip
updated books
Diffstat (limited to 'Principles_of_Power_System/chapter15_1.ipynb')
-rw-r--r--Principles_of_Power_System/chapter15_1.ipynb126
1 files changed, 0 insertions, 126 deletions
diff --git a/Principles_of_Power_System/chapter15_1.ipynb b/Principles_of_Power_System/chapter15_1.ipynb
deleted file mode 100644
index 35b4fcc7..00000000
--- a/Principles_of_Power_System/chapter15_1.ipynb
+++ /dev/null
@@ -1,126 +0,0 @@
-{
- "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