Professional Documents
Culture Documents
Assignment Icpds 2-1
Assignment Icpds 2-1
SUBMITTED TO:
SIR FURQAN
SUBMITTED BY:
Muhammad Burhan
22-ME-318
SECTION(A)
ASSIGNMENT#2
FIRSTLY FOR TWO TIMES OF SOURCE RESISTANCE
print("This program will illustrate the Maximum Power Transfer Theorem by computing the load power
for different load resistances.")
Pmax = 0
# Create a list to store the load resistance, load voltage, load current, and load power values
r_values = []
v_values = []
i_values = []
p_values = []
I = E / (Rsource + Rload)
Pload = Vload * I
# Compare the load power to Pmax and reset Pmax if it's larger
Pmax = Pload
r_values.append(Rload)
v_values.append(Vload)
i_values.append(I)
p_values.append(Pload)
plt.show()
OUTPUT:
This program will illustrate the Maximum Power Transfer Theorem by computing the load power for
different load resistances.
100
80
60
40
20
0
220 240 260 280 300 320 340 360 380 400
LOAD VOLTAGE
Series1 Series2
GRAPH:
Pmax = 0
# Create a list to store the load resistance, load voltage, load current, and load power values
r_values = []
v_values = []
i_values = []
p_values = []
I = E / (Rsource + Rload)
Pload = Vload * I
# Compare the load power to Pmax and reset Pmax if it's larger
Pmax = Pload
# Print out the values
r_values.append(Rload)
v_values.append(Vload)
i_values.append(I)
p_values.append(Pload)
plt.plot(r_values, p_values)
plt.show()
OUTPUT:
This program will illustrate the Maximum Power Transfer Theorem by computing the load power for
different load resistances.Enter the source voltage (E): 220
200
LOAD RESISTANCE
150
100
50
0
Series2
0 0
28 36 440 20 00 0 0 Series1
5 6 68 6 40 0 0
7 8 92 0 80 0 0
10 10 116 24 320 00
1 1 14
LOAD VOLTAGE
Series1 Series2
GRAPH: