Skip to content

Azteriisk/World_Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ World Simulator: Earth's Geological Evolution

Pursuing the most accurate crop simulations at a global scale through comprehensive Earth system modeling

๐ŸŽฏ Mission Statement

This project aims to recreate Earth's geological evolution from core formation to present-day soil composition, enabling unprecedented accuracy in global crop and ecosystem simulations. By modeling the complete Earth system - from inner core dynamics to surface soil formation - we can predict both historical events and future outcomes with remarkable precision.

๐ŸŒฑ Vision

The most accurate crop simulations at a global scale that anyone has seen.

We believe that by recreating the fundamental composition and processes of Earth itself, we can achieve the most accurate predictions of:

  • Historical soil formation and composition
  • Future vegetation patterns and crop yields
  • Ecosystem responses to geological changes
  • Climate-vegetation-geology interactions

๐Ÿ”ฌ Scientific Approach

Multi-Layer Earth System Modeling

Our simulator recreates Earth's complete structure:

๐ŸŒ‹ Core System

  • Inner Core: Iron-nickel crystallization, magnetic field generation
  • Outer Core: Convective dynamics, heat transfer to mantle
  • Magnetic Field: Geodynamo effects on surface processes

๐ŸŒŠ Mantle System

  • Lithosphere: Rigid outer shell, tectonic plate formation
  • Asthenosphere: Plastic deformation, plate movement
  • Transition Zone: Phase changes, water storage
  • Lower Mantle: Deep convection, slab recycling
  • D'' Layer: Ultra-low velocity zone, plume generation

๐Ÿ”๏ธ Crust & Surface

  • Continental Crust: Granite-dominated, thick, stable
  • Oceanic Crust: Basalt-dominated, thin, dynamic
  • Tectonic Plates: Movement, collision, subduction
  • Hot Spots: Volcanic activity, island formation

๐ŸŒฑ Soil Formation Process

  • Weathering: Rock breakdown by climate and time
  • Erosion: Transport of materials by water and wind
  • Deposition: Accumulation of sediments
  • Biological Activity: Organic matter incorporation
  • Mineral Transformation: Chemical and physical changes

๐Ÿš€ Current Features

โœ… Implemented Systems

๐ŸŒ Geological Foundation

  • Core Dynamics: Inner core growth, outer core convection
  • Mantle Convection: Multi-layer heat transfer and flow
  • Plate Tectonics: Realistic plate movement and interactions
  • Spatial Grid: 256x256 high-resolution simulation grid

๐ŸŒฆ๏ธ Climate & Atmosphere

  • Temperature Modeling: Latitude-based solar heating + Lapse rate based on elevation
  • Wind Systems: Global trade winds and westerlies
  • Precipitation: Orographic rainfall (rain shadows) and humidity tracking
  • Biomes: Dynamic biome classification based on Temp/Rainfall (Desert, Forest, Snow, Ocean)

๐ŸŒฑ Biological Systems

  • Crop Simulation: Growth cycles for Tomatoes and Wild Grass
  • Environmental sensitivity: Plants grow or die based on local microclimate (Temp/Water)
  • 3D Visualization: Instanced meshes representing plant growth stages

๐Ÿ–ฅ๏ธ Visualization & UI

  • Real-Time 3D: Bevy Engine powered visualization
  • Terrain Generation: Procedural noise OR Real-world heightmap Import
  • Real World Search: Search any location (e.g., "Everest") to fetch and render real elevation data (AWS Terrarium)
  • Orbit Camera: Blender-style controls (Rotate/Pan/Zoom)

๐ŸŽฎ Controls

  • Orbit: Hold Middle Mouse Button and drag to rotate.
  • Pan: Hold Shift + Middle Mouse Button and drag to move.
  • Zoom: Use Mouse Wheel to zoom in/out.
  • UI: Use the side panel to Search Locations or Regenerate Random terrain.

๐Ÿ› ๏ธ Technical Implementation

Language & Architecture

  • Rust: High-performance, memory-safe systems programming
  • Modular Design: Separate modules for each Earth layer
  • Real-time Simulation: Efficient computation for long time periods
  • Scientific Accuracy: Based on current geological understanding

Key Components

// Core system modules
earth/
โ”œโ”€โ”€ inner_core.rs    // Solid iron-nickel core dynamics
โ”œโ”€โ”€ outer_core.rs    // Liquid metal convection
โ”œโ”€โ”€ mantle.rs        // Multi-layer mantle system
โ””โ”€โ”€ crust.rs         // Surface geology and soil formation

๐ŸŽฏ Development Roadmap

Phase 1: Geological Foundation โœ…

  • Core-mantle-crust system
  • Plate tectonics
  • Basic soil formation

Phase 2: Spatial Grid & Terrain โœ…

  • High-res Grid System (256x256)
  • Procedural Terrain Generation
  • 3D Mesh Generation (Bevy)

Phase 3: Climate Integration โœ…

  • Temperature & Solar Insolation
  • Wind Patterns & Precipitation
  • Biome Classification

Phase 4: Biological Systems โœ…

  • Plant Growth Engine
  • Crop Types (Tomato, Grass)
  • 3D Plant Visualization

Phase 5: UI & Real World Data โœ…

  • Orbit Camera Controls
  • Address Search & Geocoding
  • Elevation Data Fetching (AWS Terrarium)

Phase 6: Advanced Biology & Ecology ๐Ÿšง

  • Soil Microbiology
  • Complex Ecosystems (Predator/Prey)
  • Agricultural crop yield predictions

๐Ÿ”ฌ Scientific Applications

Agriculture & Food Security

  • Predict crop yields based on soil composition
  • Model agricultural land suitability
  • Forecast climate change impacts on farming

Climate Science

  • Understand historical climate patterns
  • Model future climate scenarios
  • Study climate-geology feedback loops

Environmental Conservation

  • Predict ecosystem changes
  • Model habitat evolution
  • Forecast biodiversity impacts

Historical Research

  • Reconstruct past environments
  • Model ancient climate conditions
  • Understand historical agricultural patterns

๐Ÿš€ Getting Started

Prerequisites

  • Rust 1.70+ installed
  • Git for version control

Installation

git clone https://github.com/Azteriisk/World_Sim.git
cd World_Sim
cargo build
cargo run

Example Usage

# Run a 10-million year simulation
cargo run

# The simulator will show:
# - Initial Earth state
# - Geological events during simulation
# - Final state with soil composition

๐Ÿ“Š Sample Output

=== Initial States ===
Inner Core: Radius 1221.0 km, Temperature 5400ยฐC
Outer Core: Convection strength 0.50, Magnetic field 0.45
Mantle: Multi-layer convection and plate movement
Crust: Continental type, 35.00 km thickness

=== Simulating 10000000 years ===
๐ŸŒ‹ Plate spreading: gained 10000.0 kmยฒ new area
๐ŸŒŠ Back-arc spreading: plate area increased by 2000.0 kmยฒ
โ›ฐ๏ธ Crust tectonic adjustment: thickness changed by 0.064 km
๐ŸŒŠ Crust erosion: reduced thickness by 1.000 km

=== Final Soil Composition ===
- Mineral distribution: silicates, minor iron
- Sediment thickness: 2.00 km
- Surface temperature: 15.0ยฐC
- Vegetation coverage: 50.0%

๐Ÿค Contributing

We welcome contributions from:

  • Geologists: Improve geological accuracy
  • Climate Scientists: Add atmospheric modeling
  • Biologists: Enhance biological systems
  • Programmers: Optimize performance and features
  • Agricultural Scientists: Add crop-specific modeling

Development Guidelines

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with scientific accuracy
  4. Add tests for new functionality
  5. Submit a pull request with detailed description

๐Ÿ“š Scientific References

This project is based on current understanding from:

  • Plate tectonics theory
  • Core-mantle dynamics
  • Soil formation processes
  • Climate-geology interactions
  • Agricultural soil science

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

  • Geological community for foundational knowledge
  • Climate scientists for atmospheric insights
  • Agricultural researchers for soil-crop relationships
  • Open source community for development tools

๐Ÿ“ž Contact


"By understanding Earth's past, we can predict its future and optimize our relationship with the planet."

๐ŸŒ Building the most accurate Earth simulation for global crop prediction ๐ŸŒฑ

About

๐ŸŒ Multi-layer Earth system simulator modeling core-to-surface dynamics for accurate global crop and ecosystem predictions. Building the most comprehensive geological foundation for agricultural & geological forecasting.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages