-
-
January 9, 2025 at 6:55 am
232221001
Subscriberhii everyone
i am trying tom generate the photo current with the script, but i am not able to creat the graph with script.
althrought i have checked the generation rate , which is well establish in .
the script is-#########################################################
#
# Simulate the electrical simulation response under dark
# and illuminated conditions.
#
# (c) Lumerical Solutions
#########################################################
Â
load("dark current simulation.Idev");
Â
Â
# reverse bias, light
switchtolayout;
setnamed('CHARGE::ogr','enabled',1);
select('CHARGE::boundary conditions::cathode');
set('bc mode','steady state');
set('sweep type','range');
set('range start',0);
set('range stop',-2);
set('range num points',1334);
run;
anode = getresult("CHARGE","anode");
Vrr = -flip(pinch(anode.V_cathode),1);
Irr = 2*flip(pinch(anode.I),1);
Â
# forward bias, light
switchtolayout;
setnamed('CHARGE::ogr','enabled',1);
select('CHARGE::boundary conditions::cathode');
set('bc mode','steady state');
set('sweep type','range');
set('range start',0);
set('range stop',2);
set('range num points',1334);
run;
anode = getresult("CHARGE","anode");
Vrf = -pinch(anode.V_cathode); Vrf = Vrf(2:length(Vrf));
Irf = pinch(anode.I); Irf = 2*Irf(2:length(Irf));
Â
plotxy([Vdr; Vdf], abs([Idr; Idf]),
[Vrr; Vrf], abs([Irr; Irf]),
"V (V)", "I (A)");
give me the solution on this -
January 10, 2025 at 8:16 am
Niki Papachristou
Ansys EmployeeHi Subscriber,
Thank you for reaching out to us! May I ask you which example from our online contents you are trying to run? If you are using it for one of your own built up simulations make sure that you are modifying it accordingly to accomodate your results.
Kind Regards,
Niki
-
- You must be logged in to reply to this topic.
-
3407
-
1057
-
1051
-
896
-
877
© 2025 Copyright ANSYS, Inc. All rights reserved.