TAGGED: Lumerical-CHARGE, Lumerical-FDTD-CHARGE, solar-cell
-
-
June 3, 2024 at 5:23 pmMinhaz MahmoodSubscriber
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 rangeI 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. -
June 3, 2024 at 9:38 pmAmrita PatiAnsys 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-
June 4, 2024 at 5:42 amMinhaz MahmoodSubscriber
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?
-
-
- The topic ‘Error in CHARGE while replicating planar-silicon-solar-cell example’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- INTERCONNECT – No results unless rerun simulation until it gives any
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- How to measure transmission coefficients on a given plane .
- Topology Optimization Error
-
1406
-
599
-
591
-
555
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.