repl.it
@MarkoPavlovic/

Izbor komponente

Python

No description

fork
loading
Files
  • main.py
main.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
"""
fs=100000
I0=4
deltaIl=0.03*I0
V0=5
deltaV0=0.02*V0
Vin=17
D=0.3
deltaVfly=deltaV0
L=(Vin*(0.5-D)*D)/(deltaIl*fs)
Cout=(deltaIl)/(16*deltaV0*fs)
Cfly=(D*I0)/(deltaVfly*fs)

print("L je  "+str(L))
print("Cout je  "+str(Cout))
print("Cfly je  "+str(Cfly))
"""
"""
#Onaj lik
fs=20000
I0=1
deltaIl=0.006*I0
V0=5
deltaV0=0.03
Vin=12
D=V0/Vin
deltaVfly=0.05
L=(Vin*(0.5-D)*D)/(deltaIl*fs)
Cout=(deltaIl)/(16*deltaV0*fs)
Cfly=(D*I0)/(deltaVfly*fs)

print("L je  "+str(L))
print("Cout je  "+str(Cout))
print("Cfly je  "+str(Cfly))
#Cfly je 25.2u  
"""

fs=20000
I0=1
deltaIl=0.006*I0
V0=5
deltaV0=0.03
Vin=12
D=V0/Vin
deltaVfly=0.05
L=(Vin*(0.5-D)*D)/(deltaIl*fs)
Cout=(deltaIl)/(16*deltaV0*fs)
Cfly=(D*I0)/(deltaVfly*fs)

print("L je  "+str(L))
print("Cout je  "+str(Cout))
print("Cfly je  "+str(Cfly))