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
end
An 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.,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 simulationsbus::ACBus
: Bus that 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 toNothing
if 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)
)ImportExportCost
of 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_name
— Methodget_name(value::Source) -> String
Get Source
name
.
PowerSystems.get_R_th
— Methodget_R_th(value::Source) -> Float64
Get Source
R_th
.
PowerSystems.get_X_th
— Methodget_X_th(value::Source) -> Float64
Get Source
X_th
.
PowerSystems.get_active_power
— Methodget_active_power(value::Source) -> Any
Get Source
active_power
.
PowerSystems.get_active_power_limits
— Methodget_active_power_limits(
value::Source
) -> NamedTuple{(:min, :max), <:Tuple{Any, Any}}
Get Source
active_power_limits
.
PowerSystems.get_available
— Methodget_available(value::Source) -> Bool
Get Source
available
.
PowerSystems.get_base_power
— Methodget_base_power(value::Source) -> Float64
Get Source
base_power
.
PowerSystems.get_bus
— Methodget_bus(value::Source) -> ACBus
Get Source
bus
.
PowerSystems.get_dynamic_injector
— Methodget_dynamic_injector(
value::Source
) -> Union{Nothing, DynamicInjection}
Get Source
dynamic_injector
.
PowerSystems.get_ext
— Methodget_ext(value::Source) -> Dict{String, Any}
Get Source
ext
.
PowerSystems.get_internal_angle
— Methodget_internal_angle(value::Source) -> Float64
Get Source
internal_angle
.
PowerSystems.get_internal_voltage
— Methodget_internal_voltage(value::Source) -> Float64
Get Source
internal_voltage
.
PowerSystems.get_operation_cost
— Methodget_operation_cost(value::Source) -> ImportExportCost
Get Source
operation_cost
.
PowerSystems.get_reactive_power
— Methodget_reactive_power(value::Source) -> Any
Get Source
reactive_power
.
PowerSystems.get_reactive_power_limits
— Methodget_reactive_power_limits(
value::Source
) -> Union{Nothing, NamedTuple{(:min, :max), <:Tuple{Any, Any}}}
Get Source
reactive_power_limits
.
PowerSystems.get_services
— Methodget_services(value::Source) -> Vector{Service}
Get Source
services
.
PowerSystems.set_R_th!
— Methodset_R_th!(value::Source, val) -> Any
Set Source
R_th
.
PowerSystems.set_X_th!
— Methodset_X_th!(value::Source, val) -> Any
Set Source
X_th
.
PowerSystems.set_active_power!
— Methodset_active_power!(value::Source, val) -> Any
Set Source
active_power
.
PowerSystems.set_active_power_limits!
— Methodset_active_power_limits!(value::Source, val) -> Any
Set Source
active_power_limits
.
PowerSystems.set_available!
— Methodset_available!(value::Source, val) -> Any
Set Source
available
.
PowerSystems.set_base_power!
— Methodset_base_power!(value::Source, val) -> Any
Set Source
base_power
.
PowerSystems.set_bus!
— Methodset_bus!(value::Source, val) -> Any
Set Source
bus
.
PowerSystems.set_ext!
— Methodset_ext!(value::Source, val) -> Any
Set Source
ext
.
PowerSystems.set_internal_angle!
— Methodset_internal_angle!(value::Source, val) -> Any
Set Source
internal_angle
.
PowerSystems.set_internal_voltage!
— Methodset_internal_voltage!(value::Source, val) -> Any
Set Source
internal_voltage
.
PowerSystems.set_operation_cost!
— Methodset_operation_cost!(value::Source, val) -> Any
Set Source
operation_cost
.
PowerSystems.set_reactive_power!
— Methodset_reactive_power!(value::Source, val) -> Any
Set Source
reactive_power
.
PowerSystems.set_reactive_power_limits!
— Methodset_reactive_power_limits!(value::Source, val) -> Any
Set Source
reactive_power_limits
.
PowerSystems.set_services!
— Methodset_services!(value::Source, val) -> Any
Set Source
services
.