summaryrefslogtreecommitdiff
path: root/3472/CH16/EX16.5/Example16_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3472/CH16/EX16.5/Example16_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3472/CH16/EX16.5/Example16_5.sce')
-rw-r--r--3472/CH16/EX16.5/Example16_5.sce40
1 files changed, 40 insertions, 0 deletions
diff --git a/3472/CH16/EX16.5/Example16_5.sce b/3472/CH16/EX16.5/Example16_5.sce
new file mode 100644
index 000000000..a94fe3b34
--- /dev/null
+++ b/3472/CH16/EX16.5/Example16_5.sce
@@ -0,0 +1,40 @@
+// A Texbook on POWER SYSTEM ENGINEERING
+// A.Chakrabarti, M.L.Soni, P.V.Gupta, U.S.Bhatnagar
+// DHANPAT RAI & Co.
+// SECOND EDITION
+
+// PART II : TRANSMISSION AND DISTRIBUTION
+// CHAPTER 9: LOAD FLOW STUDY USING COMPUTER TECHNIQUES
+
+// EXAMPLE : 9.5 :
+// Page number 238
+clear ; clc ; close ; // Clear the work space and console
+
+// Given data
+I_1 = 2.0 // Voltage(p.u)
+I_2 = 2.0*exp(%i*45.0*%pi/180) // Voltage(p.u)
+y1 = complex(0,-1.0) // Admittance(p.u)
+y2 = complex(0,-2.0) // Admittance(p.u)
+y12 = complex(0,-2.0) // Admittance(p.u)
+
+// Calculations
+E_1 = I_1*y1 // Voltage element(p.u)
+E_2 = I_2*y2 // Voltage element(p.u)
+Y_11 = y1+y12 // Self Admittance(p.u)
+Y_12 = -y12 // Mutual Admittance(p.u)
+Y_21 = Y_12 // Mutual Admittance(p.u)
+Y_22 = y2+y12 // Self Admittance(p.u)
+Y_bus = [[Y_11, Y_12],
+ [Y_21, Y_22]] // Bus admittance matrix
+I_bus = [I_1,
+ I_2]
+V = inv(Y_bus)*I_bus
+V_1 = V(1,1:1) // Voltage(p.u)
+V_2 = V(2,1:1) // Voltage(p.u)
+
+// Results
+disp("PART II - EXAMPLE : 9.5 : SOLUTION :-")
+printf("\n[Y_bus] = \n"); disp(Y_bus)
+printf("\nV_1 = %.3f∠%.1f° p.u", abs(V_1),phasemag(V_1))
+printf("\nV_2 = %.3f∠%.1f° p.u\n", abs(V_2),phasemag(V_2))
+printf("\nNOTE: ERROR: Calculation mistake in V_1 in textbook")