andes.core.var.AliasAlgeb#

class andes.core.var.AliasAlgeb(var, **kwargs)[source]#

Alias algebraic variable. Essentially ExtAlgeb that links to a a model's own variable.

AliasAlgeb is useful when the final output of a model is from a block, but the model must provide the final output in a pre-defined name. Using AliasAlgeb, A model can avoid adding an additional variable with a dummy equations.

Like ExtVar, labels of AliasAlgeb will not be saved in the final output. When plotting from file, one need to look up the original variable name.

__init__(var, **kwargs)[source]#

Methods

get_names()

link_external(ext_model)

Update variable addresses provided by external models

reset()

Reset the internal numpy arrays and flags.

set_address(addr[, contiguous])

Assigns address for equation RHS.

set_arrays(dae[, inplace, alloc])

Access dae.h or dae.i for the RHS of external variables when e_str exists..

Attributes