stalegjelsten / solar-system-sim

Solar system simulation in python with planetary orbits and plantary motion animation
3 stars 0 forks source link

a question from solar system to say jovian system #1

Open bdemirjian opened 3 months ago

bdemirjian commented 3 months ago

I am working with your code and would like to focus on say the Joivan system, can you provide some details as how to move the bary_center etc? as a simple conversion from

Sun = planetary_system(10, "Sun", 1.98892e30) to Sun = planetary_system(5, "Jupiter", 1898e24) # set the barycenter for jupiter

causes it to look for this...and break... The variable BODY5_RADII could not be found in the kernel pool.

Thanks in advance

stalegjelsten commented 2 months ago

Hi @bdemirjian! Thank you for trying out the simulator!

I don't have time to troubleshoot right now, and it's been many years since I have used this app or the spiceypy package.

Since 599 is the NAIF ID for Jupiter according to this site, I would suggest using

Sun = planetary_system(599, "Jupiter", 1898e24)

If I recall correctly, this simulation only accounts for the planets within the system, so the Jovian system would be unaffected by planets besides Jupiter.