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

[Question] Recommanded tool to simulate n-body to test modified system #2788

Closed
Tutul- opened this issue Nov 19, 2020 · 6 comments
Closed

[Question] Recommanded tool to simulate n-body to test modified system #2788

Tutul- opened this issue Nov 19, 2020 · 6 comments
Labels

Comments

@Tutul-
Copy link

Tutul- commented Nov 19, 2020

I wish to work on some system mods that may benefit to work on Principia.
Is there a recommanded tool that can help me simulate these system and see any instability (moon ejected, collisions, etc...) faster than running the simulation in ksp max warp on the map ?

I'm ok with python script that need some tweaking to read json definitions

@pleroy
Copy link
Member

pleroy commented Nov 19, 2020

This is a question that gets asked from time to time, and the short answer is that it's just hard and requires trial and error. See this post and this post for possible ways to get started. The bottom line is that you'll be able to experiment much more efficiently if you don't use KSP but simulate your solar system using external tools, and the Principia code base can help you to some extent. But at any rate that will require quite a bit of programming.

@Tutul-
Copy link
Author

Tutul- commented Nov 21, 2020

Well it may be interesting to try to work on something with the principia physic library then.
I'll check the feasibility of something like that with my current level.

I was impress by the complete analysis of the Jool system. Was is done using KSP or an internal tool using principia ?
My main aim is to detect possible collision and ejection to find the more urgent patch require for those system.
At first, a complete stability analysis like yours is probably out of my scope as it require better understanding of orbital mechanics to understand what are the implications.

Sorry, something went wrong.

@pleroy
Copy link
Member

pleroy commented Nov 25, 2020

The analysis of the KSP system was done using a mix of C++ (our physics libraries) and Mathematica. No KSP involvement there.

Sorry, something went wrong.

@Tutul-
Copy link
Author

Tutul- commented Nov 28, 2020

I knew about the "no KSP involved in this".
So you just provided the physics library with the KSP solar system configuration and Mathematica provided all the calculations tools ?

Sorry, something went wrong.

@eggrobin
Copy link
Member

The code that was used to generate the data is https://github.com/mockingbirdnest/Principia/blob/master/mathematica/retrobop_dynamical_stability.cpp.
Mathematica was then primarily used for data visualization.

The C++ is very much ad hoc: if we wanted to answer a new question, we would write something to compute new data, and then stare at it using Mathematica to try to figure out what is going on.

@Tutul-
Copy link
Author

Tutul- commented Nov 28, 2020

Thanks, I'll dig into that.
If I manage to develop a "good enough" program that can simulate system to detect crash or escape with higher speed than KSP, and if it can be used to patch the system to work on KSP with Principia, I'll contact you again :-)

@Tutul- Tutul- closed this as completed Nov 28, 2020
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

3 participants