# Untitled

Jun 14th, 2021
378
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. % Trabalho 1 -- Maquinas Eletricas I %
2. % Codigo base de calculos %
3.
4. clc, close all, clear all;
5.
6. % Parametros lidos %
7. % Trifásico %
8.
9. SN_3 = 45e3
10. VNAT_3 = 23.1e3
11. VNBT_3 = 380
12. V0_3 = 380
13. I0_3 = 2.46
14. P0_3 = 215
15. Vcc_3   = 900.90
16. Icc_3 = 1.12
17. Pcc_3 = 704.52
18. T_3 = 75 % nao dado
19.
20. % Topico 2 %
21. %Figura 1%
22.
23. RM_3 = (V0_3^2)/P0_3
24. I0P_3 = (V0_3/sqrt(3))/RM_3
25. I0Q_3 = sqrt(I0_3^2 - I0P_3^2)
26. XM_3 = V0_3/I0Q_3
27. %ZM_3 = (V0_3/sqrt(3))/I0_1
28.
29. Z1S_3 = (Vcc_3/sqrt(3))/Icc_3
30. R1S_3 = (Pcc_3/3)/Icc_3^2
31. X1S_3 = (sqrt(Z1S_3^2 - R1S_3^2))
32. R1TS_3 = (235 + T_3)/(235 + 25)*R1S_3
33. Z1TS_3 = sqrt(R1TS_3^2 + X1S_3^2)
34.
35. R2A_3 = R1TS_3/2
36. X2A_3 = X1S_3/2
37. R1_3 = R1TS_3/2
38. X1_3 = X1S_3/2
39.
40. a = (VNAT_3/VNBT_3)
41.
42. % Referindo ao lado de alta
43. RMA_3 = a^2*RM_3
44. XMA_3 = a^2*XM_3
45.
46. % Referindo ao lado de baixa
47. R1B_3 = R1_3/a^2
48. X1B_3 = X1_3/a^2
49. R2_3 = R2A_3/a^2
50. X2_3 = X2A_3/a^2
51.
52. % Referindo ao lado de alta
53. RMA_3
54. XMA_3
55. R1S_3
56. X1S_3
57.
58. % Referindo ao lado de baixa
59. RM_3
60. XM_3
61. R1SB_3 = R1S_3/a^2
62. X1SB_3 = X1S_3/a^2
63.
64. %Figura 3%
65.
66. % Referindo ao lado de alta
67. R1S_3
68. X1S_3
69.
70. % Referindo ao lado de baixa
71. R1SB_3
72. X1SB_3
73.
74.
75. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
76. % Topico 3 %
77. %Figura 1%
78.
79. RMPU_3 = SN_3/P0_3
80. RMPC_3 = RMPU_3*100
81. Q0_3 = sqrt((sqrt(3)*V0_3*I0_3)^2 - P0_3^2)
82. XMPU_3 = SN_3/Q0_3
83. XMPC_3 = XMPU_3*100
84.
85. R1SPU_3 = Pcc_3/SN_3
86. R1SPC_3 = R1SPU_3*100
87. Z1SPU_3 = Vcc_3/VNAT_3
88. Z1SPC_3 = Z1SPU_3*100
89. X1SPU_3 = sqrt(Z1SPU_3^2 - R1SPU_3^2)
90. X1SPC_3 = X1SPU_3*100
91. R1STPU_3 = (235 + T_3)/(235 + 25)*R1SPU_3
92. R1STPC_3 = R1STPU_3*100
93. Z1STPU_3 = sqrt(R1STPU_3^2 + X1SPU_3^2)
94. Z1STPC_3 = Z1STPU_3*100
95.
96. %Figura 1%
97.
98. R2APU_3 = R1STPU_3/2
99. X2APU_3 = X1SPU_3/2
100. R1PU_3 = R1STPU_3/2
101. X1PU_3 = X1SPU_3/2
102. RMPU_3
103. XMPU_3
104.
105. %Figura 2%
106.
107. R1SPU_3
108. X1SPU_1
109. RMPU_3
110. XMPU_3
111.
112. %Figura 3%
113.
114. R1SPU_3
115. X1SPU_1
116.
117. % Comparando com o topico b
118.
119. RMPUB_1 = RM_1/(VNBT_1^2/SN_1)
120. XMPUB_1 = XM_1/(VNBT_1^2/SN_1)
121. R1TSPUB_1 = R1TS_1/(VNAT_1^2/SN_1)
122. X1SPUB_1 = X1S_1/(VNAT_1^2/SN_1)
123.
RAW Paste Data