Você está na página 1de 3

Experimento 5

December 3, 2023

Experimento 5 - Circuito 3 RLC

[1]: using Plots, Roots


gr(size = (800, 600))

[1]: Plots.GRBackend()

[2]: # dados experimentais


R = 119
C = 60e-9
L = 1.0055e-3;

[3]: # função reatância capacitiva


xc(f) = 1/(2*pi*f*C)

[3]: xc (generic function with 1 method)

[4]: # função reatância indutiva


xl(f) = 2*pi*f*L

[4]: xl (generic function with 1 method)

Indutivo (tensão adiantada)

[5]: # função angulo theta entre


�(f) = atand((xl(f) - xc(f))/R)

[5]: � (generic function with 1 method)

[6]: # gráfico frequencia x angulo theta


plot(0:1000:300000,�,
minorgrid=true,
xaxis = ("Frequencia", (0 , 300000), 0:30000:300000),
yaxis = ("Angulo (º)", (-90, 90), -90:10:90),
label = "")
[6]:

1
Considerando:
𝜃 = 𝑎𝑡𝑎𝑛( 𝑥𝐿𝑅
−𝑥𝐶
)
$ tan(�)�R = x_L - x_C $
$ x_L - x_C - tan(�) �R = 0 $

[12]: # solução para angulo de 20º


sol1 = find_zero(f -> xl(f) - xc(f) - R*tand(20), 1000)

[12]: 24203.12762013878

[13]: # solução para angulo de -20º


sol2 = find_zero(f -> xl(f) - xc(f) - R*tand(-20), 1000)

[13]: 17347.442121688287

[14]: # solução para angulo de 0º


sol3 = find_zero(f -> xl(f) - xc(f) - R*tand(0), 1000)

[14]: 20490.543076116668

2
[15]: # gráfico e pontos
plot(17000:50:25000,�,
minorgrid=true,
xaxis = ("Frequencia", (17000 , 25000), 17000:500:25000),
yaxis = ("Angulo (º)", (-30, 30), -30:10:30),
label = "")
plot!(15000:100:25000, y-> -20, label = "")
plot!(15000:100:25000, y-> 20, label = "")
scatter!([sol1], [20], label = "")
scatter!([sol2], [-20],label = "")
scatter!([sol3], [0],label = "")
[15]:

Você também pode gostar