Spaces:
Sleeping
Sleeping
| #!/usr/bin/env python3 | |
| """ | |
| TSU-WAVE Mini - Just the essentials | |
| """ | |
| import numpy as np | |
| print("=" * 40) | |
| print("🌊 TSU-WAVE Mini") | |
| print("=" * 40) | |
| # Simple tsunami parameters | |
| depth = 6000 # meters | |
| wave = 5.0 # meters | |
| distance = 500 # km to shore | |
| # Wave speed | |
| g = 9.81 | |
| c = np.sqrt(g * depth) | |
| print(f"\n📈 Wave speed: {c:.0f} m/s ({c*3.6:.0f} km/h)") | |
| # Travel time | |
| time_min = distance * 1000 / c / 60 | |
| print(f"⏱️ Arrival in: {time_min:.0f} minutes ({time_min/60:.1f} hours)") | |
| # Hazard level | |
| hazard = wave * 10 | |
| print(f"⚠️ Hazard: {hazard:.0f}%") | |
| if hazard > 70: | |
| print(" ⚠️⚠️⚠️ EVACUATE IMMEDIATELY!") | |
| elif hazard > 40: | |
| print(" ⚠️ Prepare for evacuation") | |
| else: | |
| print(" ✓ Monitor conditions") | |
| # Energy estimate | |
| energy = 0.5 * 1025 * depth * wave**2 | |
| print(f"\n💥 Energy density: {energy/1e6:.1f} MJ/m²") | |
| print("=" * 40) | |