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

Measure of energy conservation #32

Open
sealauren opened this issue Apr 16, 2019 · 1 comment
Open

Measure of energy conservation #32

sealauren opened this issue Apr 16, 2019 · 1 comment

Comments

@sealauren
Copy link
Collaborator

Is there a way to test how well Phodymm is conserving energy?

@smmills
Copy link
Owner

smmills commented Apr 21, 2019

There is not a flag or switch to do this. You would have to have the code print out the positions and velocities of the planets at different times and then compute the Energy directly (you know all the masses). If you just want to test that you're not losing too much E or L, the simplest way would be to have tepoch at some point early in your time interval and set printepoch to a time near the end, and then just compare the energy from these two points.

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

2 participants