Bus struct
#include <gtopt/bus.hpp>
Electrical busbar (node) in the power network.
Represents a busbar in power system analysis with electrical properties and operational status. In DC power flow (Kirchhoff) mode a voltage-angle variable θ is created for every bus; the reference bus is fixed at θ = 0.
Public functions
- auto needs_kirchhoff(const double v_threshold) const -> constexpr bool
- Determines if Kirchhoff's law should be applied.
Public variables
- OptActive active
- Operational status (default: active)
- Name name
- Human-readable name.
- OptReal reference_theta
- Fixed voltage angle for reference bus [rad].
- OptName type
- Optional bus type tag (e.g. "pq", "pv", "slack")
- Uid uid
- Unique identifier.
- OptBool use_kirchhoff
- Override global Kirchhoff setting for this bus.
- OptReal voltage
Function documentation
constexpr bool gtopt:: Bus:: needs_kirchhoff(const double v_threshold) const
Determines if Kirchhoff's law should be applied.
| Parameters | |
|---|---|
| v_threshold | Minimum voltage threshold for application |
| Returns | true if Kirchhoff's law should be applied |