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

Calculate and store orbital period #257

Merged
merged 9 commits into from
Nov 12, 2024
Merged

Calculate and store orbital period #257

merged 9 commits into from
Nov 12, 2024

Conversation

nichollsh
Copy link
Contributor

@nichollsh nichollsh commented Nov 12, 2024

The model now calculates orbital period from semimajor axis, star mass, and planet mass. This is then stored in the helpfile, although it doesn't currently evolve with time. Closes #252.

This will be useful when implementing tidal heating calculations, as the heat dissipated by tides depends on the frequency of the perturbation and the response of the planet. The period depends on the planet mass because we are accounting for orbital eccentricity, which could potentially evolve over time due to tides.

Recovers 'true' values well:

  • Earth
    • Calculated 365.2565 days
    • Actual 365.2564 days
  • Mercury
    • Calculated 87.9689 days
    • Actual 87.9691 days

@nichollsh nichollsh marked this pull request as ready for review November 12, 2024 14:00
Copy link
Member

@lsoucasse lsoucasse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Proteus is expanding!

@nichollsh
Copy link
Contributor Author

Thanks, Laurent!

@nichollsh nichollsh merged commit b5e938e into main Nov 12, 2024
5 checks passed
@nichollsh nichollsh deleted the hn/period branch November 12, 2024 14:30
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

Successfully merging this pull request may close these issues.

Calculate and store orbital period
2 participants