Skip to content

Swordshinehjy/solarcell_SingleDiodeModel

Repository files navigation

Solar Cell Single Diode Model

A comprehensive toolkit for analyzing and simulating solar cell performance using the single diode model. This project provides various Jupyter notebooks for calculating key performance parameters, simulating J-V curves, and analyzing solar cell efficiency.

Features

  • Single Diode Parameter Calculation: Calculate key parameters of the single diode model including photocurrent, saturation current, series resistance, shunt resistance, and ideality factor.
  • J-V Curve Analysis: Analyze current density-voltage (J-V) curves to extract performance parameters such as short-circuit current (Jsc), open-circuit voltage (Voc), fill factor (FF), and power conversion efficiency (PCE).
  • Dark Diode J-V Characteristics: Simulate and analyze dark J-V curves for solar cells.
  • Efficiency Analysis: Calculate efficiency from J-V curve data with various interpolation methods.
  • Voc Simulation: Simulate open-circuit voltage under different conditions.

Project Structure

solarcell_SingleDiodeModel/
├── Efficiency-single-JV.ipynb       # Efficiency calculation from J-V curve
├── Voc_simulation.ipynb             # Open-circuit voltage simulation
├── dark_diode_JV.ipynb               # Dark J-V curve analysis
├── dark_diode_JV_scan.ipynb          # Dark J-V curve scanning
├── single_diode_param.ipynb          # Single diode parameter calculation
├── single_diode_param_lambertW.ipynb # Single diode parameter using Lambert W function
├── data_JV.csv                       # Sample J-V curve data
└── README.md                         # Project documentation

Requirements

  • Python 3.x
  • NumPy
  • SciPy
  • Pandas
  • Matplotlib
  • Jupyter Notebook

Installation

  1. Clone this repository:
git clone https://github.com/yourusername/solarcell_SingleDiodeModel.git
cd solarcell_SingleDiodeModel
  1. Install the required packages:
pip install numpy scipy pandas matplotlib jupyter

Usage

Analyzing J-V Curves

Open the Efficiency-single-JV.ipynb notebook to analyze J-V curve data:

  1. Load your J-V data in CSV format with columns for Voltage (V) and Current density (mA/cm²).
  2. Run the analysis cells to calculate key performance parameters.
  3. Visualize the J-V curve and power curve.

Single Diode Model Parameters

Use the single_diode_param.ipynb notebook to calculate single diode model parameters:

  1. Set the temperature and other physical constants.
  2. Input known parameters such as photocurrent, saturation current, series resistance, shunt resistance, and ideality factor.
  3. Run the notebook to calculate Jsc, Voc, FF, and PCE.

Dark J-V Curve Analysis

The dark_diode_JV.ipynb notebook allows you to:

  1. Simulate dark J-V curves based on single diode model parameters.
  2. Analyze the characteristics of dark J-V curves.
  3. Extract parameters from experimental dark J-V data.

Voc Simulation

The Voc_simulation.ipynb notebook provides:

  1. Simulation of open-circuit voltage under different conditions.
  2. Analysis of temperature dependence of Voc.
  3. Visualization of Voc as a function of various parameters.

Sample Data

A sample J-V curve dataset is provided in data_JV.csv with columns:

  • Voltage (V)
  • Current density (mA/cm²)

You can use this data to test the notebooks or replace it with your own experimental data.

Theory Background

The single diode model is a widely used equivalent circuit model for solar cells, consisting of:

  • A current source representing the photocurrent generated by light
  • A diode representing the p-n junction
  • Series resistance (Rs)
  • Shunt resistance (Rsh)

The model equation is:

J = Jph - J0 * [exp((V + J*Rs)/(n*Vt)) - 1] - (V + J*Rs)/Rsh

Where:

  • J is the current density
  • Jph is the photocurrent density
  • J0 is the saturation current density
  • V is the voltage
  • Rs is the series resistance
  • Rsh is the shunt resistance
  • n is the ideality factor
  • Vt is the thermal voltage (k*T/q)

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published