<p>I "grew up" with the old roleplaying game 2300AD's system creation rules, which were based on fairly hard science (and used the Gliese star catalog as a map!) They have stood the test of time fairly well (<a href="http://evildrganymede.net/wp/2014/01/17/gdw-2300ad-worldbuilding-system-part-1/" rel="nofollow noreferrer">here is an astronomer friend's take on it</a>). </p>

<p>Here is a rough sketch of how I typically make my system generators, which is based on the same logic:</p>

<ol>
<li>Generate a number $N$ of planets in the system. At present there is no clear data constraining this, although we may imagine high metallicity stars could have more planets (but maybe not).</li>
<li>Generate orbits $a_i$: start with a random innermost orbit $a_1$, and then make $a_{n+1}=(1+r_n)a_n$ where $r_n \sim U(K_1,K_2)$ is a random number. This imitates the Titus-Bode law pattern and looks roughly like observed systems. I tend to use $K_1=0.1, K_2=2$ but this is guesswork. Note that this process has problems handling hot Jupiters really close - you may want to add them by hand. It also ignore resonances etc. </li>
<li>Generate a planetary seed size/mass. This can be done in an elaborate way by looking at exoplanet $(a,M)$ distributions and extrapolating to unobserved corners, or using some suitable skew random number distribution.</li>
<li>From the mass and distance to the star, estimate planetary and atmospheric composition. Basically, outside the snowline ($\approx 1.4\sqrt{L/L_\odot}$ where $L$ is star luminosity) planets will start accumulating volatiles, and having ice crusts become possible. Essentially, decide on a core density randomly.</li>
<li>Calculate the approximate minimum molecular weight retained based on the surface gravity. This will determine the atmospheric density. Especially, if the planet retains hydrogen it will become a gas giant: multiply up the mass a lot (the overall radius of a planet scales as $M^{1/3}$ for solid planets up to a few earth masses, and up to Jupiter size for gas giants - then degeneracy pressure will make the size level off and they become denser instead). Note that this is going to be the most fudgy step, since actually estimating a consistent atmosphere (especially exosphere) temperature, composition and pressure is really involved (and nontrivial even in reality). </li>
<li>Given the size, temperature zone and atmosphere classify it suitably ("ice ball", "gas giant", "venusian hothouse", "super-earth", ...).</li>
<li>Add random moons, rotation periods, eccentricities and whatnot, calculating their effects (like tide sizes, estimated magnetic fields, temperature variations, number of Hadley cells...) - <em>lots</em> of handwaving here, even when you base it on real astronomy and atmospheric physics papers.</li>
</ol>

<p>This is the simple version. It does not try to actually simulate planet formation, where important processes like migrating gas giants can really affect systems. </p>

<p>You extra questions:</p>

<p>Right now it looks like planets are very common, so a system with no planets is likely pretty unusual. </p>

<p>Big moons might be uncommon, or they might be ordinary. In the solar system Pluto/Charon is also a pretty even pair. I personally think double-planets may be more common than people expect. We'll see. </p>

<p>Asteroid belts are likely pretty common. In a way we have two, the main belt and Kuiper belt. I would expect most systems to at least have a bit of debris that has not cohered in the outer regions. </p>

CC BY-SA 4.0
2018-06-29T01:33:45.683Z
Didn’t get to leave you a note yet, so here we are!  Thanks a lot for the pointers!  You are actually giving me more ideas on how to model the whole universe too.  So I understand that looking at stuff so far away is still a WIP for the human race and that most science behind all this is getting challenged by new discoveries all the time, but I’m quite sure that I’ll be able to work something out with what you told me.  Anyway, it’s a 2D game so you can only go so far with being realistic ;)
BadgerBadger
CC BY-SA 4.0
2018-06-26T10:35:12.937Z
2018-06-26T10:35:12.937Z
Anders Sandberg
<p>I’m a hobbyist programmer with a profound love for procedural content generation.  I’m working on a 2D space exploration game and while it’s not meant to simulate anything real, I’d like to give it a natural feel.  I have no real knowledge in astronomy, so I figured someone here should have an answer.</p>

<p>I was wondering if there are a few simple mathematical models I could use to determine some parameters for my generation algorithm.</p>

<ul>
<li>the orbital radius of the planets</li>
<li>the size of the planets (is it more likely that gas giants and the likes will show up closer to the sun or further away, etc.)</li>
<li>the number of planets orbiting a star</li>
</ul>

<p>Also, a few questions come to my mind too:</p>

<ul>
<li>is it a common occurence to have a star with nothing orbiting it?  Like just a single lone star sitting there in the middle of space.</li>
<li>IIRC, Earth is kind of a weird thing (besides the fact that it hosts life) because our moon is way bigger than the average moons and also the only satellite of the planet.  Is there any usual correllation between the planet size/density and the size or number of moons around it?</li>
<li>Is an asteroid belt something common in solar systems?</li>
</ul>

<p>Thanks a lot for your help!</p>

CC BY-SA 4.0
2018-06-22T18:54:14.597Z
I think you could somehow model the distribution of the known exoplanets, calculate the effect that we have different probability to find them (bigger ones close to their start have the highest P), and then use a Bayes...
peterh
CC BY-SA 4.0
2018-06-23T03:11:40.757Z
These are all areas of active research, and the problem is we tend to see what our technology can detect, rather than how the planets actually are.  For example, many of the gas giants we see are much closer to the star than in our solar system, but it's not clear how common that is.  At this point, you could do almost anything, and no one could say you are wrong.  But this is a nice figure about what has been seen: https://en.wikipedia.org/wiki/Exoplanet#/media/File:ExoplanetPopulations-20170616.png
Ken G
CC BY-SA 4.0
2018-06-23T08:05:47.313Z
I think you need to decide on and tell us the storyline or theme to get some assistance. For example: Idea #1: Each system has 10 planets, you start at the outer one moving towards the star, each planet has a mission, once you complete all the planets you shoot the star and go to the next level (possibly with more planets and after a few levels multiple stars) - so the size range is what looks good on the screen. -- Idea #2: Discover which planets are inhabitable and land to get supplies, avoiding the inhabitants. -- Idea #3: Shoot out in space, no landing. - etc. That affects our suggestions.
Rob
CC BY-SA 4.0
2018-06-23T09:21:12.010Z
I'm voting to close this question as off-topic because this is more appropriate to Worldbuilding SE.
StephenG - Help Ukraine
CC BY-SA 4.0
2018-06-29T01:28:55.823Z
@Rob really those aspects are not in the scope of my question.  My game project is everything but linear.  Everything will be procedurally generated besides key elements.  The gameplay mechanics are not in question here.  I’m just looking for a more realistic set of rules for my algorithm.
BadgerBadger
CC BY-SA 4.0
2018-06-29T06:21:09.553Z
@BadgerBadger - I suggest you edit your question to improve it soon - since it has 4 close flags, one more and it will likely automatically be closed. Check the [Help Center](https://astronomy.stackexchange.com/help/dont-ask) for recommendations.
Rob
CC BY-SA 4.0
2018-06-30T13:18:33.073Z
@Rob : close it if you will, it’s a question from someone who doesn’t know a thing about that field of science.  It felt like that was astronomy related and that someome studying astronomy or working in the field could help me figure out simplistic mathematical models.
BadgerBadger
CC BY-SA 4.0
2018-06-30T14:35:13.300Z
@BadgerBadger - I have not voted for close, if ***you*** want a few points it might earn and for it to stay open then you (or someone else) need to do something. Because you are new people go easy, ultimately you'll need to meet the rules and standards.
Rob
<planet><orbit><solar-system><asteroids><mathematics>
Simple mathematical models of solar systems
BadgerBadger
# Simple mathematical models of solar systems

(Asked by: username_0 on 2018-06-22)

I’m a hobbyist programmer with a profound love for procedural content generation. I’m working on a 2D space exploration game and while it’s not meant to simulate anything real, I’d like to give it a natural feel. I have no real knowledge in astronomy, so I figured someone here should have an answer.

I was wondering if there are a few simple mathematical models I could use to determine some parameters for my generation algorithm.

* the orbital radius of the planets
* the size of the planets (is it more likely that gas giants and the likes will show up closer to the sun or further away, etc.)
* the number of planets orbiting a star

Also, a few questions come to my mind too:

* is it a common occurence to have a star with nothing orbiting it? Like just a single lone star sitting there in the middle of space.
* IIRC, Earth is kind of a weird thing (besides the fact that it hosts life) because our moon is way bigger than the average moons and also the only satellite of the planet. Is there any usual correllation between the planet size/density and the size or number of moons around it?
* Is an asteroid belt something common in solar systems?

Thanks a lot for your help!

**Tags:** planet, orbit, solar-system, asteroids, mathematics

> **Comments:**
> **username_1**: I think you could somehow model the distribution of the known exoplanets, calculate the effect that we have different probability to find them (bigger ones close to their start have the highest P), and then use a Bayes...  
> **username_2**: These are all areas of active research, and the problem is we tend to see what our technology can detect, rather than how the planets actually are.  For example, many of the gas giants we see are much closer to the star than in our solar system, but it's not clear how common that is.  At this point, you could do almost anything, and no one could say you are wrong.  But this is a nice figure about what has been seen: https://en.wikipedia.org/wiki/Exoplanet#/media/File:ExoplanetPopulations-20170616.png  
> **username_3**: I think you need to decide on and tell us the storyline or theme to get some assistance. For example: Idea #1: Each system has 10 planets, you start at the outer one moving towards the star, each planet has a mission, once you complete all the planets you shoot the star and go to the next level (possibly with more planets and after a few levels multiple stars) - so the size range is what looks good on the screen. -- Idea #2: Discover which planets are inhabitable and land to get supplies, avoiding the inhabitants. -- Idea #3: Shoot out in space, no landing. - etc. That affects our suggestions.  
> **username_4**: I'm voting to close this question as off-topic because this is more appropriate to Worldbuilding SE.  
> **username_0**: @username_3 really those aspects are not in the scope of my question.  My game project is everything but linear.  Everything will be procedurally generated besides key elements.  The gameplay mechanics are not in question here.  I’m just looking for a more realistic set of rules for my algorithm.  
> **username_3**: @username_0 - I suggest you edit your question to improve it soon - since it has 4 close flags, one more and it will likely automatically be closed. Check the [Help Center](https://astronomy.stackexchange.com/help/dont-ask) for recommendations.  
> **username_0**: @username_3 : close it if you will, it’s a question from someone who doesn’t know a thing about that field of science.  It felt like that was astronomy related and that someome studying astronomy or working in the field could help me figure out simplistic mathematical models.  
> **username_3**: @username_0 - I have not voted for close, if ***you*** want a few points it might earn and for it to stay open then you (or someone else) need to do something. Because you are new people go easy, ultimately you'll need to meet the rules and standards.  

---

## 1 answers

### Answer by username_5 on 2018-06-26. Score: 1 | Accepted answer

I "grew up" with the old roleplaying game 2300AD's system creation rules, which were based on fairly hard science (and used the Gliese star catalog as a map!) They have stood the test of time fairly well ([here is an astronomer friend's take on it](http://evildrganymede.net/wp/2014/01/17/gdw-2300ad-worldbuilding-system-part-1/)).

Here is a rough sketch of how I typically make my system generators, which is based on the same logic:

1. Generate a number $N$ of planets in the system. At present there is no clear data constraining this, although we may imagine high metallicity stars could have more planets (but maybe not).
2. Generate orbits $a\_i$: start with a random innermost orbit $a\_1$, and then make $a\_{n+1}=(1+r\_n)a\_n$ where $r\_n \sim U(K\_1,K\_2)$ is a random number. This imitates the Titus-Bode law pattern and looks roughly like observed systems. I tend to use $K\_1=0.1, K\_2=2$ but this is guesswork. Note that this process has problems handling hot Jupiters really close - you may want to add them by hand. It also ignore resonances etc.
3. Generate a planetary seed size/mass. This can be done in an elaborate way by looking at exoplanet $(a,M)$ distributions and extrapolating to unobserved corners, or using some suitable skew random number distribution.
4. From the mass and distance to the star, estimate planetary and atmospheric composition. Basically, outside the snowline ($\approx 1.4\sqrt{L/L\_\odot}$ where $L$ is star luminosity) planets will start accumulating volatiles, and having ice crusts become possible. Essentially, decide on a core density randomly.
5. Calculate the approximate minimum molecular weight retained based on the surface gravity. This will determine the atmospheric density. Especially, if the planet retains hydrogen it will become a gas giant: multiply up the mass a lot (the overall radius of a planet scales as $M^{1/3}$ for solid planets up to a few earth masses, and up to Jupiter size for gas giants - then degeneracy pressure will make the size level off and they become denser instead). Note that this is going to be the most fudgy step, since actually estimating a consistent atmosphere (especially exosphere) temperature, composition and pressure is really involved (and nontrivial even in reality).
6. Given the size, temperature zone and atmosphere classify it suitably ("ice ball", "gas giant", "venusian hothouse", "super-earth", ...).
7. Add random moons, rotation periods, eccentricities and whatnot, calculating their effects (like tide sizes, estimated magnetic fields, temperature variations, number of Hadley cells...) - *lots* of handwaving here, even when you base it on real astronomy and atmospheric physics papers.

This is the simple version. It does not try to actually simulate planet formation, where important processes like migrating gas giants can really affect systems.

You extra questions:

Right now it looks like planets are very common, so a system with no planets is likely pretty unusual.

Big moons might be uncommon, or they might be ordinary. In the solar system Pluto/Charon is also a pretty even pair. I personally think double-planets may be more common than people expect. We'll see.

Asteroid belts are likely pretty common. In a way we have two, the main belt and Kuiper belt. I would expect most systems to at least have a bit of debris that has not cohered in the outer regions.

> **Comments:**
> **username_0**: Didn’t get to leave you a note yet, so here we are!  Thanks a lot for the pointers!  You are actually giving me more ideas on how to model the whole universe too.  So I understand that looking at stuff so far away is still a WIP for the human race and that most science behind all this is getting challenged by new discoveries all the time, but I’m quite sure that I’ll be able to work something out with what you told me.  Anyway, it’s a 2D game so you can only go so far with being realistic ;)  

---

