Skip to main content

Complete cosmic emergence simulation with self-reflective observation and live visualization for GenesisAeon

Project description

universums-sim

Unified Mandala Logo

PyPI Python DOI Code License Docs License CI

"A system that listens — a pattern that lives."

universums-sim is a complete cosmic emergence simulation package for the GenesisAeon framework. It provides a self-reflective N-body + field-theory simulation engine driven by an extended Unified Lagrangian, live mandala visualisation, sonification of emergence events, and a full Dash GUI — all behind a clean Typer CLI.


Mathematical Foundation

Unified Lagrangian

The total action of the system is:

$$S = \int \mathcal{L} , dt$$

where the Lagrangian density combines kinetic, gravitational, scalar, entropic, and topological terms:

$$\mathcal{L} = T_{\text{kin}} - V_{\text{grav}} - V_{\text{scalar}} - V_{\text{entropy}} - V_{\text{topo}}$$

Kinetic energy:

$$T_{\text{kin}} = \frac{1}{2} \sum_{i=1}^{N} m_i \left|\mathbf{v}_i\right|^2$$

Gravitational potential (softened):

$$V_{\text{grav}} = -\frac{G}{2} \sum_{i \neq j} \frac{m_i m_j}{\left|\mathbf{r}_{ij}\right| + \varepsilon}$$

Higgs-type scalar potential:

$$V_{\text{scalar}} = \frac{\lambda}{4}\phi^4 - \frac{\mu^2}{2}\phi^2, \quad \phi = \frac{\langle|\mathbf{r}|\rangle}{\sqrt{S}}$$

Entropic potential:

$$V_{\text{entropy}} = \kappa \cdot S \ln!\left(\frac{S}{S_0}\right)$$

Chern-Simons topological term:

$$V_{\text{topo}} = \xi \cdot \Omega, \quad \Omega = \sum_i \left(\mathbf{r}_i \times \mathbf{v}_i\right)_z$$

Emergence Rate

The instantaneous emergence rate at step $n$ is:

$$R_e(n) = \alpha \cdot S(n) \cdot \left(1 - \frac{S(n)}{S_{\max}}\right) \cdot e^{-\beta\left|\nabla H\right|}$$

Collapse Detection (Virial Ratio)

$$Q = \frac{2 T_{\text{kin}}}{|V_{\text{grav}}|}$$

$Q$ State
$Q > 2$ EXPANDING
$1 \le Q \le 2$ STABLE
$0.5 \le Q < 1$ CONTRACTING
$Q < 0.5$ CRITICAL
$V \to -\infty$ SINGULARITY

CosmicMoment

Each simulation tick produces a CosmicMoment snapshot:

$$\mathcal{M}_n = \left{ n,; t_n,; S(n),; R_e(n),; H(n),; \Phi(n),; {E_k},; Q_n \right}$$


Installation

# Minimal (simulation + CLI only)
pip install universums-sim

# Full stack (all GenesisAeon packages)
pip install 'universums-sim[full-stack]'

# GUI dashboard
pip install 'universums-sim[gui]'

# Sonification
pip install 'universums-sim[sonify]'

# Everything
pip install 'universums-sim[full-stack,gui,sonify]'

Quick Start

from universums_sim import UniverseSimulator
from universums_sim.simulation.core import SimulationConfig

cfg = SimulationConfig(n_particles=64, seed=42)
sim = UniverseSimulator(cfg)

for moment in sim.run(steps=100):
    print(moment)

CLI

# Basic run
universums-sim run --steps 500 --entropy 1.0

# With live visualization
universums-sim run --steps 500 --visualize

# With sonification
universums-sim run --steps 500 --sonify

# Full GUI dashboard (opens http://localhost:8050)
universums-sim run --steps 1000 --gui

# Save to JSON
universums-sim run --steps 500 --output sim.json

# Export to CSV
universums-sim export sim.json --format csv

# Show version and citation
universums-sim info

Package Structure

src/universums_sim/
├── simulation/
│   ├── core.py          # UniverseSimulator, CosmicMoment, SimulationConfig
│   ├── lagrangian.py    # UnifiedLagrangian, CollapseState
│   └── emergence.py     # EmergenceEngine, EmergenceEvent, EmergenceType
├── cli/
│   └── main.py          # Typer CLI (run / replay / export / info)
├── visualization/
│   └── live.py          # MandalaRenderer, Emergence3D, SonificationEngine,
│                        #   DashDashboard, LiveVisualizer
├── governance/
│   └── entropy.py       # EntropyGovernor, GovernancePolicy (UTAC)
└── integrations/
    └── registry.py      # IntegrationRegistry (full-stack detection)

Optional Dependencies ([full-stack] extra)

Package Version Role
genesis-os >= 0.2.0 Base OS layer for GenesisAeon
aeon-ai >= 0.2.0 AI inference integration
cosmic-web >= 0.1.0 Cosmic web connectivity
fieldtheory >= 0.1.0 Field-theory primitives
mirror-machine >= 0.1.0 Self-reflective loop engine
advanced-weighting-systems >= 0.1.0 Weighted entropy dynamics
sigillin >= 0.1.0 Symbolic sigil control
entropy-governance >= 0.1.0 Entropy policy enforcement
utac-core >= 0.1.0 Universal Thermodynamic Autonomy
mandala-visualizer >= 0.1.0 Sacred-geometry rendering
sonification >= 0.1.0 Emergence-to-audio mapping
climate-dashboard >= 0.1.0 Climate entropy dashboard
implosive-genesis >= 0.1.0 Implosion dynamics
entropy-table >= 0.1.0 Tabular entropy tracking

Development

git clone https://github.com/GenesisAeon/universums-sim
cd universums-sim
pip install -e '.[dev]'

# Tests (>600, >99% coverage)
pytest

# Linting
ruff check src tests

# Type checking
mypy src

# Docs
mkdocs serve

Scientific Citation

@software{genesisaeon_universumssim_2024,
  author       = {GenesisAeon},
  title        = {universums-sim: Complete Cosmic Emergence Simulation},
  year         = 2024,
  publisher    = {Zenodo},
  version      = {0.1.0},
  doi          = {10.5281/zenodo.19161241},
  url          = {https://doi.org/10.5281/zenodo.19161241}
}

License

This project is dual-licensed:

  • Code (src/, packages/, apps/, scripts/, tests/, configs) is licensed under the GNU General Public License v3.0 or later (GPL-3.0-or-later) — see LICENSE-CODE.
  • Documentation (docs/, this README, handbook/narrative *.md files) is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0) — see LICENSE-DOCS.

See LICENSE for the full dual-license overview.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

universums_sim-1.0.0.tar.gz (22.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

universums_sim-1.0.0-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file universums_sim-1.0.0.tar.gz.

File metadata

  • Download URL: universums_sim-1.0.0.tar.gz
  • Upload date:
  • Size: 22.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for universums_sim-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9690a46727776fd484c47600d162ccabe15503f3245cba3fe1c03d16e38ce1d3
MD5 9c1a594a244789a91f0af7a7707c3014
BLAKE2b-256 8cc8f615363952f38f22a552a9db4a5a22c4f2265fa73ebeb9c212c0dc972658

See more details on using hashes here.

File details

Details for the file universums_sim-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: universums_sim-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for universums_sim-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5eed5e1ba3b4582ba1aa5077f6d058e79bb6a5ab3f1eb70f381187305863f064
MD5 983bf954b2214f77c5bf8239f0f3fbe8
BLAKE2b-256 aaaa061d27026b0f48a66647655f8020d633a65b6b2cdec8721e0e8c38759f56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page