Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power probe AC results are wrong #47

Open
in3otd opened this issue Jan 3, 2020 · 1 comment · May be fixed by Qucs/qucs#946
Open

Power probe AC results are wrong #47

in3otd opened this issue Jan 3, 2020 · 1 comment · May be fixed by Qucs/qucs#946
Assignees
Labels
bug Something isn't working

Comments

@in3otd
Copy link
Contributor

in3otd commented Jan 3, 2020

The power probe (wprobe) gives wrong results when used with AC simulations:

see this circuit simulation (circuit taken from here):
image
note that the overall power values are correct but that the resistor is apparently generating power and has a significant reactive power component...

The issue is due to a wrong basic calculation of the power in the wprobe component, as in practice it computes the complex power as S = V I and flips the sign of the reactive power instead of using S = V I*. So when using the probe to compute the power provided by a source, so measuring the voltage across the source, the current calculation works, as the voltage from the source is purely real. But when measuring across a component, as shown above, the voltage has a phase different from zero and the results are wrong.

After correcting the formula used the results are fine:
image

I'll open a PR with the fix soon...

@in3otd in3otd added the bug Something isn't working label Jan 3, 2020
@in3otd in3otd self-assigned this Jan 3, 2020
@in3otd
Copy link
Contributor Author

in3otd commented Jan 4, 2020

...and also voltage noise results from the power probe are wrong
image

@felix-salfelder felix-salfelder transferred this issue from Qucs/qucs Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant