We have an exciting announcement about badges coming in May 2025. Until then, we will temporarily stop issuing new badges for course completions and certifications. However, all completions will be recorded and fulfilled after May 2025.
Photonics

Photonics

Topics related to Lumerical and more.

Error in CHARGE while replicating planar-silicon-solar-cell example

    • Minhaz Mahmood
      Subscriber

      I get this error while I tried to replicate the planar-silicon-solar-cell example from Planar silicon solar cell – Ansys Optics.

      Error:.../solar_cell_electrical_results.lsf line 38: in expression A(i,...) the index was out of range

      I was simulating a 5 layer perovskite so I'm not sure what the issue is.

      The problem is with the following line:

      J = I/Lx/Ly*1000; # mA/cm^2

       

       

       

      ?kern = find(J<0);

       

      ?kern = length(kern);

       

      ?slope = (J(kern+1) - J(kern))/(V(kern+1)-V(kern));

       

      None of my J values are less than zero, so ?kern = length(kern)=0
      and ?kern = length(kern)=1

      Please help.

    • Amrita Pati
      Ansys Employee

      Hi Minhaz,

      Are you applying a voltage sweep to the base? The initial simulation is for a single voltage value. You would have to apply a sweep voltage to the base to plot the current-voltage characteristics:

      If you are running the code with a single voltage applied to the base then it will throw this out of index error. Let me know if you are already using a voltage sweep for the base.

      Regards,
      Amrita

      • Minhaz Mahmood
        Subscriber

        Thank you Ms. Amrita, that solved the issue. You are correct that my base did not have a sweep range but had a single value.

        Now I am running into another issue. 

        From Lumerical CHARGE simulation I got this J-V and power curve.

        The following results are also simulated:
        Voc = 0.971231 V
        Jsc = -1.77873 mA/cm^2
        Pmax = 0 mW/cm^2
        FF = 0
        eta = 0%

        Why is the shape of my J-V curve and power curve like this? Why is my FF and eta 0?

Viewing 1 reply thread
  • The topic ‘Error in CHARGE while replicating planar-silicon-solar-cell example’ is closed to new replies.