Simulation with PVGIS data for photovoltaic. BESS battery, export and import of electricity by spot market prices, EMS to avoid high peak-usage grid fees, heating, cooling and DHW by heat pump, charging cars, and off-grid and weak-grid systems with a generator and power to methanol. All for the house improvement up to the energy-intensive industry.
Code and examples
This repository holds the program only.
Examples — locations, objects and compares — are too large for GitHub. They are at https://pege.org/energy-sim/ for download.
On start, the program reads this file and tells you if a newer version is listed here.
Targets for Version 1.0
Define multiple objects and their quantity. This will be called a community simulation. For example:
- 5000 GEMINI next Generation houses - A fast charging station - A power to methanol plant with a tank and a CCPP — Combined Cycle Power Plant - Agricultural areas with peak demand for electric tractors - An only electric-powered cement factory
We will implement in these simulations different industries.
2026-10-14 Version 0.1
Handling of February 29th fixed. Rerun all stored simulations with a new version. Report all differences between the old and the new version.
2026-10-10 Version 0.0
Only for objects with PV, a battery, a heat pump, and car charging. Interaction with the outside world by a spot market prices model and limits to import and export electricity.
Files
- `pege_energy_sim_server_uses_default_browser_as_gui.py` — form, default browser as GUI - `pege_energy_sim_report.py` — PVGIS download and PDF - `pege_energy_sim_demand.py` — house, heat pump, prices - `pege_energy_sim_demand_sim.py` — hourly battery and grid run - `pege_energy_sim_gui.py` — desktop window, no browser
Start
See Linux, Apple, Windows or Android below.
The default browser is the GUI. Stop the server with Ctrl+C. Default address: http://127.0.0.1:8765/
Folder layout
Create a folder `PEGE-energy-sim` or whatever You like. Under the output parent folder:
- `locations/` — weather CSV cache, one folder per place, and `.pvgis_country_cache.json` - `objects/
Since 1991, striving to lead humanity into the solar age. Our activities are the philosophy Infinitism, WWW movement WorldWide Wealth and the GEMINI next Generation house.
Open-source multi-platform software to design our energy future. From the outcome of a house renovation up to communities with energy-intensive industry.
Since 1991, a goal, but increasingly better ways to be able to implement this goal. The technology is getting better, the production of required technology is increasing.
Open-source multi-platform software to design our energy future. From the outcome of a house renovation up to communities with energy-intensive industry.
The Perl version was started in April 2024 as an internal tool without GUI. We decided on 2026-09-28 for complete new software for this task in Python.
README.md from PEGE energy sim: Contains versions history and how to install on Linux, Apple, Windows, and Android. https://www.pege.org/energy-sim/readme.htm