Aplikasi web interaktif untuk visualisasi dispersi gas berbahaya dengan calculation engine yang tervalidasi, chemical database komprehensif, dan peta interaktif. Dirancang untuk process safety engineers sebagai tool harian untuk QRA, HAZOP support, dan emergency planning.
git clone https://github.com/arienug20/gasmap.git
cd gasmap
docker compose up --buildAkses aplikasi di http://localhost:3000
Backend (FastAPI):
cd backend
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txt
python -m src.database.init_db # Initialize database with seed data
uvicorn src.main:app --reload --port 8000Frontend (React + Vite):
cd frontend
npm install
npm run devAkses aplikasi di http://localhost:5173
- Chemical Database — 200+ chemicals dengan emergency exposure limits (ERPG, IDLH, AEGL) dan physical properties
- Dispersion Models — Gaussian Plume (continuous), Gaussian Puff (instantaneous), Heavy Gas (Britter-McQuaid), Pool Evaporation, Jet Release
- Interactive Map — MapLibre GL dengan contour layers, threshold rings, dan multiple base layers (OSM, satellite, terrain)
- Visualization — Heat maps, time animations, concentration vs distance charts, cross-section plots
- GIS Export — KML (Google Earth), GeoJSON, PNG snapshot, CSV grid data
- Scenario Management — Template-based scenario creation, duplication for what-if analysis, multi-scenario comparison
- Weather System — Pasquill stability classification, weather presets, wind rose analysis
Frontend (React 18 + TypeScript + Vite + MapLibre GL + Deck.gl)
↓ HTTPS/JSON
Backend (FastAPI + Python 3.11+)
↓ NumPy/SciPy
Calculation Engine (Gaussian Plume/Puff/Heavy Gas)
↓
Database (SQLite + 200+ chemicals seed data)
- User Guide
- Tutorial
- API Reference (FastAPI auto-generated)
- Development Plan
# Backend tests
cd backend
pytest tests/ -v --cov=src
# Frontend tests
cd frontend
npm test
npm run lint
# E2E tests
npx playwright test# Build and run all services
docker compose up --build
# Run backend only
docker compose up backend
# Run frontend only
docker compose up frontend
# Stop all services
docker compose down
# Remove volumes (wipe database)
docker compose down -v| Layer | Technology |
|---|---|
| Frontend | React 18, TypeScript, Vite, MapLibre GL JS, Deck.gl, Recharts |
| Backend | FastAPI, Python 3.11+, NumPy, SciPy, SQLAlchemy, Pydantic |
| Database | SQLite with chemical seed data |
| Testing | pytest, Vitest, Playwright |
| CI/CD | GitHub Actions |
| Deployment | Docker Compose, Docker |
Standard Pasquill-Gifford model untuk continuous release dari elevated atau ground-level source. Tervalidasi terhadap CCPS Guidelines, TNO Yellow Book, dan literatur peer-reviewed.
Time-dependent model untuk instantaneous release (e.g., vessel rupture, BLEVE). Menggunakan σx = σy untuk puff symmetry.
Dense gas dispersion model untuk gases heavier than air (e.g., chlorine, LPG, HF). Menggunakan nomogram Britter-McQuaid (1988) dengan dimensionless analysis.
Menghitung evaporasi rate dari liquid pool (HSSC model + Mackay & Matsugu) dan dispersi ke atmosfer.
Model untuk pressurized gas release through an orifice/pipe leak dengan choked/subsonic flow calculation dan far-field transition ke Gaussian.
- QRA (Quantitative Risk Assessment) — Calculate affected zones for process safety studies
- HAZOP Support — Visualize dispersion scenarios during hazard analysis
- Emergency Planning — Determine evacuation zones and safe distances
- Incident Investigation — Reconstruct dispersion patterns for post-incident analysis
- Regulatory Compliance — Generate exportable data for permits and reports
- 200×200 grid Gaussian Plume: <500ms
- 200×200 grid Gaussian Puff (50 timesteps): <5s
- Heavy Gas 200×200 grid: <1s
- Full simulation API call: <2s
Contributions welcome! Please read our contributing guidelines and submit pull requests to develop branch.
MIT License — see LICENSE for details.
- Arie Nugraha (@arienug20) — Initial development
- CCPS (Center for Chemical Process Safety) — Validation examples and methodologies
- TNO Yellow Book — Heavy gas dispersion methodologies
- Briggs (1973, 1988) — Dispersion coefficients and plume rise formulas
- Britter & McQuaid (1988) — Heavy gas dispersion nomograms
- Hanna, Briggs, Hosker (1982) — Atmospheric dispersion handbook