Source
PowerSystems.Source
— Typemutable struct Source <: StaticInjection
name::String
available::Bool
bus::Bus
active_power::Float64
reactive_power::Float64
R_th::Float64
X_th::Float64
internal_voltage::Float64
internal_angle::Float64
dynamic_injector::Union{Nothing, DynamicInjection}
services::Vector{Service}
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
end
This struct acts as an infinity bus.
Arguments
name::String
available::Bool
bus::Bus
active_power::Float64
reactive_power::Float64
R_th::Float64
: Source Thevenin resistance, validation range:(0, nothing)
X_th::Float64
: Source Thevenin reactance, validation range:(0, nothing)
internal_voltage::Float64
: Internal Voltage, validation range:(0, nothing)
internal_angle::Float64
: Internal Angledynamic_injector::Union{Nothing, DynamicInjection}
: corresponding dynamic injection deviceservices::Vector{Service}
: Services that this device contributes toext::Dict{String, Any}
internal::InfrastructureSystemsInternal
: power system internal reference, do not modify
InfrastructureSystems.get_name
— Methodget_name(value::Source) -> String
Get Source
name
.
InfrastructureSystems.set_name!
— Methodset_name!(value::Source, val) -> Any
Set 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_bus
— Methodget_bus(value::Source) -> Bus
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_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
.