andes.core.discrete.ShuntAdjust#
- class andes.core.discrete.ShuntAdjust(*, v, lower, upper, bsw, gsw, dt, u, enable=True, min_iter=2, err_tol=0.01, name=None, tex_name=None, info=None, no_warn=False)[source]#
Class for adjusting switchable shunts.
- Parameters:
- vBaseVar
Voltage measurement
- lowerBaseParam
Lower voltage bound
- upperBaseParam
Upper voltage bound
- bswSwBlock
SwBlock instance for susceptance
- gswSwBlock
SwBlock instance for conductance
- dtNumParam
Delay time
- uNumParam
Connection status
- min_iterint
Minimum iteration number to enable shunt switching
- err_tolfloat
Minimum iteration tolerance to enable switching
- __init__(*, v, lower, upper, bsw, gsw, dt, u, enable=True, min_iter=2, err_tol=0.01, name=None, tex_name=None, info=None, no_warn=False)[source]#
Methods
check_eq(**kwargs)This function is called in
l_check_eqafter updating equations.check_iter_err([niter, err])Check if the minimum iteration or maximum error is reached so that this discrete block should be enabled.
check_var(dae_t, *args[, niter, err])Check voltage and perform shunt switching.
get_limit_report()Return a list of dicts describing variables clamped at limits.
get_names()Available symbols from this class
get_tex_names()Return tex_names of exported flags.
get_values()list2array(n)Allocate memory for the discrete flags specified in self.export_flags.
save_unconstrained()Save the input variable's unconstrained value (call after init pass 1).
Attributes
class_name