SwitchedAdmittance
PowerSystems.SwitchedAdmittance — Typemutable struct SwitchedAdmittance <: ElectricLoad
name::String
available::Bool
bus::ACBus
Y::Complex{Float64}
initial_status::Vector{Int}
number_of_steps::Vector{Int}
Y_increase::Vector{Complex{Float64}}
admittance_limits::MinMax
dynamic_injector::Union{Nothing, DynamicInjection}
services::Vector{Service}
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
endA switched admittance, with discrete steps to adjust the admittance.
Most often used in power flow studies, iterating over the steps to see impacts of admittance on the results. Total admittance is calculated as: Y + number_of_steps * Y_increase
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 simulationsbus::ACBus: Bus that this component is connected toY::Complex{Float64}: Initial admittance at N = 0initial_status::Vector{Int}: (default:Int[]) Vector of initial switched shunt status, one for in-service and zero for out-of-service for block i (1 through 8)number_of_steps::Vector{Int}: (default:Int[]) Vector with number of steps for each adjustable shunt block. For example,number_of_steps[2]are the number of available steps for admittance increment at block 2.Y_increase::Vector{Complex{Float64}}: (default:Complex{Float64}[]) Vector with admittance increment step for each adjustable shunt block. For example,Y_increase[2]is the complex admittance increment for each step at block 2.admittance_limits::MinMax: (default:(min=1.0, max=1.0)) Shunt admittance limits for switched shunt modeldynamic_injector::Union{Nothing, DynamicInjection}: (default:nothing) corresponding dynamic injection model for admittanceservices::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.internal::InfrastructureSystemsInternal: (Do not modify.) PowerSystems.jl internal reference
InfrastructureSystems.get_available — Methodget_available(value::SwitchedAdmittance) -> Bool
Get SwitchedAdmittance available.
InfrastructureSystems.get_name — Methodget_name(value::SwitchedAdmittance) -> String
Get SwitchedAdmittance name.
InfrastructureSystems.set_available! — Methodset_available!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance available.
PowerSystems.get_Y — Methodget_Y(value::SwitchedAdmittance) -> ComplexF64
Get SwitchedAdmittance Y.
PowerSystems.get_Y_increase — Methodget_Y_increase(
value::SwitchedAdmittance
) -> Vector{ComplexF64}
Get SwitchedAdmittance Y_increase.
PowerSystems.get_admittance_limits — Methodget_admittance_limits(
value::SwitchedAdmittance
) -> @NamedTuple{min::Float64, max::Float64}
Get SwitchedAdmittance admittance_limits.
PowerSystems.get_bus — Methodget_bus(value::SwitchedAdmittance) -> ACBus
Get SwitchedAdmittance bus.
PowerSystems.get_dynamic_injector — Methodget_dynamic_injector(
value::SwitchedAdmittance
) -> Union{Nothing, DynamicInjection}
Get SwitchedAdmittance dynamic_injector.
PowerSystems.get_ext — Methodget_ext(value::SwitchedAdmittance) -> Dict{String, Any}
Get SwitchedAdmittance ext.
PowerSystems.get_initial_status — Methodget_initial_status(
value::SwitchedAdmittance
) -> Vector{Int64}
Get SwitchedAdmittance initial_status.
PowerSystems.get_number_of_steps — Methodget_number_of_steps(
value::SwitchedAdmittance
) -> Vector{Int64}
Get SwitchedAdmittance number_of_steps.
PowerSystems.get_services — Methodget_services(value::SwitchedAdmittance) -> Vector{Service}
Get SwitchedAdmittance services.
PowerSystems.set_Y! — Methodset_Y!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance Y.
PowerSystems.set_Y_increase! — Methodset_Y_increase!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance Y_increase.
PowerSystems.set_admittance_limits! — Methodset_admittance_limits!(
value::SwitchedAdmittance,
val
) -> Any
Set SwitchedAdmittance admittance_limits.
PowerSystems.set_bus! — Methodset_bus!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance bus.
PowerSystems.set_ext! — Methodset_ext!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance ext.
PowerSystems.set_initial_status! — Methodset_initial_status!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance initial_status.
PowerSystems.set_number_of_steps! — Methodset_number_of_steps!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance number_of_steps.
PowerSystems.set_services! — Methodset_services!(value::SwitchedAdmittance, val) -> Any
Set SwitchedAdmittance services.