# menuka-jeewantha/solar_forecast architecture

> Architecture diagram of the GitHub repository menuka-jeewantha/solar_forecast, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/menuka-jeewantha/solar_forecast
- Repository: https://github.com/menuka-jeewantha/solar_forecast

## Overview

This is a software-only rooftop-PV and household-load planning system for a constructed Sri Lankan design case, using PVGIS-modelled generation and London smart-meter load as a U.K. proxy. Its principal workflow prepares hourly data, produces PV and load forecasts, applies a planner strategy, and simulates battery–grid operation. Evaluation scores forecasts and simulated energy outcomes; the planner also feeds the documented owner/report output. The README specifies these relationships, but no source excerpts were provided, so implementation-level interactions cannot be verified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_preparation["Data preparation"]
end

subgraph group_forecast["Forecasting"]
  node_pv_forecaster["PV forecaster"]
  node_load_forecaster["Load forecaster"]
end

subgraph group_plan_sim["Planning and simulation"]
  node_planner["Energy planner"]
  node_simulator["Battery–grid simulator"]
end

subgraph group_assessment["Assessment"]
  node_evaluation["Evaluation"]
end

node_pv_weather["PV + weather data"]
node_load_data["Household load data"]
node_settings["Settings"]
node_report["Owner / report"]

node_pv_weather -->|"provides data"| node_preparation
node_load_data -->|"provides data"| node_preparation
node_preparation -->|"supplies data"| node_pv_forecaster
node_preparation -->|"supplies data"| node_load_forecaster
node_pv_forecaster -->|"sends forecasts"| node_planner
node_load_forecaster -->|"sends forecasts"| node_planner
node_planner -->|"provides plan"| node_simulator
node_settings -->|"configures"| node_simulator
node_simulator -->|"sends results"| node_evaluation
node_pv_forecaster -.->|"sends forecasts"| node_evaluation
node_load_forecaster -.->|"sends forecasts"| node_evaluation
node_planner -->|"provides results"| node_report

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_preparation toneBlue
class node_pv_forecaster,node_load_forecaster toneAmber
class node_planner,node_simulator toneMint
class node_evaluation toneRose
class node_pv_weather,node_load_data,node_settings,node_report toneIndigo
```

## Components

### Data preparation

- **Data preparation**

### Forecasting

- **PV forecaster**
- **Load forecaster**

### Planning and simulation

- **Energy planner**
- **Battery–grid simulator**

### Assessment

- **Evaluation**

### Other components

- **PV + weather data**
- **Household load data**
- **Settings**
- **Owner / report**

## Connections

- PV + weather data → Data preparation: provides data (evidence: `README.md`)
- Household load data → Data preparation: provides data (evidence: `README.md`)
- Data preparation → PV forecaster: supplies data (evidence: `README.md`)
- Data preparation → Load forecaster: supplies data (evidence: `README.md`)
- PV forecaster → Energy planner: sends forecasts (evidence: `README.md`)
- Load forecaster → Energy planner: sends forecasts (evidence: `README.md`)
- Energy planner → Battery–grid simulator: provides plan (evidence: `README.md`)
- Settings → Battery–grid simulator: configures (evidence: `README.md`)
- Battery–grid simulator → Evaluation: sends results (evidence: `README.md`)
- PV forecaster → Evaluation: sends forecasts (evidence: `README.md`)
- Load forecaster → Evaluation: sends forecasts (evidence: `README.md`)
- Energy planner → Owner / report: provides results (evidence: `README.md`)
