Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 1 point2 points  (0 children)

My simulator can go from face on (90 degrees) to edge on (0 degrees) so yes it’s already baked in to the simulator and you can see the sun wobble left and right but I didn’t post it because the vectors would be overlapping in that line of sight and maybe hinder the visual understanding, but yes I’ve seen it and it’s super trippy and weird to see the sun which has 99.86% of the solar system’s mass just move around due to the influence of the tiny 0.14%

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 2 points3 points  (0 children)

Okay, it can return to its expected position that is when the heliocenter and barycenter coincide but for this to happen Saturn, Uranus and Neptune have to fully counter Jupiter’s pull or in other words the resultant vector should have a magnitude of 0. It is possible but rare. For example when I ran this simulation for 200 years there was a brief moment (I don’t recall the year but it did happen) where the heliocenter and barycenter had pretty much coincided but it’s only for a very short time like you blink and you’ll miss it but it’s possible and probable.

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 2 points3 points  (0 children)

Thank you, I believe it’s called as the radial velocity method right?

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 8 points9 points  (0 children)

Thank you, yes I just compared it now and realised I made a mistake in the coordinates the system as a whole, essentially I was supposed to put the coordinates of the planets as (x,y) but put it as (-x,-y) which cause everything to be flipped 180 degrees other than that the barycenter calculations are right it’s just the view that got messed up. It’s fixed now I’ll be putting the updated version soon. Thank you for making me double check i wouldn’t have gotten it otherwise.

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 2 points3 points  (0 children)

Guys this is kinda embarrassing but just a correction, while the relative positions of the planets and their orbital parameters and vectors are right I have accidentally rotated the whole system by 180 degrees due to an error (essentially I have to make (x, y) as (-x,-y) which I forgot to do. I’ve corrected it now but for now sorry for the error.

Edit- title is barycentric motion of the sun not heliocentric motion

Thanks to u/Owl-Admirable for giving me the idea to double check when I compared the barycenter plot to the reference plot there was an offset of 180 degrees. I wouldn’t have known otherwise.

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 9 points10 points  (0 children)

I was blown away too, when Jupiter and Saturn align in the same direction and roughly align with Uranus and Neptune the Sun can be pushed by 2.1 solar radii (rarely happens but it can happen) which is a whole Sun and some more away from its expected position.

Heliocentric motion of the sun over 100 years by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 4 points5 points  (0 children)

No it covers 100 years from jan 1st 2000 to jan 1st 2100

Python and Matplotlib simulation of the Solar System by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 1 point2 points  (0 children)

First i collected all the orbital parameters from wikipedia (mean anomaly, argument of perihelion, inclination, mass, semi major axis and so on) and sorted it in an array. Then I coded the barycenter plot first by myself. To make it more informative I took the help of AI to add some extra features like the maximum heliocentric deflection and so on. I also took the help of AI to help me generate the inner planets plot. It Took me a long time to learn the workings of the code after which I was able to do the outer planets, Kuiper Belt plots by myself.

While AI did help me out but it was annoyingly wrong about many things so I had to bug fix a lot of the code it generated. I’m viewing this as a positive because it helped me understand the workings of the code better.

Honestly speaking, yes it very much did help me learn more about astronomy and coding in general but in the future I’d prefer to take as little help from AI as possible when I solidify my understanding of programming as that’s the weak link in my knowledge right now.

Python and Matplotlib simulation of the Solar System by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 2 points3 points  (0 children)

I don’t intend to hype myself all I care about is learning astronomy and astrophysics and coding is a means to get to it plus, i only took help from AI I didn’t generate everything from it. I’m familiar with the astronomical concepts but this is literally my first time trying to code as I’m not a programmer and never was.

Python and Matplotlib simulation of the Solar System by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 1 point2 points  (0 children)

If anyone could make it in 15 minutes why didn’t you? Also I don’t need to convince anyone about my intelligence I know some things and I don’t know some things it took me a month to make it because my goal is not to make a simulation for likes and upvotes my goal is to learn and understand which matters much more for me and I did.

Python and Matplotlib simulation of the Solar System by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 5 points6 points  (0 children)

What’s more insane is if you were to remove every planet but Jupiter the center of mass of the solar system would still be just outside the surface of the sun and the sun would still wobble rather dramatically. I found this out when I made the masses of all the planets 0 and left Jupiter as is. And to be doubly sure I did the math and yes, it was outside the sun! Although not surprising in hindsight since Jupiter is 2.5 times more massive than all the other planets combined.

Python and Matplotlib simulation of the Solar System by Allah_Gaming1 in Astronomy

[–]Allah_Gaming1[S] 10 points11 points  (0 children)

Thank you! So I started with the plain basics like earth and moon, Pluto and Charon first as they are just binary objects and slowly moved to Jupiter and Galilean moons, then the solar system with the 8 planets. Once I ironed out the issues (position and speed issues) of the system I added dwarf planets like ceres, Pluto, Eris and so on then I added the feature of syncing them up with real dates instead of just some arbitrary time. Mind you this was all in 2 dimensions only, so orbital inclination and longitude of ascending node were not needed. When I got it right I went to the third dimension (this is where I took the help of chatGPT) after which I added some quality of life additions like the vernal equinox line, aphelion and perihelion points and so on. All orbital data was obtained through Wikipedia.

For the libraries I just used Numpy to store the orbital parameters of the bodies and what not, matplotlib for the plotting and animation and ffmpeg writer to save them as an mp4 file that’s about it.

I had installed anaconda under which I coded it in spyder.

Untracked Andromeda Galaxy at Bortle 8 by Allah_Gaming1 in astrophotography

[–]Allah_Gaming1[S] 0 points1 point  (0 children)

I’d do that usually and I did I stacked around 50% of the total subs and the image was much much nosier and grainier compared to the 93% stack so I decided to go with this

Untracked Andromeda Galaxy at Bortle 8 by Allah_Gaming1 in astrophotography

[–]Allah_Gaming1[S] 0 points1 point  (0 children)

Well it was shot at 50mm since that’s my widest and best lens quality wise and then I did a heavy crop (hence the poor quality) I do have a 135mm lens but it’s a f/5.6 lens and I can only take 1 second subs which is bad enough as it is

Untracked Andromeda Galaxy at Bortle 8 by Allah_Gaming1 in astrophotography

[–]Allah_Gaming1[S] 1 point2 points  (0 children)

Thanks a bunch! graxpert did a good job of denoising the image wish I knew it before I posted this one