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

Voltage probe handles noise voltages incorrectly #24

Open
tejeez opened this issue Feb 25, 2021 · 2 comments
Open

Voltage probe handles noise voltages incorrectly #24

tejeez opened this issue Feb 25, 2021 · 2 comments

Comments

@tejeez
Copy link

tejeez commented Feb 25, 2021

In an AC simulation, the voltage probe appears to simply calculate the difference in total noise voltage between its terminals, which generally does not provide the correct result.

As a simple demonstration of the problem, let's try measuring the voltage between two uncorrelated noise sources of 1 V^2/Hz:
image

The resulting Pr1.vn is 0, whereas I think the correct result would be √2 V/√Hz.

Now, if I replace the voltage probe with an ideal transformer and a label to perform the same measurement, I get the correct result:
image

The "transformer and a label" trick can be used a workaround for now. It seems to be a bug in the implementation of the voltage probe itself.

I'm running the latest Qucs version compiled from develop branch 29432325df75d0c1512624a2c5811e99e4342058 and Qucsator 0.0.20, a08b0a1 . (Btw, I'm not sure whether this issue should in the qucs or in the qucsator repository).

@felix-salfelder
Copy link
Member

felix-salfelder commented Feb 27, 2021 via email

@ckoegler
Copy link
Contributor

ckoegler commented Jul 18, 2021

qucsator output:
<Qucs Dataset 0.0.20>
<indep acfrequency 2>
+1.00000000000000000000e+06
+2.00000000000000000000e+06


+0.00000000000000000000e+00
+0.00000000000000000000e+00


+0.00000000000000000000e+00
+0.00000000000000000000e+00


+0.00000000000000000000e+00
+0.00000000000000000000e+00

looks identical to the tabular output in the schematic

vol_probe_noise.sch.txt

How does the voltage probe handle noise voltages?
I had a look in \qucsator\src\components\vprobe.cpp, but I have no idea how this code works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants