-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoving10.py
92 lines (70 loc) · 1.42 KB
/
oving10.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from jonas import fromPolar, printPolar, plotPolar, findV0, printOppg
#
# Oppg 1
#
printOppg(1)
# Innstillinger
Zl = 2 + 4j
Z2r = 20 + 10j
Z2s = 30 + 5j
Z2t = 20 - 20j
Zr = Z2r + Zl
Zs = Z2s + Zl
Zt = Z2t + Zl
V1r = 3000
V1s = fromPolar(3000, -120)
V1t = fromPolar(3000, 120)
printPolar(Zr, Zs, Zt, V1r, V1s, V1t)
# a) Find V2
V0 = findV0(Zr, Zs, Zt, V1r, V1s, V1t)
V1r_delta = V1r - V0
V1s_delta = V1s - V0
V1t_delta = V1t - V0
printPolar(V0, V1r_delta, V1s_delta, V1t_delta)
# b) Finn Ifase = Ilinje i Y-kobling.
Ir = V1r_delta/Zr
Is = V1s_delta/Zs
It = V1t_delta/Zt
printPolar(Ir, Is, It)
# c) Bruk 2-wattmetermetode til å finne P og Q
V2r = Ir * Z2r
V2s = Is * Z2s
V2t = It * Z2t
V2rt = V2r - V2t
V2st = V2s - V2t
Srt = V2rt * Ir.conjugate()
Sst = V2st * Is.conjugate()
S = Srt + Sst
printPolar(V2rt, V2st, Srt, Sst, S)
# d) Bruk 3-wattmetermetode
Sr = V2r * Ir.conjugate()
Ss = V2s * Is.conjugate()
St = V2t * It.conjugate()
S = Sr + Ss + St
printPolar(Sr, Ss, St, S)
plotPolar(Sr, Ss, St, S)
#
# Oppg 2
#
printOppg(2)
Vrs = 208
Vst = fromPolar(208, -120)
Vtr = fromPolar(208, +120)
Zrs = 10
Zst = 15 + 20j
Ztr = 12 - 12j
# a) Fasestrømmene
Irs = Vrs/Zrs
Ist = Vst/Zst
Itr = Vtr/Ztr
printPolar(Irs, Ist, Itr)
# b) Linjestrømmene - Kirchofs current
Ir = Irs - Itr
Is = Ist - Irs
It = Itr - Ist
# c) Effekt
Srt = (-Vtr) * Ir.conjugate()
Sst = Vst * Is.conjugate()
S = Srt + Sst
printPolar(Sst, Srt, S)
plotPolar(Sst, Srt, S)