{"action":"created","issue":{"url":"https://api.github.com/repos/Qucs/qucs/issues/202","repository_url":"https://api.github.com/repos/Qucs/qucs","labels_url":"https://api.github.com/repos/Qucs/qucs/issues/202/labels{/name}","comments_url":"https://api.github.com/repos/Qucs/qucs/issues/202/comments","events_url":"https://api.github.com/repos/Qucs/qucs/issues/202/events","html_url":"https://github.com/Qucs/qucs/pull/202","id":56087066,"number":202,"title":"qucsator : avoid taking a time step that will bring too close to a breakpoint.","user":{"login":"in3otd","id":9018179,"avatar_url":"https://avatars.githubusercontent.com/u/9018179?v=3","gravatar_id":"","url":"https://api.github.com/users/in3otd","html_url":"https://github.com/in3otd","followers_url":"https://api.github.com/users/in3otd/followers","following_url":"https://api.github.com/users/in3otd/following{/other_user}","gists_url":"https://api.github.com/users/in3otd/gists{/gist_id}","starred_url":"https://api.github.com/users/in3otd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/in3otd/subscriptions","organizations_url":"https://api.github.com/users/in3otd/orgs","repos_url":"https://api.github.com/users/in3otd/repos","events_url":"https://api.github.com/users/in3otd/events{/privacy}","received_events_url":"https://api.github.com/users/in3otd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Qucs/qucs/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/Qucs/qucs/labels/qucsator","name":"qucsator","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Qucs/qucs/milestones/2","html_url":"https://github.com/Qucs/qucs/milestones/0.0.19","labels_url":"https://api.github.com/repos/Qucs/qucs/milestones/2/labels","id":776520,"number":2,"title":"0.0.19","description":"Features and Fixes to be included on the next stable release.","creator":{"login":"guitorri","id":1388949,"avatar_url":"https://avatars.githubusercontent.com/u/1388949?v=3","gravatar_id":"","url":"https://api.github.com/users/guitorri","html_url":"https://github.com/guitorri","followers_url":"https://api.github.com/users/guitorri/followers","following_url":"https://api.github.com/users/guitorri/following{/other_user}","gists_url":"https://api.github.com/users/guitorri/gists{/gist_id}","starred_url":"https://api.github.com/users/guitorri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guitorri/subscriptions","organizations_url":"https://api.github.com/users/guitorri/orgs","repos_url":"https://api.github.com/users/guitorri/repos","events_url":"https://api.github.com/users/guitorri/events{/privacy}","received_events_url":"https://api.github.com/users/guitorri/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":112,"state":"open","created_at":"2014-09-03T09:26:06Z","updated_at":"2016-04-17T20:51:30Z","due_on":"2016-02-04T23:00:00Z","closed_at":null},"comments":20,"created_at":"2015-01-30T21:29:07Z","updated_at":"2016-07-12T20:42:24Z","closed_at":"2016-01-27T19:49:20Z","pull_request":{"url":"https://api.github.com/repos/Qucs/qucs/pulls/202","html_url":"https://github.com/Qucs/qucs/pull/202","diff_url":"https://github.com/Qucs/qucs/pull/202.diff","patch_url":"https://github.com/Qucs/qucs/pull/202.patch"},"body":"quick fix for #186 : the issue is related to the fact that for this particular simulation the internal time steps taken should have been submultiples of the user-requested time steps (print steps). In practice after some internal steps the simulator came very close, but not exactly on, to a print time step, probably due to numerical errors and then it attempted to take a very small time step (same order of magnitude as the machine precision) to reach the print step. This very small step likely caused to have companion circuits with extreme values.\r\nNow, in case a step will bring too close to a print step, it will be reduced so that the next step will be larger. Might not work with a lot of corner cases, but is good enough for the #186 circuit.\r\nWhile this passes all the `qucs-test` circuits, with no appreciable changes in the simulation time, it might not be the best solution, feel free to keep it on hold.\r\nAnd unfortunately it does not solve the transient simulation issues of the other known problematic circuits..."},"comment":{"url":"https://api.github.com/repos/Qucs/qucs/issues/comments/232174196","html_url":"https://github.com/Qucs/qucs/pull/202#issuecomment-232174196","issue_url":"https://api.github.com/repos/Qucs/qucs/issues/202","id":232174196,"user":{"login":"in3otd","id":9018179,"avatar_url":"https://avatars.githubusercontent.com/u/9018179?v=3","gravatar_id":"","url":"https://api.github.com/users/in3otd","html_url":"https://github.com/in3otd","followers_url":"https://api.github.com/users/in3otd/followers","following_url":"https://api.github.com/users/in3otd/following{/other_user}","gists_url":"https://api.github.com/users/in3otd/gists{/gist_id}","starred_url":"https://api.github.com/users/in3otd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/in3otd/subscriptions","organizations_url":"https://api.github.com/users/in3otd/orgs","repos_url":"https://api.github.com/users/in3otd/repos","events_url":"https://api.github.com/users/in3otd/events{/privacy}","received_events_url":"https://api.github.com/users/in3otd/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T20:42:24Z","updated_at":"2016-07-12T20:42:24Z","body":"strangely enough I did not find a circuit with timed switches that currently fails in my collection, but I made this from a failing circuit with a relay posted some time ago on Sourceforge\r\n```\r\n<Qucs Schematic 0.0.19>\r\n<Components>\r\n<R R1 1 1060 440 15 -26 0 1 \"50 Ohm\" 1 \"26.85\" 0 \"0.0\" 0 \"0.0\" 0 \"26.85\" 0 \"european\" 0>\r\n<GND * 1 240 510 0 0 0 0>\r\n<C C1 1 970 430 17 -26 0 1 \"1mF\" 1 \"\" 0 \"neutral\" 0>\r\n<Diode D_1N4148_1 1 630 400 -99 -26 0 3 \"222p\" 1 \"1.65\" 1 \"4p\" 0 \"0.333\" 0 \"0.7\" 0 \"0.5\" 0 \"0\" 0 \"0\" 0 \"2\" 0 \"68.6m\" 0 \"5.76n\" 0 \"0\" 0 \"0\" 0 \"1\" 0 \"1\" 0 \"75\" 0 \"1u\" 0 \"26.85\" 0 \"3.0\" 0 \"1.11\" 0 \"0.0\" 0 \"0.0\" 0 \"0.0\" 0 \"0.0\" 0 \"0.0\" 0 \"0.0\" 0 \"26.85\" 0 \"1.0\" 0 \"normal\" 0>\r\n<L L1 1 840 320 -26 10 0 0 \"1mH\" 1 \"\" 0>\r\n<IProbe Pr1 1 720 320 -26 16 0 0>\r\n<VProbe Pr2 1 470 410 -31 28 1 3>\r\n<.TR TR2 1 270 630 0 73 0 0 \"lin\" 1 \"0\" 1 \"100ms\" 1 \"101\" 0 \"Trapezoidal\" 0 \"2\" 0 \"1 ns\" 0 \"1e-16\" 0 \"150\" 0 \"0.001\" 0 \"1 pA\" 0 \"1 uV\" 0 \"26.85\" 0 \"1e-3\" 0 \"1e-6\" 0 \"1\" 0 \"CroutLU\" 0 \"no\" 0 \"yes\" 0 \"0\" 0>\r\n<Vdc V1 1 240 390 18 -26 0 1 \"1V\" 1>\r\n<Switch S2 1 430 320 -26 11 0 0 \"off\" 0 \"5 us; 10 us\" 0 \"0\" 0 \"1e12\" 0 \"26.85\" 0 \"1e-6\" 0 \"abrupt\" 0>\r\n</Components>\r\n<Wires>\r\n<460 320 490 320 \"\" 0 0 0 \"\">\r\n<630 320 630 370 \"\" 0 0 0 \"\">\r\n<1060 320 1060 410 \"\" 0 0 0 \"\">\r\n<240 510 490 510 \"\" 0 0 0 \"\">\r\n<1060 470 1060 510 \"\" 0 0 0 \"\">\r\n<630 510 970 510 \"\" 0 0 0 \"\">\r\n<630 430 630 510 \"\" 0 0 0 \"\">\r\n<870 320 970 320 \"\" 0 0 0 \"\">\r\n<630 320 690 320 \"\" 0 0 0 \"\">\r\n<970 320 1060 320 \"\" 0 0 0 \"\">\r\n<970 510 1060 510 \"\" 0 0 0 \"\">\r\n<970 320 970 400 \"\" 0 0 0 \"\">\r\n<970 460 970 510 \"\" 0 0 0 \"\">\r\n<750 320 810 320 \"\" 0 0 0 \"\">\r\n<490 320 630 320 \"\" 0 0 0 \"\">\r\n<490 320 490 400 \"\" 0 0 0 \"\">\r\n<490 510 630 510 \"\" 0 0 0 \"\">\r\n<490 420 490 510 \"\" 0 0 0 \"\">\r\n<240 420 240 510 \"\" 0 0 0 \"\">\r\n<240 320 400 320 \"\" 0 0 0 \"\">\r\n<240 320 240 360 \"\" 0 0 0 \"\">\r\n<1060 320 1060 320 \"Uout\" 1090 290 0 \"\">\r\n</Wires>\r\n<Diagrams>\r\n</Diagrams>\r\n<Paintings>\r\n</Paintings>\r\n```\r\nnot sure the convergence issues are due to the switch only, in any case playing with the switch parameters you can cause the simulation to fail in various ways :unamused: "}}
{"actor":{"display_login":"in3otd"}}