DiscreteControlledACBranch
PowerSystems.DiscreteControlledACBranch
— Typemutable struct DiscreteControlledACBranch <: ACTransmission
name::String
available::Bool
active_power_flow::Float64
reactive_power_flow::Float64
arc::Arc
r::Float64
x::Float64
rating::Float64
discrete_branch_type::DiscreteControlledBranchType
branch_status::DiscreteControlledBranchStatus
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
end
Used to represent switches and breakers connecting AC Buses
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.,PowerLoad
andACBus
) 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
: AnArc
defining this linefrom
a busto
another busr::Float64
: Resistance in pu (SYSTEM_BASE
), validation range:(0, 4)
x::Float64
: Reactance in pu (SYSTEM_BASE
), validation range:(0, 4)
rating::Float64
: Thermal rating (MVA). Flow on the branch must be between -rating
andrating
. When defining a line before it is attached to aSystem
,rating
must be in pu (SYSTEM_BASE
) using the base power of theSystem
it will be attached todiscrete_branch_type::DiscreteControlledBranchType
: (default:DiscreteControlledBranchType.OTHER
) Type of discrete controlbranch_status::DiscreteControlledBranchStatus
: (default:DiscreteControlledBranchStatus.CLOSED
) Open or Close statusext::Dict{String, Any}
: (default:Dict{String, Any}()
) An extra dictionary for users to add metadata that are not used in simulation.internal::InfrastructureSystemsInternal
: (Do not modify.) PowerSystems.jl internal reference
InfrastructureSystems.get_name
— Methodget_name(value::DiscreteControlledACBranch) -> String
Get DiscreteControlledACBranch
name
.
PowerSystems.get_active_power_flow
— Methodget_active_power_flow(
value::DiscreteControlledACBranch
) -> Any
Get DiscreteControlledACBranch
active_power_flow
.
PowerSystems.get_arc
— Methodget_arc(value::DiscreteControlledACBranch) -> Arc
Get DiscreteControlledACBranch
arc
.
PowerSystems.get_available
— Methodget_available(value::DiscreteControlledACBranch) -> Bool
Get DiscreteControlledACBranch
available
.
PowerSystems.get_branch_status
— Methodget_branch_status(
value::DiscreteControlledACBranch
) -> DiscreteControlledBranchStatus
Get DiscreteControlledACBranch
branch_status
.
PowerSystems.get_discrete_branch_type
— Methodget_discrete_branch_type(
value::DiscreteControlledACBranch
) -> DiscreteControlledBranchType
Get DiscreteControlledACBranch
discrete_branch_type
.
PowerSystems.get_ext
— Methodget_ext(
value::DiscreteControlledACBranch
) -> Dict{String, Any}
Get DiscreteControlledACBranch
ext
.
PowerSystems.get_r
— Methodget_r(value::DiscreteControlledACBranch) -> Float64
Get DiscreteControlledACBranch
r
.
PowerSystems.get_rating
— Methodget_rating(value::DiscreteControlledACBranch) -> Any
Get DiscreteControlledACBranch
rating
.
PowerSystems.get_reactive_power_flow
— Methodget_reactive_power_flow(
value::DiscreteControlledACBranch
) -> Any
Get DiscreteControlledACBranch
reactive_power_flow
.
PowerSystems.get_x
— Methodget_x(value::DiscreteControlledACBranch) -> Float64
Get DiscreteControlledACBranch
x
.
PowerSystems.set_active_power_flow!
— Methodset_active_power_flow!(
value::DiscreteControlledACBranch,
val
) -> Any
Set DiscreteControlledACBranch
active_power_flow
.
PowerSystems.set_arc!
— Methodset_arc!(value::DiscreteControlledACBranch, val) -> Any
Set DiscreteControlledACBranch
arc
.
PowerSystems.set_available!
— Methodset_available!(
value::DiscreteControlledACBranch,
val
) -> Any
Set DiscreteControlledACBranch
available
.
PowerSystems.set_branch_status!
— Methodset_branch_status!(
value::DiscreteControlledACBranch,
val
) -> Any
Set DiscreteControlledACBranch
branch_status
.
PowerSystems.set_discrete_branch_type!
— Methodset_discrete_branch_type!(
value::DiscreteControlledACBranch,
val
) -> Any
Set DiscreteControlledACBranch
discrete_branch_type
.
PowerSystems.set_ext!
— Methodset_ext!(value::DiscreteControlledACBranch, val) -> Any
Set DiscreteControlledACBranch
ext
.
PowerSystems.set_r!
— Methodset_r!(value::DiscreteControlledACBranch, val) -> Any
Set DiscreteControlledACBranch
r
.
PowerSystems.set_rating!
— Methodset_rating!(value::DiscreteControlledACBranch, val) -> Any
Set DiscreteControlledACBranch
rating
.
PowerSystems.set_reactive_power_flow!
— Methodset_reactive_power_flow!(
value::DiscreteControlledACBranch,
val
) -> Any
Set DiscreteControlledACBranch
reactive_power_flow
.
PowerSystems.set_x!
— Methodset_x!(value::DiscreteControlledACBranch, val) -> Any
Set DiscreteControlledACBranch
x
.