summaryrefslogtreecommitdiff
path: root/3793/CH4/EX4.1/exp_4_1.sce
blob: dc020b3cc103f75415eb5c5f4b9927b4162b216c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
clear;
clc;
R=.11;
L=1.5;
c=.01;
l=150;
P=50;
V=complex(72128.8,0);
z=complex(.11,.471);
Y=complex(0,(3.14*10^(-6)));
Zc=complex(389.9,-44.925)
gama=sqrt(Y*z);
Ir=complex(230.94,-173.21);
a=gama*l;
sine=complex(.0148,.179);
cosi=complex(.9838,.0027);
Vs=(V*cosi)+(Zc*sine*Ir);
mprintf("sending end voltage is = ")
disp(Vs);
Is=((V*sine)/Zc)+(cosi*Ir);
mprintf("sending end current is = ")
disp(Is);
S=Vs*conj(Is)*10^(-6);
effi=(P/(3*real(S)))*100;
mprintf("efiiciency is = %f percentage",effi)