


{"id":369653,"date":"2024-06-03T17:23:57","date_gmt":"2024-06-03T17:23:57","guid":{"rendered":"\/forum\/forums\/topic\/error-in-charge-while-replicating-planar-silicon-solar-cell-example\/"},"modified":"2024-06-03T17:23:57","modified_gmt":"2024-06-03T17:23:57","slug":"error-in-charge-while-replicating-planar-silicon-solar-cell-example","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/error-in-charge-while-replicating-planar-silicon-solar-cell-example\/","title":{"rendered":"Error in CHARGE while replicating planar-silicon-solar-cell example"},"content":{"rendered":"<p>I get this error while I tried to replicate the planar-silicon-solar-cell example from <a href=\"https:\/\/optics.ansys.com\/hc\/en-us\/articles\/360042165534-Planar-silicon-solar-cell\">Planar silicon solar cell &ndash; Ansys Optics.<\/a><\/p>\n<p>Error:&#8230;\/solar_cell_electrical_results.lsf line 38: in expression A(i,&#8230;) the index was out of range<\/p>\n<p>I was simulating a 5 layer perovskite so I&#8217;m not sure what the issue is.<\/p>\n<p>The problem is with the following line:<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">J = I\/Lx\/Ly*1000; # mA\/cm^2<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">?kern = find(J&lt;0);<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">?kern = length(kern);<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">?slope = (J(kern+1) &#8211; J(kern))\/(V(kern+1)-V(kern));<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">&nbsp;<\/p>\n<p style=\"text-indent: 0px;margin: 0px\">None of my J values are less than zero, so ?kern = length(kern)=0<br \/>and ?kern = length(kern)=1<\/p>\n<p>Please help.<\/p>\n","protected":false},"template":"","class_list":["post-369653","topic","type-topic","status-closed","hentry","topic-tag-LumericalCHARGE-1","topic-tag-LumericalFDTDCHARGE-1","topic-tag-solarcell-1"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_subscription":["337897","33648"],"_bbp_author_ip":["23.216.133.155"]," _bbp_last_reply_id":["0"]," _bbp_likes_count":["0"],"_btv_view_count":["293"],"_bbp_topic_status":["unanswered"],"_bbp_topic_id":["369653"],"_bbp_forum_id":["27833"],"_bbp_engagement":["33648","337897"],"_bbp_voice_count":["2"],"_bbp_reply_count":["2"],"_bbp_last_reply_id":["369702"],"_bbp_last_active_id":["369702"],"_bbp_last_active_time":["2024-06-04 05:42:22"]},"test":"p129271siswa-ukm-edu-my"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/369653\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=369653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}