summaryrefslogtreecommitdiff
path: root/3872/CH8/EX8.1/EX8_1.sce
blob: 07519b4ccca585fee67a19ed239de511a373e8af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);