Tsunami Simulation
A Rust library for simulating tsunami evacuation scenarios with multiple agent types and behaviors.
Features
- Multi-agent simulation with different agent types (Child, Teen, Adult, Elder)
- Realistic tsunami wave propagation
- Path-finding algorithms for evacuation routes
- Shelter occupancy tracking
- GeoJSON export for visualization
- Configurable simulation parameters
Installation
Add this to your Cargo.toml:
[dependencies]
tsunami_simulation = "0.1.0"
Usage
Basic example:
rust
use Simulation;
use Path;
Data Format
The simulation requires two ASCII grid files:
- Grid file: Defines terrain, roads, and shelter locations
- Population file: Defines initial agent distribution
Output
The simulation generates:
- GeoJSON files with agent movements
- Shelter occupancy data
- Agent statistics
- Death counts by agent type
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Fabhianto Maoludyo (fabhianto.maoludyo@gmail.com)