blob: 6e08018c079f78efd44912bbb5a82567af269da7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Exa 5.1
clc;
clear;
close;
format('v',6)
// Given data
R = 20;// in ohm
X_L = 15;// in ohm
V_L = 400;// in V
f = 50;// in Hz
V_Ph = V_L/sqrt(3);// in V
Z_Ph = sqrt( (R^2) + (X_L^2) );// in ohm
I_Ph = V_Ph/Z_Ph;// in A
I_L = I_Ph;// in A
disp(I_L,"The line current in A is");
//pf = cos(phi) = R_Ph/Z_Ph;
R_Ph = R;// in ohm
phi= acosd(R_Ph/Z_Ph);
// Power factor
pf= cosd(phi);// in °
disp("The power factor is : "+string(pf)+"° lag.");
P = sqrt(3)*V_L*I_L*cosd(phi);// in W
disp(P,"The power supplied in W is");
|