AC power - Simulation and hand calculated values different

In summary: You used mesh analysis did you not? That gives you the complex current in the first...In summary, Mesh equations provide the power in two different meshes, but they don't account for the phase angles. In order to get the total power, you would need to use the complex current supplied by the source.
  • #1
eehelp150
237
0

Homework Statement


upload_2016-12-4_11-19-33.png


Homework Equations


P=I*(I*)*R/2

The Attempt at a Solution


R1 = 12
R2 = 20
L = 0.0531H
C = 265.26*10^(-6)F
W = 2*pi*60
L -> jwL = 20j
C = 1/(jwc) = -j10

Mesh equations:
Mesh 1 (left mesh, clockwise)
-Vs +I1(R1+L+C)-I2(C)=0

Mesh2 (right mesh, clockwise)
I2(C+R2)-I1(C)=0

I1=6.78-j5.09
I2=-0.68-j3.73

Hand calculated:
PowerR1 = (I1 * I1conjugate *R1)/2 = 431W
PowerR2 = (I2*I2conjugate*R2)/2 = 143W

PowerL = (I1 * I1conjugate *L)/2=j719.87VAR
PowerC = -j297.79VARWhen I simulate in MATLAB, I get different results for reactive power of L and C:
Matlab provides these following RMS Voltages:
VL = 119
VC = 53.53

PowerL = ##\frac{VL^2}{L}## = -j719.87VAR
PowerC = ##\frac{V_C^2}{C}##=j297.79VAR

Is my MATLAB simulation wrong or my hand worked calculations wrong?
 
Physics news on Phys.org
  • #2
What value are you using for the source voltage?
 
  • #3
gneill said:
What value are you using for the source voltage?
Completely forgot that, sorry.
Voltage Source is ##120\sqrt2cos(2\pi60)##
 
  • #4
eehelp150 said:
Completely forgot that, sorry.
Voltage Source is ##120\sqrt2cos(2\pi60)##
Okay, so it's a 120 V rms source. You'll want to use rms if you're doing power calculations.
 
  • #5
gneill said:
Okay, so it's a 120 V rms source. You'll want to use rms if you're doing power calculations.
The formula I'm using accounts for RMS, doesn't it? The divided by 2 should account for that.
 
  • #6
eehelp150 said:
The formula I'm using accounts for RMS, doesn't it? The divided by 2 should account for that.
I suppose it would. Personally I find it simpler to just use 120V in the calculations and stick to P = VI*, where P is the complex power.
 
  • #7
gneill said:
I suppose it would. Personally I find it simpler to just use 120V in the calculations and stick to P = VI*, where P is the complex power.
Is there any reason I'm getting 90degrees (+i) when I calculate it by hand and -90degrees(-i) when I use the measured values from MATLAB?
Note: For "measured" values of power, I am squaring the RMS voltage given by Matlab and dividing by the impedance.
 
  • #8
From what I can see, your RMS voltages from Matlab don't include their phase angles. So only the impedance angle is contributing to the calculation.
 
  • #9
gneill said:
From what I can see, your RMS voltages from Matlab don't include their phase angles. So only the impedance angle is contributing to the calculation.
Would it be 'acceptable' to exclude the phase angles? If I recall correctly they are irrelevant without context, right?
 
  • #10
eehelp150 said:
Would it be 'acceptable' to exclude the phase angles? If I recall correctly they are irrelevant without context, right?
I think it would depend upon what you want to do with the result. If you were determining the power factor for a circuit you'd probably want to know if it were leading or lagging. If you just want to know the magnitude of the reactive power in a component, losing the angle wouldn't matter.
 
  • #11
gneill said:
I think it would depend upon what you want to do with the result. If you were determining the power factor for a circuit you'd probably want to know if it were leading or lagging. If you just want to know the magnitude of the reactive power in a component, losing the angle wouldn't matter.
For percent error I could ignore it right?
The assignment is to solve the circuit by hand and get the real/reactive power for each element.
Then use MATLAB to solve the circuit and get the real/reactive power for each element
Then calculate percent error
 
  • #12
eehelp150 said:
For percent error I could ignore it right?
Sure, since I presume you'll be comparing the magnitudes.
 
  • #13
gneill said:
Sure, since I presume you'll be comparing the magnitudes.
If I want the total reactive power, I just add Q1 and Q2 right?
Do I ignore the phases as well for that?
 
  • #14
eehelp150 said:
If I want the total reactive power, I just add Q1 and Q2 right?
Do I ignore the phases as well for that?
I wouldn't ignore the phases for the total. The reactive powers being out of phase will at least partially cancel.

Instead, why not use the complex current supplied by the source and determine the total complex power? Then you can pull out the real and reactive components.
 
  • #15
gneill said:
I wouldn't ignore the phases for the total. The reactive powers being out of phase will at least partially cancel.

Instead, why not use the complex current supplied by the source and determine the total complex power? Then you can pull out the real and reactive components.
How would I get total complex power using MATLAB? I can get the RMS Current of the source, but I wouldn't have any degree, only magnitude.
 
  • #16
eehelp150 said:
How would I get total complex power using MATLAB? I can get the RMS Current of the source, but I wouldn't have any degree, only magnitude.
You used mesh analysis did you not? That gives you the complex current in the first loop...
 
  • #17
gneill said:
You used mesh analysis did you not? That gives you the complex current in the first loop...
Yes, but the professor wants the Total Real/Reactive power measured with MATLAB as well as by hand. I already have the by hand part.
 
  • #18
I don't have any idea how the Matlab portion was implemented, so I can't really advise. Did you write equations or run some kind of simulation?
 
  • #19
gneill said:
I don't have any idea how the Matlab portion was implemented, so I can't really advise. Did you write equations or run some kind of simulation?
I am using Simulink + SimPowerSystems. I think I am only able to get the RMS values.
Edit:
Nevermind. I found a power measurement tool.
 
  • #20
eehelp150 said:
I am using Simulink + SimPowerSystems. I think I am only able to get the RMS values.
Edit:
Nevermind. I found a power measurement tool.
Cool. Sorry I can't be of more help there, I've never used Matlab.
 
  • #21
gneill said:
Cool. Sorry I can't be of more help there, I've never used Matlab.
No worries. I really appreciate all the help you've given me this semester. You are literally (figuratively) a life saver.
 
  • #22
gneill said:
Cool. Sorry I can't be of more help there, I've never used Matlab.
Quick question: To reduce reactive power consumption, we would add a larger capacitor, right?
 
  • #23
eehelp150 said:
Quick question: To reduce reactive power consumption, we would add a larger capacitor, right?
Not necessarily. It depends on how the impedances combine in the circuit, and which side of the natural frequency the circuit is operating. You might find that there's a "sweet spot" for the capacitance that minimizes the reactive impedance that's not where you'd expect from the usual power factor correction approach. Usually there the idea is to stick a new capacitor in parallel with the original circuit, not change a capacitor that's already buried in the circuitry.

I presume that Matlab will let you plot a function fairly easily. Why not write a function that gives you the complex impedance as a function of the value of C in microfarads. Plot the imaginary component versus C. I think you'll find a minimum reactance when C is smaller than the original value (I estimate somewhere around 50 μF).
 
  • #24
gneill said:
Not necessarily. It depends on how the impedances combine in the circuit, and which side of the natural frequency the circuit is operating. You might find that there's a "sweet spot" for the capacitance that minimizes the reactive impedance that's not where you'd expect from the usual power factor correction approach. Usually there the idea is to stick a new capacitor in parallel with the original circuit, not change a capacitor that's already buried in the circuitry.
I want to reduce reactive power by 50%
This is my work:
##Q_{original}=430.8##
##Q_{desired}=215.4##
##Q_{delta}=215.4##
##X_C=\frac{V_{rms}^2}{Q_{delta}}=\frac{120^2}{215.4}##
##C=\frac{1}{X_C*2*pi*60}=3.967e-5##
Where would I stick this capacitor in the circuit to get my desired reactive power?

gneill said:
I presume that Matlab will let you plot a function fairly easily. Why not write a function that gives you the complex impedance as a function of the value of C in microfarads. Plot the imaginary component versus C. I think you'll find a minimum reactance when C is smaller than the original value (I estimate somewhere around 50 μF).
Don't really know how to plot with Simulink...
 
  • #25
eehelp150 said:
Where would I stick this capacitor in the circuit to get my desired reactive power?
Presumably across the source.
eehelp150 said:
Don't really know how to plot with Simulink...
Matlab itself should let you write and plot functions, no? Your total circuit impedance is just:

##Z = R1 + ZL + \frac{R2*ZC}{R2+ZC}##

where: ##ZC = \frac{1}{jω C}##
 
  • #26
gneill said:
Presumably across the source.

Matlab itself should let you write and plot functions, no? Your total circuit impedance is just:

##Z = R1 + ZL + \frac{R2*ZC}{R2+ZC}##

where: ##ZC = \frac{1}{jω C}##
For some reason the simulator will not let me put a capacitor in parallel with the source.
 
  • #27
eehelp150 said:
For some reason the simulator will not let me put a capacitor in parallel with the source.
Strange. Try putting a very small resistance in series with the capacitor. Something like 10-6 Ohms.
 
  • #28
gneill said:
Strange. Try putting a very small resistance in series with the capacitor. Something like 10-6 Ohms.
That works! Would there be any way to calculate a different value for the original capacitor instead of adding a capacitor?
 
  • #29
eehelp150 said:
That works! Would there be any way to calculate a different value for the original capacitor instead of adding a capacitor?

Yes, but I imagine that the algebra could get tedious. You want to find the reactive power as a function of C, so that means finding the imaginary part of the complex power. It would be easier to plot the reactive power and pick out the solution on the plot.
 
  • #30
gneill said:
Yes, but I imagine that the algebra could get tedious. You want to find the reactive power as a function of C, so that means finding the imaginary part of the complex power. It would be easier to plot the reactive power and pick out the solution on the plot.
Ok, thanks!
Going back to this:
##Z = R1 + ZL + \frac{R2*ZC}{R2+ZC}##
Total complex power would be V^2/Z, where Z is the above right?

How would I solve this using algebra?
 
Last edited:
  • #31
gneill said:
Yes, but I imagine that the algebra could get tedious. You want to find the reactive power as a function of C, so that means finding the imaginary part of the complex power. It would be easier to plot the reactive power and pick out the solution on the plot.
upload_2016-12-4_18-23-33.png

upload_2016-12-4_18-24-12.png


I am plugging in the original total real power and total reactive power. I cannot get the original value of capacitance.

Edit:
I used 576-430.8i instead and got the original capacitance value. How do I solve for C if I don't have a "defined" real power to solve for? Do I simply divide that by 2 (50%) as well?
 
  • #32
eehelp150 said:
I used 576-430.8i instead and got the original capacitance value. How do I solve for C if I don't have a "defined" real power to solve for? Do I simply divide that by 2 (50%) as well?
No, the real and imaginary parts of the power will have some complicated relationship.

Since you want to reduce the reactive power by 50% you can simplify things a bit by setting Vs = 1. Then ignoring units the current will be ##I = 1/Z## and the power will be ##P = V_s I^* = I^*##.

Isolating the imaginary part of ##I^*## might be tedious. You can write your impedance as:

##Z = 12 + j20 + \frac{1}{\frac{1}{20} + jωC}##

Might as well define ##x = ωC##, then
$$I = \frac{1}{12 + j20 + \frac{1}{\frac{1}{20} + jx}}$$
Normalizing that to pull out the complex component is not complicated, just labor intensive. Then find its value using the original capacitor value in x = ωC as the "benchmark" value for the imaginary component. You'll want to find a new value for x that yields half of that power.
 

FAQ: AC power - Simulation and hand calculated values different

1. What is AC power and how is it different from DC power?

AC power stands for alternating current power and is a type of electrical power that changes direction periodically. This is different from DC power, which stands for direct current power and flows in only one direction.

2. How is AC power simulated?

AC power can be simulated using specialized software or computer programs that use mathematical models to replicate the behavior of AC circuits. These simulations can accurately predict the voltage, current, and power values of an AC circuit.

3. Why are hand calculated values different from simulated values for AC power?

Hand calculated values for AC power may differ from simulated values due to various factors such as the complexity of the circuit, the accuracy of the mathematical models used, and the precision of the input values. Additionally, hand calculations may not account for all the variables and factors that can affect the behavior of an AC circuit.

4. Can hand calculated values be used as a substitute for simulations in AC power analysis?

While hand calculations can provide a basic understanding of AC power, they cannot replace simulations in terms of accuracy and precision. Simulations are essential in analyzing complex AC circuits and can provide more detailed and accurate results.

5. How can discrepancies between hand calculated and simulated values be minimized?

To minimize discrepancies between hand calculated and simulated values for AC power, it is important to use accurate and precise input values, use more sophisticated mathematical models, and consider all the variables and factors that can affect the behavior of an AC circuit. Additionally, verifying the results through experiments can help identify and correct any errors in the simulation.

Similar threads

Replies
26
Views
2K
Replies
7
Views
2K
Replies
9
Views
2K
Replies
10
Views
10K
Replies
5
Views
3K
Replies
2
Views
961
Replies
8
Views
3K
Replies
6
Views
3K
Back
Top