-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoving7.py
86 lines (59 loc) · 1.17 KB
/
oving7.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
from jonas import fromPolar, printPolar, findV0, printOppg
#
# Oppg 1
#
printOppg(1)
Vr = fromPolar(500)
Vs = fromPolar(500, -120)
Vt = fromPolar(500, 120)
Zl = fromPolar(5, 0)
Zr = Zl + fromPolar(10, 30)
Zs = Zl + fromPolar(10, 45)
Zt = Zl + fromPolar(20, 60)
V0 = findV0(Zr, Zs, Zt, Vr, Vs, Vt)
printPolar(Vr, Vs, Vt, Zl, Zr, Zs, Zt, V0)
#
# Oppg 2
#
printOppg(2)
Vr = fromPolar(3000)
Vs = fromPolar(3000, -120)
Vt = fromPolar(3000, 120)
Zl = 2 + 4j
Zr = Zl + 20 + 10j
Zs = Zl + 30 + 5j
Zt = Zl + 20 - 20j
V0 = findV0(Zr, Zs, Zt, Vr, Vs, Vt)
printPolar(Vr, Vs, Vt, Zl, Zr, Zs, Zt, V0)
#
# Oppg 3
#
printOppg(3)
Vr = fromPolar(5000)
Vs = fromPolar(5000, -120)
Vt = fromPolar(5000, 120)
Zl = 3 + 9j
Zr = Zl + 20 - 5j
Zs = Zl + 20 + 20j
Zt = Zl + 30 - 5j
V0 = findV0(Zr, Zs, Zt, Vr, Vs, Vt)
printPolar(Vr, Vs, Vt, Zl, Zr, Zs, Zt, V0)
#
# Oppg 5
#
printOppg(5)
Ur = fromPolar(220)
Us = fromPolar(220, -120)
Ut = fromPolar(220, 120)
U0 = (Ur/2 + Us + Ut) / (5/2)
Uu = Ur - U0
Uv = Us - U0
Uw = Ut - U0
printPolar(Ur, Us, Ut, U0, Uu, Uv, Uw)
S = 5000 + 4000j
Z = (((Uu**2)/S).conjugate()) / 2
printPolar(S, Z)
I1 = Uu / (2*Z)
I2 = Uv / Z
I3 = Uw / Z
printPolar(I1, I2, I3)