Script command to choose the solver for sweeps in DEVICE

script
parametersweep
sweep
scriptcommand
feem

#1

Hi,

with the new release of DEVICE (2018b R1), it is now possible to perform sweeps in different solvers. An option has been added in the GUI so we can choose the solver in which the sweep is performed:

However, it seems like there is no script command to do this operation. The command ?setsweep; only has the usual properties (name, type, number of points, resave files after analysis) but no “solver”. How is it possible to choose the solver using script?

Thanks


#2

Hi @simon.belanger

You are right, it looks like the Solver option is missing in the setsweep script command. I have requested it to be added in the next releases.

Thanks


#5

Hi @simon.belanger

You cannot set the sweep type from script commands, but here is how to set the sweep type from scripts:

newproject;
addchargesolver;
adddgtdsolver;

addsweep(0);
setsweep("sweep","name","chargeSweep");
chargeResult = struct;
chargeResult.Name = "chargeResult";
chargeResult.Result = "::model::CHARGE::charge.n";
addsweepresult("chargeSweep", chargeResult);

addsweep(0);
setsweep("sweep","name","dgtdSweep");
dgtdResult = struct;
dgtdResult.Name = "dgtdResult";
dgtdResult.Result = "::model::DGTD::energy";
addsweepresult("dgtdSweep", dgtdResult);

# CHARGE is selected solver in editor of chargeSweep
# DGTD is selected solver in editor of dgtdSweep

closed #6

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.