Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Randomly generating plausible star types for a synthetic galaxy?

+0
−0

I'd like to randomly generate between 1 and 20 million stars for a spiral galaxy resembling our Milky Way. This is of course far fewer than our galaxy (estimated between 150 to 300 billion), but I'd like it to resemble ours in proportion. Generating the locations so that they resemble a spiral pattern was a little challenging from a geometry standpoint, but I think I have that part settled.

Now comes the hard part. I'd like this galaxy to have a plausible mix of the various types/sizes of stars. It won't be a proper simulation (so that there might be close features that shouldn't be near each other) and I'm ok with that. But I'd like to have approximately the right number of neutron stars, singularities, red dwarfs, and giants within this galaxy

Some of these things aren't settled scientifically (how many rogue planets float around in the intergalactic void, or are there any actual quark stars), but many of these it seems like we should have reasonable estimates.

So, what are those? I'm looking for a statistical distribution of stellar masses/radii, color, spectral types, temperatures, etc. Ideally these might vary according to their distance from the galactic center, but I could live without that if it doesn't exist.

Does the information exist to accomplish this? Occasionally I'll find an offhand remark about how some large fraction of the Milky Way is composed of barely visible red dwarfs, or that there are an estimated 100 million neutron stars within MW. But these rarely provide hard numbers/ratios.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

This post was sourced from https://worldbuilding.stackexchange.com/q/167156. It is licensed under CC BY-SA 4.0.

0 comment threads

1 answer

+0
−0

This has actually been an area of intense research for decades now. Astronomers are quite interested in the distribution of stellar masses in a variety of different galaxies and clusters. The precise mix you're going to get of course depends on the environment you choose; galaxies with higher metal contents will produce stars with higher metallicities. In general, however, you can take your pick of different initial mass functions, or IMFs. An IMF is a function that tells you what fraction of stars have a mass between $m$ and $dm$, where $dm$ is some step size.

As an example, take the famous Salpeter IMF - one of the first created. The Salpeter IMF has the form $$\phi(m)dm=\phi_0m^{-2.35}dm$$ Therefore, if you have a given stellar population, the fraction of stars with a mass between $m_1$ and $m_2$ is $$f(m_1,m_2)=\int_{m_1}^{m_2}\phi(m)dm=\int_{m_1}^{m_2}\phi_0m^{-2.35}dm$$ Here, $\phi_0$ is a normalization constant.

The Salpeter IMF is a simple one, and it's great as a toy model. More realistic IMFs, like the Kroupa IMF (which is quite commonly used), are piecewise functions. They're also power laws, but the exponent is different over several different mass ranges.

If you want to play around, I've put some code on GitHub to let you play around with a couple IMFs (and generate stellar populations on your own, with some randomness thrown in). Here's a comparison of how stellar masses are distributed, according to the two IMFs I discussed above. The $y$-axis shows the fraction of stars $f( with a mass less than $m$:

Comparison of Salpeter and Kroupa IMFs

$200M_{\odot}$ is kind of an arbitrary upper limit, but in reality any population you synthesize will contain only a tiny, tiny number of stars with masses above $100M_{\odot}$. $0.08M_{\odot}$ is a realistic lower choice - it's the boundary between stars and brown dwarfs.

How do these stack up against L.Dutch's numbers? Using some stellar mass range tables, I found that the Salpeter IMF predicted 93.1% M stars, 3.03% K stars, and 0.926% G stars; The Kroupa IMF predicted 68.1% M stars, 13.6% K stars, and 4.2% G stars. The Kroupa model appears to be more realistic - as you might expect; after all, Salpeter came up with his IMF in 1955!

A couple things to bear in mind:

  • The IMF only tells you the initial distribution of a population of stars. Stars of different masses age at different rates, so over time, as massive stars die, the population will skew towards lower masses. You arguably need to evolve your population over time - computationally expensive, even for basic toy approximations.
  • This model assumes only one burst of star formation; in reality, most galaxies are continuously forming stars at different rates.
  • As I said at the beginning, mileage may vary depending on your galactic environment. Using an IMF based on conditions in the Milky Way should give you a Milky Way-like population.
History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »