Logo Lanfrica

MucuiBen/solar-sizing-ke

Domain:

environment and energy

Record type:

softwaretools
Creator:
Muc
Host:
Kenya-Spec Universal Solar PV Sizing Tool - Streamlit Web App with Off-Grid, Grid-Tied & Hybrid sizing engines. EPRA 2026 Compliant. # ☀️ SolarSizeKE — Kenya-Spec Universal Solar PV Sizing Tool A comprehensive, production-grade solar PV system sizing web application built specifically for the Kenyan market. Designed by solar engineers, for solar engineers. ## 🚀 Features ### Phase 1: Appliance Database - **64 Kenya-specific appliances** across 12 categories (Lighting, Refrigeration, Cooking, Water Pumping, Industrial, etc.) - Each appliance includes Average Wattage, Starting Surge Factor, and Typical Hours of Use - Searchable and filterable appliance library with auto-population ### Phase 2: Three Sizing Engines - **Off-Grid Sizer**: Array + Battery bank sizing with Lead-Acid (50% DoD) vs LiFePO4 (90% DoD) comparison - **Grid-Tied Sizer**: ROI, NPV, IRR, and 25-year cash flow based on KPLC tariffs (DC, SC, CI1-CI4) - **Hybrid Sizer**: Solar → Battery → Grid priority logic with Peak Shaving calculator for industrial KVA demand reduction ### Phase 3: Mathematical Architecture - Total Daily Energy: `Σ(Power × Time) × 1.2` (system loss factor) - Battery Capacity: `(Wh × Days of Autonomy) / (V_sys × DoD × η_inverter)` - Inverter Sizing: `MAX(Continuous Load × 1.25, Highest Surge Load)` - IRR via Newton's method, NPV with configurable discount rate ### Phase 4: Visual Dashboard - Interactive Plotly charts (cost breakdown, cash flow, energy pie charts) - PV*SOL/PVsyst-inspired layout with Input Section (sidebar) and Results (main area) - Auto-generated Bill of Materials with downloadable Excel export ### Phase 5: Kenya Compliance - Full **EPRA System Design Declaration** template (2026 licensing requirements) - Protection checklist (IEC 62446, IEC 60364, KS IEC 61215/61730) - 24 Kenya regions with NASA/PVGIS Peak Sun Hours data - Complete KPLC tariff table (Domestic through CI4) ## 📊 Data Sources - **Peak Sun Hours**: NASA Surface Meteorology / PVGIS-TMY - **Tariffs**: Energy & Petroleum Regulatory Authority (EPRA) Kenya, 2025/2026 gazette - **Appliance Data**: Kenya domestic and industrial lo …