Qucs / qucs

Qucs Project official mirror
http://qucs.sourceforge.net/
GNU General Public License v2.0
1.16k stars 213 forks source link

[Not yet finished] Fix wattmeter probe #946

Open in3otd opened 4 years ago

in3otd commented 4 years ago

Fix Qucs/qucsator#47 .

There where two main issues:

I also couldn't resist changing a little the probe values output handling to make it feel a little less "hackish" (IMHO).

This goes together with the qucs-test update at Qucs/qucs-test#35 .

in3otd commented 4 years ago

ah, the joys of CI...

any idea is appreciated...

in3otd commented 4 years ago

uh, there's still something wrong: as described in the Qucs docs, "all voltages and currents are peak values" (see pag 13) so the AC power results should be divided by 2. But for DC simulations not.

So the results shown in Qucs/qucsator#47 are wrong, since the 120 V of the source is the peak value and not the RMS as intended in the linked document calculations.

guitorri commented 4 years ago

Concerning CI. MSYS2 seem to have dropped Qt4. One option is to install the official Qt4 package (I used to to it long time ago, it should be on the .appveyor history)... another is to finish the port to Qt5 :). On Travis/OSX you can try to either disable ccache or add it to the brew install list.

in3otd commented 4 years ago

MSYS2 seem to have dropped Qt4

uh, the world is coming to an end :grin: Finishing the Qt5 port would of course be the best solution but, alas, I cannot help much there.

The OSX build log says

Tapped 0 formulae (189 files, 264KB)
Error: Your Homebrew is outdated (need >=2.1.0, found 1.3.5 at /usr/local).
Please run `brew update`.
Error: Kernel.exit

so I guess it's something more than ccache but I know nothing about OSX

guitorri commented 4 years ago

I will try to get Qt5 back on track. In the mean time, can you rebase?

in3otd commented 4 years ago

Thanks - Qt5 will obviously be the best solution.

As mentioned above, the fix here is not yet finished - I need to separate the DC and AC cases due to the fact that AC uses peak values. I'll rebase anyway in the meantime.

felix-salfelder commented 4 years ago

This is listed as a blocker for 0.0.20. it changes the wattmeter symbol and looks like that will introduce a backwards incompatibility.

better defer to 0.0.21?