Menu

#193 Error in saved .sch files leads to incorrect cartesian plot

0.0.19
open
nobody
None
1
2016-11-27
2016-08-22
Mr Fish
No

It seems that wrong .sch files are created, which leads to wrong cartesian plots. When changing one resitor value in qucs the file (sometimes?) is saved different and cannot be plotted anymore. When I change the same value in .sch file directly then it is plotted correctly.
Comparison reveals that there is a difference in the two .sch files although I only changed a resitor value.

2 Attachments

Related

Bugs: #193

Discussion

  • Claudio Girardi

    Claudio Girardi - 2016-08-22

    thanks for the bug report. Indeed for the second schematic the results are incorrect; for some reason the simulator assumes some wrong initial voltages. It might be related to the order the initial conditions are evaluated.
    The .sch file seem correct in both cases; I think that what is actually happens is that the different order of the components causes the simulator to use a different starting point for computing the result (which should of course actually lead to the same results anyway but it doesn't).

     
  • Mr Fish

    Mr Fish - 2016-08-22

    Hi Claudio,
    Thanks for your explantion. Can you think of a workaround?

    Cheers,
    Thomas

     
  • Claudio Girardi

    Claudio Girardi - 2016-08-22

    uhm, no; I'll need some time to dig into the simulator code and try to understand where exactly the problem comes from.

     
  • Guilherme

    Guilherme - 2016-11-27

    I don't know how the NodeSet gets applied, but I aways found suspicious that the default initial voltage of a capacitor is se to V="" (empty) instead of V="0.0". If you set the initial voltage on the capacitor, the falty circuit seems to work.

     
    • Mr Fish

      Mr Fish - 2016-11-27

      Interesting. I'll give it a try.

      On 11/27/2016 01:57 PM, Guilherme wrote:

      I don't know how the NodeSet gets applied, but I aways found
      suspicious that the default initial voltage of a capacitor is se to
      V="" (empty) instead of V="0.0". If you set the initial voltage on the
      capacitor, the falty circuit seems to work.


      [bugs:#193] https://sourceforge.net/p/qucs/bugs/193/ Error in saved
      .sch files leads to incorrect cartesian plot

      Status: open
      Group: 0.0.19
      Created: Mon Aug 22, 2016 07:40 PM UTC by Mr Fish
      Last Updated: Mon Aug 22, 2016 08:45 PM UTC
      Owner: nobody
      Attachments:

      It seems that wrong .sch files are created, which leads to wrong
      cartesian plots. When changing one resitor value in qucs the file
      (sometimes?) is saved different and cannot be plotted anymore. When I
      change the same value in .sch file directly then it is plotted correctly.
      Comparison reveals that there is a difference in the two .sch files
      although I only changed a resitor value.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/qucs/bugs/193/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #193


Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.