Skip to content

spyridouladev/PVCalc

Repository files navigation

PVCalc

PVCalc is a Python application that analyzes and calculates solar energy potential production based on forecast data from geographical inputs. It integrates various data sources and uses the pvlib Python library for solar irradiance modeling.


Features

  • Retrieve and display weather data for selected locations worldwide.
  • Calculate solar irradiance and other relevant solar energy metrics.
  • Support for dust surface density input to refine calculations.
  • Interactive GUI built with Tkinter.
  • Data sourced from reputable dataset on world cities.
  • Power production visualization for selected time periods.

Installation

Before running the application from source make sure you have python 3.8+ installed, if not you can install python from Python Download.

  1. Clone the repository
git clone https://github.com/spyridouladev/PVCalc.git
cd PVCalc
  1. Create and activate virtual enviroment (recommended)
python -m venv venv
source venv/bin/activate      # On Linux/macOS
venv\Scripts\activate.bat     # On Windows
venv\Scripts\Activate.ps1     # On Powershell
  1. Upgrade pip and install dependencies
python.exe -m pip install --upgrade pip
pip install -r requirements.txt
  1. Run the application
python main.py

Usage

First, input the data for the PV farm you want to calculate for.
Keep in mind that the weather data is based on forecasts, so it will not be 100% accurate.

Example: 3-Day Power Production

3 days

Fixed Angle Mode

You can choose between fixed angle and single-axis tracker.

Fixed angle input interface:

fixed angle

Graph for fixed angle:

fixed angle graph

Single-Axis Tracker Mode

Tracking input interface:

tracking

Graph for tracking:

tracking graph

Results and Forecast

Estimated production (⚠️ Not precise due to limited forecast data):

results

Live weather data display beneath input fields:

weather

Attribution and License

Cell Temperature model

This project incorporates concepts and correlation models derived from:

Gholami, A., Ameri, M., Zandi, M., Gavagsaz Ghoachani, R., Jafarzadegan Gerashi, S., Kazem, H. A., & Al-Waeli, A. H. A. (2023). Impact of harsh weather conditions on solar photovoltaic cell temperature: Experimental analysis and thermal-optical modeling. Solar Energy, 252, 176–194. https://doi.org/10.1016/j.solener.2023.01.039

Data Sources (licensed under CC BY 4.0)

Please review these licenses for detailed terms and attribution requirements.


Software Library (licensed under BSD 3-Clause)

This project uses pvlib python, licensed under the BSD 3-Clause License. The copyright and license notice for pvlib are included with this project.

About

Solar power production calculator from forecast data.

Topics

Resources

License

MIT, BSD-3-Clause licenses found

Licenses found

MIT
LICENSE.txt
BSD-3-Clause
LICENSE-pvlib.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages