Skip to content

An interactive web application that simulates the effects of nuclear weapons on urban populations.This educational tool helps users understand the devastating consequences of nuclear warfare through scientifically accurate calculations and visualizations.

License

Notifications You must be signed in to change notification settings

arhadnane/Nuclear-War-Simulation

Repository files navigation

Nuclear War Simulation

Nuclear War Simulation Framework License

🎯 Project Overview

An interactive web application that simulates the effects of nuclear weapons on urban populations. This educational tool helps users understand the devastating consequences of nuclear warfare through scientifically accurate calculations and visualizations.

⚠️ Important Disclaimer

This simulation is designed for educational purposes only. It aims to promote awareness about the catastrophic consequences of nuclear weapons and support efforts toward nuclear disarmament and world peace. The application is not intended to glorify violence or warfare.

πŸ› οΈ Technologies Used

  • Backend: ASP.NET Core MVC (.NET 8)
  • Frontend: HTML5, CSS3, JavaScript, Bootstrap 5
  • Mapping: Leaflet.js for interactive maps
  • Data: In-memory city database with population data
  • Styling: Custom CSS with Bootstrap components

πŸ—οΈ Architecture

For detailed system architecture, data flow, and component relationships, see ARCHITECTURE.md.

The application follows a clean MVC architecture with:

  • Controllers: Handle HTTP requests and orchestrate business logic
  • Services: Contain domain-specific calculations and data access
  • Models: Define data structures and validation rules
  • Views: Present data using Razor templates with interactive JavaScript

✨ Features

🏠 Home Page

  • Introduction to the simulation with educational context
  • Clear disclaimers about the purpose and nature of the tool
  • Navigation to simulation and informational pages

🎯 Nuclear Impact Simulation

  • Interactive map for target selection
  • City dropdown with pre-populated major world cities
  • Configurable parameters:
    • Bomb yield (0.1 to 100,000 kilotons)
    • Detonation type (Air burst vs Surface burst)
    • Population density considerations

πŸ“Š Results Visualization

  • Interactive map showing multiple impact zones:
    • πŸ”₯ Fireball radius - Complete destruction zone
    • ☒️ Radiation radius - Lethal radiation exposure area
    • πŸ’₯ Air blast radius - Structural damage from overpressure
    • 🌑️ Thermal radiation - Burns and fire ignition zones
    • 🌊 Fallout patterns - Radioactive contamination (surface bursts)

πŸ“ˆ Casualty Estimates

  • Death toll calculations based on population density
  • Injury estimates by impact zone
  • Total affected population statistics
  • Environmental impact assessments

πŸ“š Educational Content

  • Scientific basis and methodology
  • Historical context and references
  • Limitations and disclaimers
  • Peace advocacy messaging

πŸ”¬ Scientific Accuracy

The calculations are based on:

  • "The Effects of Nuclear Weapons" by Samuel Glasstone and Philip Dolan
  • Declassified nuclear testing data
  • Published academic research on nuclear weapon effects
  • Historical data from Hiroshima and Nagasaki

Calculation Methods

  • Fireball radius: R = 90 Γ— Y^(1/3) meters
  • Radiation radius: R = 1200 Γ— Y^(1/3) meters (500 rem dose)
  • Air blast radius: R = 2200 Γ— Y^(1/3) meters (5 psi overpressure)
  • Thermal radiation: R = 3200 Γ— Y^(1/3) meters (3rd degree burns)

Where Y is the yield in kilotons.

πŸš€ Getting Started

Prerequisites

  • .NET 8 SDK
  • Web browser with JavaScript enabled

Installation

  1. Clone the repository

    git clone <repository-url>
    cd nuclear-war-simulation
  2. Build the project

    dotnet build
  3. Run the application

    dotnet run
  4. Open in browser Navigate to https://localhost:7xxx (port will be displayed in console)

Development

To run in development mode with hot reload:

dotnet watch run

πŸ—οΈ Project Structure

β”œβ”€β”€ Controllers/
β”‚   β”œβ”€β”€ HomeController.cs          # Home page and about
β”‚   └── SimulationController.cs    # Simulation logic and results
β”œβ”€β”€ Models/
β”‚   β”œβ”€β”€ City.cs                    # City data model
β”‚   β”œβ”€β”€ SimulationModel.cs         # Input parameters
β”‚   └── SimulationResult.cs        # Calculation results
β”œβ”€β”€ Services/
β”‚   β”œβ”€β”€ CityService.cs             # City data provider
β”‚   └── NuclearBlastCalculator.cs  # Physics calculations
β”œβ”€β”€ Views/
β”‚   β”œβ”€β”€ Home/
β”‚   β”‚   β”œβ”€β”€ Index.cshtml           # Landing page
β”‚   β”‚   └── About.cshtml           # Educational information
β”‚   β”œβ”€β”€ Simulation/
β”‚   β”‚   β”œβ”€β”€ Index.cshtml           # Simulation form
β”‚   β”‚   └── Results.cshtml         # Results visualization
β”‚   └── Shared/
β”‚       └── _Layout.cshtml         # Main layout template
└── wwwroot/
    β”œβ”€β”€ css/site.css               # Custom styling
    └── js/                        # JavaScript files

🎨 Features in Detail

Interactive Map Integration

  • Leaflet.js for responsive mapping
  • Click-to-select target locations
  • Real-time coordinate updates
  • Multiple overlay circles for different effects

Responsive Design

  • Mobile-friendly interface
  • Bootstrap 5 grid system
  • Custom CSS for enhanced styling
  • Progressive enhancement

Form Validation

  • Client-side and server-side validation
  • Input range restrictions
  • Error messaging and user guidance

🌍 City Database

The application includes data for 20 major world cities:

  • New York, Los Angeles, Chicago, Houston (USA)
  • London (UK), Paris (France), Berlin (Germany)
  • Tokyo (Japan), Beijing (China), Moscow (Russia)
  • Mumbai, Delhi (India)
  • SΓ£o Paulo (Brazil), Mexico City (Mexico)
  • Cairo (Egypt), Istanbul (Turkey)
  • Sydney (Australia), Toronto (Canada)
  • Seoul (South Korea), Bangkok (Thailand)

Each city includes:

  • Geographic coordinates
  • Population data
  • Population density estimates

πŸ•ŠοΈ Peace Mission

This project supports:

  • Nuclear disarmament education
  • Awareness of nuclear weapon consequences
  • Informed public discourse on nuclear policy
  • International peace and cooperation efforts

βš–οΈ Legal and Ethical Considerations

  • Educational use only
  • No weapons design information
  • Focus on consequences, not creation
  • Promotes peace and disarmament
  • Based on publicly available scientific data

🀝 Contributing

This is an educational project. If you'd like to contribute:

  1. Focus on educational value
  2. Maintain scientific accuracy
  3. Support peace advocacy goals
  4. Follow responsible disclosure practices

πŸ“ License

This project is for educational purposes only. Use responsibly and ethically.

πŸ“š Additional Resources


"The unleashed power of the atom has changed everything save our modes of thinking and we thus drift toward unparalleled catastrophe." - Albert Einstein

About

An interactive web application that simulates the effects of nuclear weapons on urban populations.This educational tool helps users understand the devastating consequences of nuclear warfare through scientifically accurate calculations and visualizations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published