Galaxy Generation

Galaxy Generation, Stellar Aging & Validation

Cosmos Genesis generates complete galaxies — from morphological structure to individual star systems, stellar lifecycles, and planetary habitability — using a multi-phase pipeline informed by published astrophysics. Generation runs may be followed by an on-demand physics validation suite, triggered manually from the Validation panel, that checks the output against published ranges and internal consistency criteria.

Go deeper

Deterministically random. Generation is seeded: star positions, masses, orbital elements, cluster memberships, and physics properties are drawn from a single integer seed via a deterministic , so a galaxy can be regenerated from its seed and identity. We have not yet published an end-to-end reproducibility check.

Public reference. This page explains what Cosmos Genesis does and the science it's based on. Implementation details, such as exact algorithms, tuning values and infrastructure, are kept in our internal documentation.

Generation Pipeline

A ten-phase pipeline produces a stellar population for galaxies of up to one million star systems per run, with star fields available to the galaxy explorer while generation is still running.

Every star system is spatially indexed at generation time on a grid finer than one parsec, so the explorer can request just the region it is looking at rather than the full galaxy. The same index groups stars for the optional relaxation step and lays out the streamed star-field tiles.

The phases below each list what the phase produces, the sources it draws on, and the figures it uses.

Phase 0

Galaxy Morphology

The pipeline begins by writing a single galaxy record and computing its morphology parameters. A morphological class (spiral, elliptical, lenticular, or irregular) is assigned.1 For spiral galaxies, inner and outer and a are derived from the and stored with the galaxy record.2 Spiral disks also receive an ellipticity seeded deterministically from the galaxy name and seed, so their geometry is reproducible across pipeline runs.

Claims & Measurements

Morphological typesSpiral · Elliptical · Lenticular · Irregular
Resonance outputs (spiral galaxies)Inner Lindblad resonance, outer Lindblad resonance, corotation radius
ReproducibilityDownstream random draws come from the same seeded generator. We have not yet published an end-to-end reproducibility check

Phase 1

Star Systems

The largest phase: each star system is assigned a mass drawn from an empirical , a stellar age drawn from an exponentially declining star-formation history (SFH) whose timescale depends on galaxy type, a 3D position from the galaxy's morphology density profile, and a that declines with distance from the galactic centre, as observed in the Milky Way. Evolutionary stage is assigned from the star's age relative to a simple mass-dependent lifetime; luminosity, radius, and effective temperature are empirical scalings of stellar mass. Habitable zone boundaries, asteroseismic frequencies, binary companions, radiation zones, and EM signatures are all written in this phase.

Claims & Measurements

Star formation historyExponentially declining SFH, with a timescale that depends on galaxy type
Metallicity gradientDeclines with distance from the galactic centre, as observed in the Milky Way
Habitable zone modelKopparapu et al. (2013)3 solar-type stellar flux limits, applied to every star without the published stellar-temperature correction
Stellar seismologyAsteroseismic oscillation frequencies from mass scaling relations — Kjeldsen & Bedding (1995)4
Binary companionsCompanion and triple fractions are set out on the physics page

Phase 2

Many-body gravity (N-body) Relaxation (optional)

Analytical initial conditions give only approximate stellar velocities. When enabled for a run, Phase 2 applies an N-body relaxation step5 that adjusts stellar velocities toward dynamical equilibrium.6 Radial, azimuthal, and vertical with Milky Way–like values are then added. The step is off by default; when it is skipped, stars keep their analytic rotation-curve velocities. Running it early — immediately after star placement — lets Phase 3 publish relaxed velocities for streaming without waiting for the full pipeline. How this step differs from the N-body integration used inside a single star system is explained once, on the physics page.

Claims & Measurements

AvailabilityOptional, off by default; enabled per generation run
Velocity dispersionsRadial, azimuthal, and vertical dispersions with Milky Way–like values; applied only when the step runs

Phase 3

Tile Export

When the optional relaxation step has run, Phase 3 backfills its equilibrium velocities into the star system records. It then publishes precomputed star-field tiles for streaming. Exporting tiles here — before clusters, stellar death, and planetary generation — means the explorer can begin star-field streaming while the remaining phases are still running.

Claims & Measurements

AvailabilityTiles published partway through a run, before the later phases finish

Phase 4

Star Clusters

Open and globular clusters are generated with masses, ages, core radii, tidal radii, velocity dispersions, and metallicities drawn from broad ranges typical of observed clusters. Each star system that falls within a cluster's tidal radius is linked to that cluster. Cluster types are open clusters, globular clusters, super star clusters, and stellar associations, with population scaling that depends on the kind of object being generated.

Claims & Measurements

Open cluster mass range300 – 10⁵ M☉ (log-uniform)
Globular cluster mass range10⁴ – 10⁷ M☉ (log-uniform)
Tidal radiusEmpirical multiple of the core radius

Phase 5

Stellar Death & Atmospheric Effects

Stars that have lived well past their main-sequence lifetime are assigned a type set by mass; the mass thresholds are on the physics page. Neutron-star and black-hole progenitors produce supernovae; about 30% of neutron stars become and about 5% become (mutually exclusive). Black hole produce at 5% on-axis probability. Atmospheric damage from each event is applied to the planetary systems it reaches; how blast radius and damage are classed is on the physics page. and are written only for events recent enough to still be visible: within about 0.5 million years for a remnant and 15,000 years for a nebula. Those windows are tiny against a 10-billion-year spread of star ages, so at today's galaxy sizes (hundreds of thousands of systems) these two tables are expected to be empty. They fill only at much larger system counts.

Claims & Measurements

Remnant checkValidator requires > 99 % of remnants to match the mass thresholds. Remnants are assigned with those same thresholds, so this checks consistency, not accuracy against observation
Ionization radiusUp to about 1.5 LY for planetary nebulae
Backpropagation checkPass criteria: severity labels match their thresholds; event flags agree with severity for ≥ 99.9 % of planets; no affected system outside its event radius

Phase 6

Planetary Systems

Planets are generated for star systems that are not (white dwarfs, neutron stars or black holes): planet count follows a distribution informed by Kepler multi-planet statistics (Borucki et al. 2011)7, orbits are spread across each system's planet-forming region, and the Weiss & Marcy (2014)8 mass-radius relation determines radii. , , and are computed per planet. Gas giants receive with , and decametric (10–100 m wavelength) EM signatures; moon counts are on the physics page. Atmosphere damage from stellar death events (Phase 5) is applied to the affected planetary systems.

Claims & Measurements

Planet count modelLog-normal count distribution informed by Kepler multi-planet statistics — Borucki et al. (2011)7
Mass-radius relationPiecewise power-law — Weiss & Marcy (2014)8
Magnetosphere modelMagnetosphere size scaled from two solar-system references (Earth and Jupiter)

Phase 7

Small Bodies

are generated for young stars, up to the disk lifetime set out on the physics page. Asteroid belts (main belt at 0.4–0.9× snow line, at 30–100 astronomical units (AU)) and (inner 2000–5000 AU, outer 50 000–200 000 AU) are added probabilistically, with Kuiper analogs and Oort clouds only in older systems. Comets are generated per Oort-cloud system with isotropic inclinations and perihelion passages inside 5 AU.

Claims & Measurements

Oort cloud boundariesInner 2 000–5 000 AU; outer 50 000–200 000 AU

Phase 8

Interstellar medium (ISM) Phenomena

objects complete the galaxy: the clouds of gas and dust between the stars, the glowing regions around hot young stars, and the bright cores of some galaxies.

  • Dust clouds. Clumps of dust that block or reflect starlight, in five classes: diffuse, , , and . Each cloud is a , and its dust grains follow the .
  • . The cold, dense clouds where stars form. Each is given a scaled from its mass.
  • . Bubbles of gas lit up by hot young stars. Each is given a , computed from how much ionizing light its stars emit (the ionizing photon flux).
  • . The bright, energetic cores of some galaxies, where a central black hole is feeding. Each is assigned an and an AGN class: , or . Blazars also get a pair of .
  • . Hypothetical objects that have never been observed. Each galaxy has a 0.1% chance of being given one.

Claims & Measurements

Molecular cloud star formation rate (SFR)Scaled from cloud mass (a simplified proxy)
HII region radiusStrömgren sphere: R_s = (3Q_ion / 4π α_B n_e²)^(1/3)
AGN black-hole massScales with the number of star systems generated. The share of galaxies given an AGN is on the physics page

Phase 9

Output & Finalization

Phase 9 marks the galaxy complete, records the final object counts, and publishes a compact visualization summary for fast client-side galaxy rendering. Star-field tiles were already published in Phase 3.

Claims & Measurements

Galaxy statusMarked complete when generation finishes
Client artifactsCompact visualization summary (star-field tiles are published in Phase 3)

Stellar Evolution

Each star's current evolutionary stage is computed during Phase 1 from its SFH-assigned age and a simple main-sequence lifetime that scales with stellar mass — no separate post-processing pass is required. Every star receives a lifecycle stage at generation time.

Lifecycle Stages

Main Sequence→Subgiant→Red Giant→Asymptotic giant branch (AGB)→White Dwarf→Neutron Star→Black Hole

How a star's stage follows from its age and mass, and which mass ends as which remnant, is set out on the physics page.

Properties Derived from Age & Mass

  • →Luminosity — from an empirical mass-luminosity relation, a function of stellar mass only
  • →Radius and effective temperature — empirical scalings with stellar mass
  • →Stage limitation — luminosity, radius, and temperature depend on mass alone; they are not adjusted for post-main-sequence stages
  • →Stellar rotation — slows over time via magnetic braking, consistent with observed spin-down of main-sequence stars

Generation Validation Suite

Five physics validators run on demand via the Validation panel, and the suite reports an overall PASS / WARN / FAIL status. Some checks compare against published observed ranges; others check internal consistency, and the table says which. FAIL means a critical validator failed; WARN means only a non-critical validator did.

The chi-square goodness-of-fit on the (IMF validator) is the primary accuracy check: it tests whether the generated spectral-type frequency distribution matches the expected shares across seven stellar classes. Its pass threshold is deliberately loose, so a PASS indicates broad agreement. We have not yet published a measured result for it.

ValidatorWhat We CheckBenchmark / Pass Criterion
Initial mass function (IMF)critical
Chi-square goodness-of-fit of the generated spectral type distribution against the expected mix across seven stellar classesExpected shares include M-type 70 % and O-type 0.5 %. The pass threshold is loose, so a PASS means broad agreement, not a close match
Age Distributioncritical
Chi-square on stellar age bins against the age mix expected for a mature spiral galaxy under an exponentially declining star-formation historyFour age bins; the expected shares are the validator's own assumed mix, not a measured Milky Way age census
Physical Correlationscritical
Pearson r on log(mass) vs. log(luminosity) and log(mass) vs. log(radius) for main-sequence stars; age-feature correlations (protoplanetary disks vs. system age)Pass criterion: Pearson r > 0.95 for both mass–luminosity and mass–radius. Luminosity and radius are derived from mass during generation, so this checks internal consistency, not independent agreement with observation
Stellar Death
Supernova rate per century, blast and ionization radii, progenitor mass → remnant class mapping (white dwarf / neutron star / black hole)SN rate 1–3 / century9 (Tammann et al. 1994)10; pass criterion: remnant types match the mass thresholds for > 99 % of events. Remnants are assigned with those same thresholds, so this checks consistency, not accuracy against observation
Backpropagation
Atmosphere loss from supernova and GRB events; damage-severity labels against atmosphere-loss thresholds; every affected system within its event's blast or lethal radiusPass criteria: severity labels match their thresholds; event flags agree with severity for ≥ 99.9 % of planets; no affected system outside its event radius

Overall PASS requires all four critical checks to pass: , Age Distribution, and the two Physical Correlations sub-checks (mass–luminosity and mass–radius). Stellar Death and Backpropagation cannot fail the generation run, but a failure in either turns an otherwise clean PASS into WARN.

Full Reference List

Physics models draw on published peer-reviewed literature, with references in each section. Some properties use simpler empirical scalings, and the text says where. Reviewers can check each reference below.

  1. 1.de Vaucouleurs (1959) — Classification and morphology of external galaxies — Handbuch der Physik 53 ↩
  2. 2.Binney & Tremaine (1987, 2008) — Galactic Dynamics — Princeton University Press ↩
  3. 3.Kopparapu (2013) — Habitable zones around main-sequence stars — Astrophysical Journal Letters 765 ↩
  4. 4.Kjeldsen & Bedding (1995) — Amplitudes of stellar oscillations — Astronomy & Astrophysics 293 ↩
  5. 5.Aarseth (2003) — Gravitational N-body simulations — Cambridge University Press ↩
  6. 6.Heggie & Hut (2003) — The Gravitational Million-Body Problem — Cambridge University Press ↩
  7. 7.Borucki et al. (2011) — Characteristics of planetary candidates from Kepler — Astrophysical Journal 736 ↩
  8. 8.Weiss & Marcy (2014) — The mass-radius relation for 65 exoplanets smaller than 4 Earth radii — Astrophysical Journal Letters 783 ↩
  9. 9.Li et al. (2011) — Nearby supernova rates from the Lick Observatory Supernova Search — MNRAS 412 ↩
  10. 10.Tammann et al. (1994) — Supernova statistics and rates — Astrophysical Journal Supplement 92 ↩