0% found this document useful (0 votes)
18 views8 pages

HW 5

Portland State University EE 347 HW 5

Uploaded by

Majo Cote
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views8 pages

HW 5

Portland State University EE 347 HW 5

Uploaded by

Majo Cote
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Mario Hernandez

EE 347 Spring 24

06/02/2024

Homework #5

Problem #1

Python Code:
import numpy as np

import pandas as pd
import matplotlib.pyplot as plt

# Define your functions here (ABCD_coefficient, colvert1, colvert2,


Voltage_Regulation, Efficiency)
def ABCD_coefficient(Y_C, Z, d_m):
if d_m < 50:
A = 1.0
B = Z
C = 0.0
D = A
elif 50 <= d_m < 150:
A = 1 + Z * Y_C / 2
B = Z
C = ((Y_C * Z) / 4 + 1) * Y_C
D = A
else:
gamma = np.sqrt(Y_C * Z)
Zp = Z * (1 / gamma * np.sinh(gamma))
Yp = Y_C * (1 / (gamma / 2) * np.tanh(gamma / 2))
A = (Zp * Yp) / 2 + 1
B = Zp
C = Yp * ((Zp * Yp) / 4 + 1)
D = A

return A, B, C, D

def colvert1(rho, phi):


x = rho * np.cos(phi)
y = rho * np.sin(phi)
return (x, y)

def colvert2(x, y):


rho = np.sqrt(x**2 + y**2)
phi = np.arctan2(y, x)
return (rho, phi)
def Voltage_Regulation(V_ll, V_rated):
return np.abs((V_ll - V_rated) / V_rated * 100)

def Efficiency(V_r, Ir_magnitude, Vs_magnitude, Is_magnitude, Vs_angle,


Is_angle, PF):
Pout = 3 * V_r * Ir_magnitude * PF
Pin = 3 * Vs_magnitude * Is_magnitude * np.cos(Vs_angle - Is_angle)
return Pout / Pin * 100
# Constants and initializations
S_base = 100 * (10**6)
V_base = 260 * (10**3)
I_base = S_base / V_base
Z_base = V_base / I_base
Y_base = 1 / Z_base
Y_pu = 0.032
Y_C = -1j * Y_base * Y_pu
Z_pu = complex(0.002, 0.0155)
Z_actual = Z_base * Z_pu
PF = 1
V_rated = V_base # Assuming V_rated is the same as V_base

d_m = np.arange(45, 246, 100) # mi - transmission line length


i = 0
line = ('Short', 'Medium', 'Long')

results_table = []
for distance in d_m:
A, B, C, D = ABCD_coefficient(Y_C, Z_actual, distance)
Irx, Iry = colvert1(S_base / (np.sqrt(3) * V_base), np.arccos(PF))
Ir = Irx + 1j * Iry
V_r = V_base / np.sqrt(3)
Vs = A * V_r + B * Ir
Vs_magnitude, Vs_angle = colvert2(np.abs(Vs), np.angle(Vs))
V_ll = np.sqrt(3) * Vs_magnitude
VR = Voltage_Regulation(V_ll, V_rated)
Is = C * V_r + D * Ir
Is_magnitude, Is_angle = colvert2(np.abs(Is), np.angle(Is))
Ir_magnitude, _ = colvert2(np.real(Ir), np.imag(Ir))
efficiency = Efficiency(V_r, Ir_magnitude, Vs_magnitude, Is_magnitude,
Vs_angle, Is_angle, PF)
results_table.append([line[i], np.round(A, 5), np.round(B, 5),
np.round(C, 5), np.round(D, 5), np.round(VR, 5), np.round(efficiency, 5)])
i = i + 1

headers = ["Length", "A", "B", "C", "D", "V_r (%)", "Efficiency (%)"]
fig, ax = plt.subplots(figsize=(10, 6))
ax.axis('tight')
ax.axis('off')
table = ax.table(cellText=results_table, colLabels=headers, loc='center')
table.auto_set_font_size(False)
table.set_fontsize(6)
table.scale(1.2, 1.8)
plt.savefig('table_image.png', bbox_inches='tight', pad_inches=0.05)
plt.show()

Results:
Problem #2:

-All transformers and transmission line limit ra ngs were changed to 1.5 MVA. An image of the
one-line diagram with the adjustment, added 200 kVA, 0.95 lagging load, and all relevant data is shown
below:

-Efficiency Calcula ons:

Step-Up Transformer:

.
𝜂= ∗ 100% = ∗ 100% = 98.00%
.

Transmission Line

.
𝜂= ∗ 100% = ∗ 100% = 96.52%
.

Step-Down Transformer:

.
𝜂= ∗ 100% = ∗ 100% = 97.94%
.
Problem #3

Ozzie Outback Electric Power Company Power Flow Report

Input summary sta s cs:

-23 lines in system

-1 SYSTEM line

-5 BUS lines

-6 LINE lines

Bus Data:

Line Data:
Line Losses:

Overloaded Lines:

Ra ng on line 3 exceeded: 203.97 MVA > 200.00 MVA.

Ra ng on line 5 exceeded: 66.03 MVA > 60.00 MVA.

Ra ng on line 6 exceeded: 61.00 MVA > 60.00 MVA.


Compensated Ozzie Outback Electric Power Company Power Flow Report

-The system was compensated with the addi on of 75, 70, and 100 MVAR capacitors on the Mallee,
Myall, and Sa nay lines respec vely.
Fundamentals of Engineering Exam Problem 1:

Which of the following most likely presents a unity power factor?

(A) An electric heat pump water heater


(B) A hydrogen electrolyzer
(C) A resistance water heater
(D) An over-excited synchronous generator

Fundamentals of Engineering Exam Problem 2:

Psuedo-code from a computer program contains the following segment:


i=1
while i < 4
i=i+2
else break
How many itera ons does this rou ne perform?

(A) 0
(B) 1
(C) 2
(D) 3

You might also like