UNDER CONSTRUCTION

UNDER CONSTRUCTION

UNDER CONSTRUCTION

Smart electrical elements

These are electrical components typical to krangpower that enable the simulation of electrical circuit that include smart/algorithmic agents. These classes provide the facilities needed to integrate a fully custom and separate control logic into a Krang, allowing for easy and intuitive information exchange.

FourQ

class krangpower._smart_components.FourQ(**parameters)
aka(name)

Aliases the object.

define_dm(dm)
eltype
fcs(**hookup)

Generates the opendss “new…” command for the object. Needs to be passed an appropriate set of keyword arguments to fill whatever topologic parameters are needed. It’s meant primarily for internal use by krangpower itself.

fullname

Name, in the form eltype.elname

fus(oek, myname)
classmethod isabove()

Returns True if the class is an above-graph component, like a monitor or regulator, False otherwise.

classmethod isai()

Returns true if the class is ai-enabled, False otherwise.

classmethod isnamed()

Returns True if the class is a named entity, like a LineCode, False otherwise.

jsonize(all_params=False, flatten_mtx=True)

Returns a dict that describes the element’s parameters. It’s compatible with the json I/O functions.

paramhelp()

Prints a cheatsheet for the object’s parameters.

sf_deepcopy()

Returns a deep copy of the object. This method is to be used in place of the standard copy.deepcopy, that will raise an exception.

toe
update_pq(oek, mybus)