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

The 3d n body pendulum example takes too long to run #470

Open
moorepants opened this issue Oct 13, 2022 · 3 comments
Open

The 3d n body pendulum example takes too long to run #470

moorepants opened this issue Oct 13, 2022 · 3 comments
Labels

Comments

@moorepants
Copy link
Member

On my computer it takes:

To numerically integrate an intervall of 25.000 sec the routine cycled 20243 times and it took 555.632 sec

Each example needs to run in, ideally, less than 30 seconds. The docs won't even finish building on readthedocs.org with this long example.

@moorepants
Copy link
Member Author

I changed the interval from 25 seconds to 2 seconds to get the time down.

@moorepants
Copy link
Member Author

Setting to a 2 second interval gives: it took 6.905 sec to set up Kanes equations
Starting values: [0.2, 0.2, 0.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 7.5, 0.0, 0.0, 7.5, 0.0, 0.0, 7.5, 0.0]
shape of resultat (200, 18)
Integration finished successfully
To numerically integrate an intervall of 2.000 sec the routine cycled 826 times and it took 7.787 sec

@moorepants
Copy link
Member Author

Peter noted that using cse in lambdify helps the speed tremendously. But we will need to get sympy > 1.9 working first.

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

No branches or pull requests

1 participant