Core Concepts
This guide covers the fundamental concepts and domain knowledge required to understand and develop PVTools effectively.
Solar PV System Fundamentals
System Components
Solar Panels
- Power Rating (kWp): Peak power output under Standard Test Conditions (STC)
- Efficiency: Percentage of solar energy converted to electricity
- Degradation Rate: Annual reduction in panel efficiency (typically 0.5-0.8%)
- Temperature Coefficient: Performance impact of temperature variations
Inverters
- String Inverters: Central inverter for multiple panel strings
- Power Optimizers: Panel-level optimization with string inverter
- Microinverters: Individual inverter per panel
- Sizing Ratio: Inverter capacity vs panel capacity (typically 1.1-1.3)
Battery Energy Storage Systems (BESS)
- Capacity (kWh): Total energy storage capability
- Power Rating (kW): Maximum charge/discharge rate
- Round-trip Efficiency: Energy lost in charge/discharge cycle
- Depth of Discharge (DoD): Usable capacity percentage
- Cycle Life: Number of charge/discharge cycles before degradation
Performance Metrics
Energy Production
# Monthly energy production calculation
monthly_production = panel_capacity * monthly_irradiation * performance_ratio
Performance Ratio (PR)
# System efficiency considering all losses
performance_ratio = actual_output / (panel_capacity * irradiation)
Malaysian Energy Market Context
Regulatory Framework
SARE (Solar Energy Regulatory)
- Grid connection standards and requirements
- Safety and technical specifications
- Installation and commissioning procedures
NOVA (Net Energy Metering)
- Bi-directional energy metering system
- Credit mechanism for excess energy exported to grid
- Capacity limitations based on consumer category
SELCO (Self-Consumption)
- On-site consumption prioritization
- No export to grid allowed
- Simplified approval process
TNB Tariff Structure
Tariff Categories
- Domestic (B): Residential consumers
- Commercial (C1-C3): Business consumers by voltage level
- Industrial (D-F): Large industrial consumers
- Agricultural (G): Farming and agricultural operations
Billing Components
# Complex tariff calculation example
def calculate_tnb_bill(consumption, peak_demand, tariff_category):
energy_charge = calculate_energy_charge(consumption, tariff_category)
demand_charge = calculate_demand_charge(peak_demand, tariff_category)
service_charge = get_service_charge(tariff_category)
return energy_charge + demand_charge + service_charge