MATLAB scripts and input spectra
================================

Manuscript: Pr3+-Doped SnO2 ETL for Flexible CsPbBr3 Indoor Photovoltaics:
A Coupled Single-Diode and Impedance-Spectroscopy Modeling Study

Author: Mohammad Ghadimimehr (23057283@siswa.um.edu.my)
Corresponding: Azimah Binti Omar (azimahomar@um.edu.my)
Affiliation:   University of Malaya, UMPEDAC + Faculty of Engineering
Published:     Mendeley Data
DOI:           10.17632/8jt2psbx9h.1
URL:           https://doi.org/10.17632/8jt2psbx9h.1
License:       CC BY 4.0

CONTENTS
--------
MATLAB scripts (11):
  FF.m                          - Fill factor + P-V analysis under 5 illumination sources
  EIS_Nyquist_Bode_Q1.m         - Two-arc EIS Nyquist and Bode plots (Figure 5)
  Rsh_JV_3D.m                   - 3D shunt-resistance / voltage / current surface
  Rsh_JV_Heatmap.m              - Rsh-V heatmap (AM1.5G)
  Rsh_JV_Indoor_vs_Outdoor.m    - Indoor vs outdoor J-V comparison
  Rsh_JV_CFL_Hal_INC.m          - Rsh heatmaps for CFL / halogen / incandescent
  Rsh_JV_2D_Indoor.m            - 2D Rsh sweep under indoor conditions
  Figure3_Spectra_CIE.m         - CIE indoor spectra + AM1.5G (Figure 3)
  Fig6_PCE_vs_Rsh.m             - Sigmoidal PCE-vs-Rsh fit (Figure 6)
  PCE_BarChart_Q1.m             - PCE bar chart across illumination sources
  Jsc_BarChart_Q1.m             - Jsc bar chart across illumination sources

Input spectra (2):
  F11.csv                       - CIE F11 fluorescent tri-phosphor SPD (380-780 nm)
  LEDB3.csv                     - CIE LED-B3 SPD (~4000 K, 380-780 nm)

REQUIREMENTS
------------
MATLAB R2021a or later. No additional toolboxes required.

REPRODUCTION
------------
1. Place all files in a single working directory.
2. Set MATLAB current folder to that directory.
3. Run each .m script independently to reproduce the corresponding figure.

KEY REPRODUCIBLE RESULTS
------------------------
J0 (undoped)   = 7.939e-16 A/cm2
J0 (Pr3+ doped) = 1.430e-17 A/cm2   -> 55.5-fold reduction
Rsh (undoped)  = 6.05e3 Ohm.cm2
Rsh (doped)    = 6.05e5 Ohm.cm2     -> 100-fold elevation
PCE at 1000 lx LED (undoped)   = 0.461 percent
PCE at 1000 lx LED (Pr3+ doped) = 10.72 percent   -> 23.3-fold gain
PCE at AM1.5G (undoped)         = 5.68 percent
PCE at AM1.5G (Pr3+ doped)      = 8.16 percent
Voc gain at AM1.5G              = +164 mV
AC Rrec ratio                    = 55.5 (matches DC J0 ratio -> self-consistent)
Fermi level in doped SnO2 ETL   = 78.3 meV above conduction band minimum
Reduced Fermi level              = eta = 3.03
Diffusion enhancement            = 2.44x over Boltzmann limit
Electron diffusion length gain   = 1.56-fold

CITATION
--------
Ghadimimehr, Mohammad (2026). MATLAB scripts and input spectra for:
Pr3+-Doped SnO2 ETL for Flexible CsPbBr3 Indoor Photovoltaics:
A Coupled Single-Diode and Impedance-Spectroscopy Modeling Study
[Data set]. Mendeley Data, V1. https://doi.org/10.17632/8jt2psbx9h.1
