summaryrefslogtreecommitdiff
path: root/3872/CH8/EX8.1/EX8_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '3872/CH8/EX8.1/EX8_1.sce')
-rw-r--r--3872/CH8/EX8.1/EX8_1.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3872/CH8/EX8.1/EX8_1.sce b/3872/CH8/EX8.1/EX8_1.sce
new file mode 100644
index 000000000..07519b4cc
--- /dev/null
+++ b/3872/CH8/EX8.1/EX8_1.sce
@@ -0,0 +1,17 @@
+//Book - Power System: Analysis & Design 5th Edition
+//Authors - J. Duncan Glover, Mulukutla S. Sarma, and Thomas J. Overbye
+//Chapter - 8 ; Example 8.1
+//Scilab Version - 6.0.0 ; OS - Windows
+clc;
+clear;
+Vp = [277; 277*(cos(-120*%pi/180)+%i*sin(-120*%pi/180)); 277*(cos(120*%pi/180)+%i*sin(120*%pi/180))]; //given column vector of phase voltage in volts
+function [Vp1]=phaseshift(x1,x2) //Function for shifting the phase
+ [r theta]=polar(x1);
+ Vp1=r*(cos(theta+x2*%pi/180)+%i*sin(theta+x2*%pi/180));
+endfunction
+V0 = 1*(Vp(1,1)+Vp(2,1)+Vp(3,1))/3; //zero sequence voltage in V
+V1 = 1*(Vp(1,1)+phaseshift(Vp(2,1),120)+phaseshift(Vp(3,1),240))/3; //positive sequence voltage in V
+V2 = 1*(Vp(1,1)+phaseshift(Vp(2,1),240)+phaseshift(Vp(3,1),120))/3; //negative sequence voltage in V
+printf('\nThe zero sequence voltage V0 = %f V',V0);
+printf('\nThe positive sequence voltage V1 = %f V',V1);
+printf('\nThe negative sequence voltage V2 = %f V',V2);