Source
PowerSystems.Source
— Typemutable struct Source <: StaticInjection
name::String
available::Bool
bus::ACBus
active_power::Float64
reactive_power::Float64
R_th::Float64
X_th::Float64
internal_voltage::Float64
internal_angle::Float64
base_power::Float64
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
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
: 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
: Initial reactive power set point of the unit (MVAR)R_th::Float64
: Source Thevenin resistance, validation range:(0, nothing)
X_th::Float64
: Source Thevenin reactance, 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 MVAdynamic_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, such as latitude and longitude.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) -> Float64
Get Source
active_power
.
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_reactive_power
— Methodget_reactive_power(value::Source) -> Float64
Get Source
reactive_power
.
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_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_reactive_power!
— Methodset_reactive_power!(value::Source, val) -> Any
Set Source
reactive_power
.
PowerSystems.set_services!
— Methodset_services!(value::Source, val) -> Any
Set Source
services
.