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

How long to run this program? #4

Open
mayidu opened this issue Jul 11, 2022 · 6 comments
Open

How long to run this program? #4

mayidu opened this issue Jul 11, 2022 · 6 comments

Comments

@mayidu
Copy link

mayidu commented Jul 11, 2022

hi, vygr:
I run your program on windows with python3.8. I modify the code and it can implement, but it can't stop, keeps running.

I used command : python pcb.py --v 1 netlist.pcb > anim
Display the result, you can see that it has been repeated!I don't know exactly what went wrong!THX

@vygr
Copy link
Owner

vygr commented Jul 11, 2022 via email

@mayidu
Copy link
Author

mayidu commented Jul 15, 2022 via email

@KardoPaska
Copy link

I found that it works great for my usage! Many thanks!

However, I couldn't get your netlist.pcb to converge (it ran too long for me). And I didn't spend time to port the tkinter, so i used the matplotlib one (thanks again).

@KardoPaska
Copy link

This one takes about 30 seconds to converge. It is fun to watch the animation.

Figure_4

[20, 11, 1]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (9, 2, 0), []), (0.25, 0.125, (11, 9, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (8, 3, 0), []), (0.25, 0.125, (12, 8, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (7, 4, 0), []), (0.25, 0.125, (13, 7, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (6, 5, 0), []), (0.25, 0.125, (14, 6, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (5, 6, 0), []), (0.25, 0.125, (15, 5, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (4, 7, 0), []), (0.25, 0.125, (16, 4, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (3, 8, 0), []), (0.25, 0.125, (17, 3, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (2, 9, 0), []), (0.25, 0.125, (18, 2, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (1, 10, 0), []), (0.25, 0.125, (19, 1, 0), [])]]

@KardoPaska
Copy link

This one converge almost instantly.

Figure_5

[20, 11, 1]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (9, 2, 0), []), (0.25, 0.125, (19, 1, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (8, 3, 0), []), (0.25, 0.125, (18, 2, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (7, 4, 0), []), (0.25, 0.125, (17, 3, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (6, 5, 0), []), (0.25, 0.125, (16, 4, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (5, 6, 0), []), (0.25, 0.125, (15, 5, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (4, 7, 0), []), (0.25, 0.125, (14, 6, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (3, 8, 0), []), (0.25, 0.125, (13, 7, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (2, 9, 0), []), (0.25, 0.125, (12, 8, 0), [])]]
[0.0625, 0.5, 0.125, [(0.25, 0.125, (1, 10, 0), []), (0.25, 0.125, (11, 9, 0), [])]]

@vygr
Copy link
Owner

vygr commented Feb 12, 2023 via email

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