EIG.sweep#
- EIG.sweep(params, idxes, values)[source]#
Parameter sweep for root loci plot.
- Parameters:
- paramslist of NumParam or ConstService
list of parameters indices to sweep. For example,
[ss.GENCLS.M]
for GENCLS.M. To updatess.GENCLS.M
for two generators,params
should be set to[ss.GENCLS.M, ss.GENCLS.M]
.- idxeslist of int or str
list of indices to sweep. For example,
["GENCLS_1", "GENCLS_2"]
for the indices of GENCLS whose corresponding parameter will be updated. The length ofidxes
must match that ofparams
andvalues
.- values: list of lists
New values of the parameters. Each element in
values
is a list for the corresponding element inparams
andidxes
.
- Returns:
- dict
A dictionary of the results where the keys are 0-indexed count of parameter set, and the values are dictionaries. Each value dictionary contains a
mu
field for the eigenvalues.
Examples
To apply 10 parameters evenly spaced between 1 and 10 to
ss.GENCLS.M
ofGENCLS_1
, doret = ss.EIG.sweep(ss.GENCLS.M, "GENCLS_1", np.linspace(1, 2, 10))
This is equivalent to the following just for convenience.
ret = ss.EIG.sweep([ss.GENCLS.M], ["GENCLS_1"], [np.linspace(1, 2, 10)])