Line
PowerSystems.Line — Typemutable struct Line <: ACBranch
name::String
available::Bool
active_power_flow::Float64
reactive_power_flow::Float64
arc::Arc
r::Float64
x::Float64
b::FromTo
rating::Float64
angle_limits::MinMax
g::FromTo
services::Vector{Service}
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
endAn AC transmission line
Arguments
name::String: Name of the component. Components of the same type (e.g.,PowerLoad) must have unique names, but components of different types (e.g.,PowerLoadandACBus) can have the same nameavailable::Bool: Indicator of whether the component is connected and online (true) or disconnected, offline, or down (false). Unavailable components are excluded during simulationsactive_power_flow::Float64: Initial condition of active power flow on the line (MW)reactive_power_flow::Float64: Initial condition of reactive power flow on the line (MVAR)arc::Arc: AnArcdefining this linefroma bustoanother busr::Float64: Resistance in pu (SYSTEM_BASE), validation range:(0, 4)x::Float64: Reactance in pu (SYSTEM_BASE), validation range:(0, 4)b::FromTo: Shunt susceptance in pu (SYSTEM_BASE), specified both on thefromandtoends of the line. These are commonly modeled with the same value, validation range:(0, 100)rating::Float64: Thermal rating (MVA). Flow on the line must be between -ratingandrating. When defining a line before it is attached to aSystem,ratingmust be in pu (SYSTEM_BASE) using the base power of theSystemit will be attached toangle_limits::MinMax: Minimum and maximum angle limits (radians), validation range:(-1.571, 1.571)g::FromTo: (default:(from=0.0, to=0.0)) Shunt conductance in pu (SYSTEM_BASE), specified both on thefromandtoends of the line. These are commonly modeled with the same value, validation range:(0, 100)services::Vector{Service}: (default:Device[]) Services that this device contributes toext::Dict{String, Any}: (default:Dict{String, Any}()) An extra dictionary for users to add metadata that are not used in simulation, such as latitude and longitude.internal::InfrastructureSystemsInternal: (Do not modify.) PowerSystems.jl internal reference
InfrastructureSystems.get_name — Methodget_name(value::Line) -> String
Get Line name.
PowerSystems.get_active_power_flow — Methodget_active_power_flow(value::Line) -> Any
Get Line active_power_flow.
PowerSystems.get_angle_limits — Methodget_angle_limits(
value::Line
) -> @NamedTuple{min::Float64, max::Float64}
Get Line angle_limits.
PowerSystems.get_arc — Methodget_arc(value::Line) -> Arc
Get Line arc.
PowerSystems.get_available — Methodget_available(value::Line) -> Bool
Get Line available.
PowerSystems.get_b — Methodget_b(
value::Line
) -> @NamedTuple{from::Float64, to::Float64}
Get Line b.
PowerSystems.get_ext — Methodget_ext(value::Line) -> Dict{String, Any}
Get Line ext.
PowerSystems.get_g — Methodget_g(
value::Line
) -> @NamedTuple{from::Float64, to::Float64}
Get Line g.
PowerSystems.get_r — Methodget_r(value::Line) -> Float64
Get Line r.
PowerSystems.get_rating — Methodget_rating(value::Line) -> Any
Get Line rating.
PowerSystems.get_reactive_power_flow — Methodget_reactive_power_flow(value::Line) -> Any
Get Line reactive_power_flow.
PowerSystems.get_services — Methodget_services(value::Line) -> Vector{Service}
Get Line services.
PowerSystems.get_x — Methodget_x(value::Line) -> Float64
Get Line x.
PowerSystems.set_active_power_flow! — Methodset_active_power_flow!(value::Line, val) -> Any
Set Line active_power_flow.
PowerSystems.set_angle_limits! — Methodset_angle_limits!(value::Line, val) -> Any
Set Line angle_limits.
PowerSystems.set_arc! — Methodset_arc!(value::Line, val) -> Any
Set Line arc.
PowerSystems.set_available! — Methodset_available!(value::Line, val) -> Any
Set Line available.
PowerSystems.set_b! — Methodset_b!(value::Line, val) -> Any
Set Line b.
PowerSystems.set_ext! — Methodset_ext!(value::Line, val) -> Any
Set Line ext.
PowerSystems.set_g! — Methodset_g!(value::Line, val) -> Any
Set Line g.
PowerSystems.set_r! — Methodset_r!(value::Line, val) -> Any
Set Line r.
PowerSystems.set_rating! — Methodset_rating!(value::Line, val) -> Any
Set Line rating.
PowerSystems.set_reactive_power_flow! — Methodset_reactive_power_flow!(value::Line, val) -> Any
Set Line reactive_power_flow.
PowerSystems.set_services! — Methodset_services!(value::Line, val) -> Any
Set Line services.
PowerSystems.set_x! — Methodset_x!(value::Line, val) -> Any
Set Line x.