Source
PowerSystems.Source — Typemutable struct Source <: StaticInjection
name::String
available::Bool
bus::ACBus
active_power::Float64
reactive_power::Float64
active_power_limits::MinMax
reactive_power_limits::Union{Nothing, MinMax}
R_th::Float64
X_th::Float64
internal_voltage::Float64
internal_angle::Float64
base_power::Float64
operation_cost::ImportExportCost
dynamic_injector::Union{Nothing, DynamicInjection}
services::Vector{Service}
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
endAn infinite bus with a constant voltage output.
Commonly used in dynamics simulations to represent a very large machine on a single bus or for the representation of import/exports in operational simulations
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: TheACBusthat this component is connected toactive_power::Float64: (default:0.0) Initial active power set point of the unit in MW. For power flow, this is the steady state operating point of the system. For production cost modeling, this may or may not be used as the initial starting point for the solver, depending on the solver usedreactive_power::Float64: (default:0.0) Initial reactive power set point of the unit (MVAR)active_power_limits::MinMax: (default:(min=0.0, max=0.0)) Minimum and maximum stable active power levels (MW)reactive_power_limits::Union{Nothing, MinMax}: (default:(min=0.0, max=0.0)) Minimum and maximum reactive power limits. Set toNothingif not applicableR_th::Float64: (default:0.0) Source Thevenin resistance. See here:, validation range:(0, nothing)X_th::Float64: (default:0.0) Source Thevenin reactance. See here:, validation range:(0, nothing)internal_voltage::Float64: (default:1.0) Internal Voltage (pu), validation range:(0, nothing)internal_angle::Float64: (default:0.0) Internal Anglebase_power::Float64: (default:100.0) Base Power in MVAoperation_cost::ImportExportCost: (default:ImportExportCost(nothing))ImportExportCostof the source.dynamic_injector::Union{Nothing, DynamicInjection}: (default:nothing) corresponding dynamic injection deviceservices::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::Source) -> Bool
Get Sourceavailable.
InfrastructureSystems.get_name — Methodget_name(value::Source) -> String
Get Sourcename.
InfrastructureSystems.set_available! — Methodset_available!(value::Source, val) -> Any
Set Sourceavailable.
PowerSystems.get_R_th — Methodget_R_th(value::Source) -> Float64
Get SourceR_th.
PowerSystems.get_X_th — Methodget_X_th(value::Source) -> Float64
Get SourceX_th.
PowerSystems.get_active_power — Methodget_active_power(value::Source) -> Float64
Get Sourceactive_power.
PowerSystems.get_active_power_limits — Methodget_active_power_limits(
value::Source
) -> @NamedTuple{min::Float64, max::Float64}
Get Sourceactive_power_limits.
PowerSystems.get_base_power — Methodget_base_power(value::Source) -> Float64
Get Sourcebase_power.
PowerSystems.get_bus — Methodget_bus(value::Source) -> ACBus
Get Sourcebus.
PowerSystems.get_dynamic_injector — Methodget_dynamic_injector(
value::Source
) -> Union{Nothing, DynamicInjection}
Get Sourcedynamic_injector.
PowerSystems.get_ext — Methodget_ext(value::Source) -> Dict{String, Any}
Get Sourceext.
PowerSystems.get_internal_angle — Methodget_internal_angle(value::Source) -> Float64
Get Sourceinternal_angle.
PowerSystems.get_internal_voltage — Methodget_internal_voltage(value::Source) -> Float64
Get Sourceinternal_voltage.
PowerSystems.get_operation_cost — Methodget_operation_cost(value::Source) -> ImportExportCost
Get Sourceoperation_cost.
PowerSystems.get_reactive_power — Methodget_reactive_power(value::Source) -> Float64
Get Sourcereactive_power.
PowerSystems.get_reactive_power_limits — Methodget_reactive_power_limits(
value::Source
) -> Union{Nothing, @NamedTuple{min::Float64, max::Float64}}
Get Sourcereactive_power_limits.
PowerSystems.get_services — Methodget_services(value::Source) -> Vector{Service}
Get Sourceservices.
PowerSystems.set_R_th! — Methodset_R_th!(value::Source, val) -> Any
Set SourceR_th.
PowerSystems.set_X_th! — Methodset_X_th!(value::Source, val) -> Any
Set SourceX_th.
PowerSystems.set_active_power! — Methodset_active_power!(value::Source, val) -> Any
Set Sourceactive_power.
PowerSystems.set_active_power_limits! — Methodset_active_power_limits!(value::Source, val) -> Any
Set Sourceactive_power_limits.
PowerSystems.set_base_power! — Methodset_base_power!(value::Source, val) -> Any
Set Sourcebase_power.
PowerSystems.set_bus! — Methodset_bus!(value::Source, val) -> Any
Set Sourcebus.
PowerSystems.set_ext! — Methodset_ext!(value::Source, val) -> Any
Set Sourceext.
PowerSystems.set_internal_angle! — Methodset_internal_angle!(value::Source, val) -> Any
Set Sourceinternal_angle.
PowerSystems.set_internal_voltage! — Methodset_internal_voltage!(value::Source, val) -> Any
Set Sourceinternal_voltage.
PowerSystems.set_operation_cost! — Methodset_operation_cost!(value::Source, val) -> Any
Set Sourceoperation_cost.
PowerSystems.set_reactive_power! — Methodset_reactive_power!(value::Source, val) -> Any
Set Sourcereactive_power.
PowerSystems.set_reactive_power_limits! — Methodset_reactive_power_limits!(value::Source, val) -> Any
Set Sourcereactive_power_limits.
PowerSystems.set_services! — Methodset_services!(value::Source, val) -> Any
Set Sourceservices.