summaryrefslogtreecommitdiff
path: root/1094/CH2/EX2.2.2/EX2_2_2.sce
blob: 09ca5c3ecf363e2c143a1118dbc0ac9bd92e7616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Exa:2.2.2
clc;
clear;
close;
Z_ph=8+%i*6//impedance per phase (in ohms)
V_AN=400//in volts
I_ph=V_AN/Z_ph
disp(abs(I_ph),'Phase current (in A)=')
disp(atand(imag(I_ph)/real(I_ph)),'phase=')
I_L=sqrt(3)*abs(I_ph)
disp(I_L,'Line current (in A)=')
pf=cosd(atand(imag(I_ph)/real(I_ph)))
disp(pf,'power factor=')
P=sqrt(3)*V_AN*I_L*pf*10^-3
disp(P,'Power absorbed (in KW)=')