


{"id":404203,"date":"2025-01-09T06:55:49","date_gmt":"2025-01-09T06:55:49","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-charge-simulation-for-photo-current-generation\/"},"modified":"2025-01-09T06:55:49","modified_gmt":"2025-01-09T06:55:49","slug":"ansys-charge-simulation-for-photo-current-generation","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/ansys-charge-simulation-for-photo-current-generation\/","title":{"rendered":"ansys charge simulation for photo current generation"},"content":{"rendered":"<p>&lt;p&gt;hii everyone&lt;br&gt;i am trying tom generate the photo current with the script, but i am not able to creat the graph with script.&lt;br&gt;althrought i have checked the generation rate , which is well establish in .&lt;br&gt;the script is-&lt;\/p&gt;&lt;p&gt;#########################################################&lt;\/p&gt;&lt;p&gt;#&lt;\/p&gt;&lt;p&gt;# Simulate the electrical simulation response under dark&lt;\/p&gt;&lt;p&gt;# and illuminated conditions.&lt;\/p&gt;&lt;p&gt;#&lt;\/p&gt;&lt;p&gt;# (c) Lumerical Solutions&lt;\/p&gt;&lt;p&gt;#########################################################&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;load(&#8220;dark current simulation.Idev&#8221;);&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;# reverse bias, light&lt;\/p&gt;&lt;p&gt;switchtolayout;&lt;\/p&gt;&lt;p&gt;setnamed(&#8216;CHARGE::ogr&#8217;,&#8217;enabled&#8217;,1);&lt;\/p&gt;&lt;p&gt;select(&#8216;CHARGE::boundary conditions::cathode&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;bc mode&#8217;,&#8217;steady state&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;sweep type&#8217;,&#8217;range&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;range start&#8217;,0);&lt;\/p&gt;&lt;p&gt;set(&#8216;range stop&#8217;,-2);&lt;\/p&gt;&lt;p&gt;set(&#8216;range num points&#8217;,1334);&lt;\/p&gt;&lt;p&gt;run;&lt;\/p&gt;&lt;p&gt;anode = getresult(&#8220;CHARGE&#8221;,&#8221;anode&#8221;);&lt;\/p&gt;&lt;p&gt;Vrr = -flip(pinch(anode.V_cathode),1);&lt;\/p&gt;&lt;p&gt;Irr = 2*flip(pinch(anode.I),1);&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;# forward bias, light&lt;\/p&gt;&lt;p&gt;switchtolayout;&lt;\/p&gt;&lt;p&gt;setnamed(&#8216;CHARGE::ogr&#8217;,&#8217;enabled&#8217;,1);&lt;\/p&gt;&lt;p&gt;select(&#8216;CHARGE::boundary conditions::cathode&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;bc mode&#8217;,&#8217;steady state&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;sweep type&#8217;,&#8217;range&#8217;);&lt;\/p&gt;&lt;p&gt;set(&#8216;range start&#8217;,0);&lt;\/p&gt;&lt;p&gt;set(&#8216;range stop&#8217;,2);&lt;\/p&gt;&lt;p&gt;set(&#8216;range num points&#8217;,1334);&lt;\/p&gt;&lt;p&gt;run;&lt;\/p&gt;&lt;p&gt;anode = getresult(&#8220;CHARGE&#8221;,&#8221;anode&#8221;);&lt;\/p&gt;&lt;p&gt;Vrf = -pinch(anode.V_cathode); Vrf = Vrf(2:length(Vrf));&lt;\/p&gt;&lt;p&gt;Irf = pinch(anode.I); Irf = 2*Irf(2:length(Irf));&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;plotxy([Vdr; Vdf], abs([Idr; Idf]),&lt;\/p&gt;&lt;p&gt;[Vrr; Vrf], abs([Irr; Irf]),&lt;\/p&gt;&lt;p&gt;&#8221;V (V)&#8221;, &#8220;I (A)&#8221;);&lt;\/p&gt;&lt;p&gt;&lt;br&gt;give me the solution on this&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-404203","topic","type-topic","status-publish","hentry"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27833"],"_bbp_topic_id":["404203"],"_bbp_subscription":["482428","50911"],"_bbp_author_ip":["14.139.239.180"],"_bbp_last_reply_id":["404372"],"_bbp_last_active_id":["404372"],"_bbp_last_active_time":["2025-01-10 08:16:32"],"_bbp_reply_count":["1"],"_bbp_reply_count_hidden":["0"],"_bbp_voice_count":["2"],"_bbp_engagement":["482428","50911"],"_btv_view_count":["169"],"_bbp_topic_status":["unanswered"],"_edit_lock":["1736440054:473055"]},"test":"232221001nitdelhi-ac-in"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/404203","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\/404203\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=404203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}