Giter Site home page Giter Site logo

wpt-lab124 / modified-diode-model Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 2.0 3.98 MB

The Modified Diode Model for Perovskite Photovoltaics

License: GNU General Public License v3.0

MATLAB 100.00%
circuit circuit-model circuit-modelling detailed-balance detailed-balance-limit perovskite-solar-cells photovoltaic photovoltaics solar-cell solar-cells

modified-diode-model's Introduction

Modified Diode Model

NEWS: ๐Ÿ”ฅModified Diode Model is accepted by Solar RRL!๐Ÿ”ฅ

Quantifying Nonradiative Recombination and Resistive Losses in Perovskite Photovoltaics: A Modified Diode Model Approach

Minshen Lin, Xuehui Xu, Hong Tian, Yang (Michael) Yang, Wei E. I. Sha, Wenxing Zhong

License Version Visits Badge

The source code for the modified diode (MD) model written in MATLAB (version: R2022b).

You can use the MD model to discern and quantify the electrical losses in a complete perovskite photovoltaic device under operational conditions. The code in this repository, along with the drift-diffusion simulation data, can reproduce the results in our paper, which validates the effectiveness of this approach.

If you require any further information or if we can be of any assistance, feel free to contact us by creating an issue or send us emails.

Info

Repository Structure

โ”œโ”€โ”€ Classes and Functions
โ”‚   โ”œโ”€โ”€ Models
โ”‚   โ”‚   โ”œโ”€โ”€ DataLoader.m               <- DataLoader class for loading the simulation dataset
โ”‚   โ”‚   โ”œโ”€โ”€ DataPreconditioner.m       <- DataPreconditioner class for the preconditioning of the simulation/experimental data
โ”‚   โ”‚   โ”œโ”€โ”€ Device.m                   <- Device class for defining perovskite PV parameters
โ”‚   โ””โ”€โ”€ Utils
โ”‚   โ”‚   โ”œโ”€โ”€ costFunction.m             <- Function for computing the cost function
โ”‚   โ”‚   โ”œโ”€โ”€ fittingMD.m                <- Function for curve fitting with the MD model
โ”‚   โ”‚   โ”œโ”€โ”€ lossAnalysis.m             <- Function for evaluating the normalized PCE gains
โ”‚   โ”‚   โ”œโ”€โ”€ plotJrecV.m                <- Function for plotting the J(recombination)-V curves
โ”‚   โ”‚   โ”œโ”€โ”€ plotJV.m                   <- Function for plotting the J-V curves
โ”‚   โ”‚   โ”œโ”€โ”€ plotNormPCEGain.m          <- Function for graphing the normalized PCE gains
โ”‚   โ”‚   โ”œโ”€โ”€ solver.m                   <- Function for solving the JV curves with the retrieved parameters from the MD model
โ”œโ”€โ”€ Experimental Data                  <- Experimental JV data, demonstrating how the data should be formatted
โ”œโ”€โ”€ Simulation Data                    <- SCAPS-1D simulated JV data
โ”‚   โ”œโ”€โ”€ Figure1
โ”‚   โ””โ”€โ”€ Figure4
โ”œโ”€โ”€ single_dataset_fitting.m           <- Script for applying the MD model to the simulated single dataset
โ”œโ”€โ”€ batch_dataset_fitting.m            <- Script for applying the MD model to the simulated batch dataset
โ””โ”€โ”€ main.m                             <- Script for applying the MD model to the experimental JV data

Content summary

Files in the root of this repository:

  • main.m is a script where the MD model is applied to the experimental JV data for loss quantification.
  • single_dataset_fitting.m is a script where the MD model is applied to one set of simulated JV curve, reproducing the results in Fig. 1 of our paper.
  • batch_dataset_fitting.m is a script where the MD model is applied to a batch of simulated JV curves, reproducing the results in Fig. 4 of our paper.

Files in the Simulation Data folder:

  • Figure1 is a folder that contains the JV curve (simulated by SCAPS-1D) under both 1 Sun and 50 Suns illumination. Using the data in this folder with single_dataset_fitting.m script, you can reproduce the results in Fig. 1 of our paper.
  • Figure4 is a folder that contains batches of JV curves (simulated by SCAPS-1D). These data are simulated by varing the parameters related bulk and interface SRH recombination simultaneously, in order to study their impact on the performace of the MD model. Using the data in this folder with batch_dataset_fitting.m script, you can reproduce the results in Fig. 4 of our paper.

Files in the Experimental Data folder contains the experimental JV data, intended to show how the data should be formatted to interface with the main.m script.

Usage

To get started, you can run the main.m script with the your experimental JV data (the format of the data should comply with those in the Experimental Data folder). The workflow of the script can be summarized as the following steps:

  • First, initialize a Device object in which you can specify the parameters of your photovoltaic device.
  • Second, initilize a DataPreconditioner object that can parse the JV data and store it into the expected format.
  • Third, solve the nonlinear least squares fitting problem using the fittingMD function.
  • After retrieveing the model parameters, numerically solve the JV curve with solver function and plot it with plotJV.
  • Finally, compute the normalized PCE gains with lossanalysis function and create a bar graph with plotNormPCEGain.

You can refer to these steps to write your own script, and follow the guidelines in our paper to apply the MD model and interpret the results for your own device.

Besides, you can directly run the single_dataset_fitting.m or the batch_dataset_fitting.m to reproduce the results in our paper, and if you want to further explore the MD model with SCAPS-1D, you can use the DataSet and the DataPreconditioner classes to parse the simulated data.

Citation

If you find this work useful in your research, please cite:

@article{lin2024quantifying,
  title={Quantifying Nonradiative Recombination and Resistive Losses in Perovskite Photovoltaics: A Modified Diode Model Approach},
  author={Lin, Minshen and Xu, Xuehui and Tian, Hong and Yang, Yang and Sha, Wei EI and Zhong, Wenxing},
  journal={Solar RRL},
  volume={8},
  number={1},
  pages={2300722},
  year={2024},
  publisher={Wiley Online Library}
}

Other Info

Repository Author: Minshen Lin

Email: [email protected]

Institution: Zhejiang University

modified-diode-model's People

Contributors

minshen-lin avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.