roseau.load_flow.models.core#

Module Contents#

Classes#

Element

An abstract class of an element in an Electrical network.

class Element(id: Id)#

Bases: abc.ABC, roseau.load_flow.utils.Identifiable, roseau.load_flow.utils.JsonMixin

An abstract class of an element in an Electrical network.

Element constructor.

Parameters:

id – A unique ID of the element in the network. Two elements of the same type cannot have the same ID.

property network: ElectricalNetwork | None#

Return the network the element belong to (if any).

allowed_phases: ClassVar[frozenset[str]]#

The allowed phases for this element type.

It is a frozen set of strings like "abc" or "an" etc. The order of the phases is important. For a full list of supported phases, use print(<Element class>.allowed_phases).