roseau.load_flow.models.potential_refs
#
Module Contents#
Classes#
A potential reference. |
- class PotentialRef(id: Id, element: Bus | Ground, *, phase: str | None = None)#
Bases:
roseau.load_flow.models.core.Element
A potential reference.
This element will set the reference of the potentials in a network. Only one potential reference per galvanically isolated section of the network can be set. The potential reference can be set on any bus or ground elements. If set on a bus with no neutral and without specifying the phase, the reference will be set as
Va + Vb + Vc = 0
. For other buses, the default isVn = 0
.PotentialRef constructor.
- Parameters:
id – A unique ID of the potential reference in the network references.
element – The bus or ground element to set as a potential reference.
phase – The phase of the bus to set as a potential reference. Cannot be used with a ground. If the element passed is a bus and the phase is not given, the neutral will be used if the bus has a neutral otherwise the equation
Va + Vb + Vc = 0
of the bus sets the potential reference.
- property res_current: Q_[complex]#
The sum of the currents (A) of the connection associated to the potential reference.
This sum should be equal to 0 after the load flow.
- classmethod from_dict(data: JsonDict, *, include_results: bool = True) typing_extensions.Self #
Create an element from a dictionary created with
to_dict()
.Note
This method does not work on all classes that define it as some of them require additional information to be constructed. It can only be safely used on the ElectricNetwork, LineParameters and TransformerParameters classes.
- Parameters:
data – The dictionary containing the element’s data.
include_results – If True (default) and the results of the load flow are included in the dictionary, the results are also loaded into the element.
- Returns:
The constructed element.