hannorein / rebound

💫 An open-source multi-purpose N-body code.
https://rebound.readthedocs.io/
GNU General Public License v3.0
844 stars 219 forks source link

Hello again, I'm trying to implement the variational equations. Based on the example provided in read the docs, I should set the Sun as primary when I do the integration. But I get an error when I try to follow the exmaple shown in the docs. Here's what I'm trying and getting the error with: sim.add(primary=sim.particles[0], "Mercury", date=date) or another: sim.add(primary="Sun", "Mercury") with solar_system_objects = ["Sun", "Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune"]. thank you for your help! #732

Closed JonathanHammer2 closed 10 months ago

JonathanHammer2 commented 10 months ago

Environment Which version of REBOUND are you using and on what operating system?

Physics Describe the physical system you're interested in simulating. What are the characteristic time and length scales in your problem? How many particles do you want to simulate? How long do you need to run the simulation?

Goal Describe what you're ultimately trying to achieve? What are the science questions you want to answer? What quantities do you want to measure with your simulation?

Progress What have you tried so far? How is that working out? What are the stumbling blocks? What areas would you like to improve?

hannorein commented 10 months ago

You don't need to use primary=sim.particles[0] if you're querying solar system data from NASA Horizons.

JonathanHammer2 commented 10 months ago

Ok. Thank you!!

Jonathan Hammer Research Scientist [page1image55562928]

From: Hanno Rein @.> Date: Thursday, November 30, 2023 at 10:03 AM To: hannorein/rebound @.> Cc: Jonathan Hammer @.>, Author @.> Subject: Re: [hannorein/rebound] Hello again, I'm trying to implement the variational equations. Based on the example provided in read the docs, I should set the Sun as primary when I do the integration. But I get an error when I try to follow the exmaple sho...

You don't need to use primary=sim.particles[0] if you're query solar system data from NASA Horizons.

— Reply to this email directly, view it on GitHubhttps://github.com/hannorein/rebound/issues/732#issuecomment-1833954684, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZYVNWLDI6SSRCBPSZV75YTYHCN25AVCNFSM6AAAAABABKQUM6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMZTHE2TINRYGQ. You are receiving this because you authored the thread.Message ID: @.***>