You are on page 1of 5

EEE 3003

POWER SYSTEM ENGINEERING


VARUN MAMTANI 17BEE0208
TOPIC: A.C DISTRIBUTION

MATLAB CODE:
clc
clear all
Zac=input("Enter the Impedance of Section AC:")
Zcb=input("Enter the Impedance of Section CB:")
fic=input("Enter the fi given at point C:")
pf1=cosd(fic)
pf2=sind(fic)
fib=input("Enter the fi given at point B:")
pf3=cosd(fib)
pf4=sind(fib)
Ione=input("Enter the current at point C:")
Itwo=input("Enter the current at point B:")
Ivectone = ((Ione)*((pf1)-(pf2*i)))
Ivecttwo = ((Itwo)*((pf3)-(pf4*i)))
Icb=Ivecttwo
Iac=(Ivectone)+(Ivecttwo)
Vcb=(Icb)*(Zcb)
Vac=(Iac)*(Zac)
Vdrop=(Vac)+(Vcb)
OUTPUT
MANUAL CALCULATION:
TABULATION:
Theoritical Matlab
Vcb 4.4-0.8i 4.4017 - 0.7908i

Vac 18.04-3.01i 13.0460 - 2.9958i

Vdrop 17.44-3.81i 17.4476 - 3.7866i

You might also like