0
$\begingroup$

I will try and be brief with this. I want to model a star system in a programming language. It has been a very long time since I did physics.

This says that planets have a speed given to them by the dust and gas that were orbiting the star, but I don't understand how that gas and dust get their orbital velocity. This will play a role in my following observation.

At first I thought "okay I just need $m$, $M$, and $r$ (since $G$ is a constant that we know). But do I need $m_v$?"

If we assume for the sake of simplicity that we have a system that is 2D, that there's only the central star and an orbiting planet and nothing else in the universe, and both masses have zero velocity/acceleration, then I figure the planet and star would just fall towards each other using Newton's Universal Law of Gravitation, and that simulation would end that quickly.

This means that an initial velocity is important for the planet, because like satellites that orbit Earth, we need some kind of velocity to keep them up as the pull of gravity allows the satellite to maintain its orbit if it's going fast enough.

Does this mean I would need $m$, $M$, $G$, $r$, and some $m_v$, and then I could run a basic simulation?

Or are there more things that I need?

There are Kepler's Laws which I could use, but I don't know if they require an acceleration like $m_a$ as well and I've got 7 variables now that I must start off with, or if that is something else that I need.

But this raises another question, what gives the dust and gas for a proto-star it's orbital speed? How do I know that whatever causes that movement is not something that starts the orbit of a planet in some star system? Because if that is the case, then maybe I don't need an $m_v$ or $m_a$ after all. Problem is, I don't know.

$\endgroup$
3
  • 1
    $\begingroup$ Yes, you need an initial velocity. A planet's orbit is fairly circular, so its orbital speed is approximately equal to the speed of a perfectly circular orbit, $v^2=G(M+m)/r$. For an elliptical orbit, you can use the vis-viva equation. $\endgroup$
    – PM 2Ring
    Oct 28, 2021 at 1:39
  • $\begingroup$ How accurate do you want to make this simulation? In a simple sim, you assume that the central star is fixed, and each planet is following a simple Kepler ellipse, with no gravitational interaction between the planets. In a complex sim, you calculate the gravitational force between every pair of bodies in the system. $\endgroup$
    – PM 2Ring
    Oct 28, 2021 at 1:45
  • $\begingroup$ @PM2Ring In terms of accuracy, lets say I would like to put in our own solar system for Mercury to Neptune, maybe Pluto to have a really odd orbit in there, and the top 3 largest objects in the asteroid belt, and the major moons from each planet, and my error of positional prediction if I run the simulation for 100 years would be 1% or less. $\endgroup$
    – Water
    Oct 30, 2021 at 13:52

1 Answer 1

1
$\begingroup$

In order to describe a 3D kinetic system of particles (like planets or stars when only looking at gravitational interaction), you need knowledge of 6 independent variables, that is most commonly both : all their spacial coordinates and all their velocities. Thee are other coordinates in use when describing orbits around a known star, like semi major axis, point of ascending node, inclination or orbital period.

Dust and gas is also just particles, but many particles, especially the gas. So you easier treat them as continuum to account for pressure and hydrodynamic effects. You will also need to simulate other physics to account gas (disc) and planet interactions, e. g. drag or magnetic fields of the gas is ionised,or interaction of light with gas and dust.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .