DCSource
FixedDCSource
PowerSystems.FixedDCSource
— Typemutable struct FixedDCSource <: DCSource
voltage::Float64
ext::Dict{String, Any}
states::Vector{Symbol}
n_states::Int
internal::InfrastructureSystemsInternal
end
Parameters of a Fixed DC Source that returns a fixed DC voltage
Arguments
voltage::Float64
: Voltage (V), validation range:(0, nothing)
ext::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.states::Vector{Symbol}
: (Do not modify.) FixedDCSource has no statesn_states::Int
: (Do not modify.) FixedDCSource has no statesinternal::InfrastructureSystemsInternal
: (Do not modify.) PowerSystems.jl internal reference
PowerSystems.get_ext
— Methodget_ext(value::FixedDCSource) -> Dict{String, Any}
Get FixedDCSource
ext
.
PowerSystems.get_n_states
— Methodget_n_states(value::FixedDCSource) -> Int64
Get FixedDCSource
n_states
.
PowerSystems.get_states
— Methodget_states(value::FixedDCSource) -> Vector{Symbol}
Get FixedDCSource
states
.
PowerSystems.get_voltage
— Methodget_voltage(value::FixedDCSource) -> Float64
Get FixedDCSource
voltage
.
PowerSystems.set_ext!
— Methodset_ext!(value::FixedDCSource, val) -> Any
Set FixedDCSource
ext
.
PowerSystems.set_voltage!
— Methodset_voltage!(value::FixedDCSource, val) -> Any
Set FixedDCSource
voltage
.
ZeroOrderBESS
PowerSystems.ZeroOrderBESS
— Typemutable struct ZeroOrderBESS <: DCSource
rated_voltage::Float64
rated_current::Float64
battery_voltage::Float64
battery_resistance::Float64
dc_dc_inductor::Float64
dc_link_capacitance::Float64
fs::Float64
kpv::Float64
kiv::Float64
kpi::Float64
kii::Float64
Vdc_ref::Float64
ext::Dict{String, Any}
states::Vector{Symbol}
n_states::Int
end
Parameters for the DC-side with a Battery Energy Storage System from "Grid-Coupled Dynamic Response of Battery-Driven Voltage Source Converters."
Arguments
rated_voltage::Float64
: Rated voltage (V), validation range:(0, nothing)
rated_current::Float64
: Rated current (A), validation range:(0, nothing)
battery_voltage::Float64
: battery voltage in pu (DEVICE_BASE
), validation range:(0, nothing)
battery_resistance::Float64
: Battery resistance in pu (DEVICE_BASE
), validation range:(0, nothing)
dc_dc_inductor::Float64
: DC/DC inductance in pu (DEVICE_BASE
), validation range:(0, nothing)
dc_link_capacitance::Float64
: DC-link capacitance in pu (DEVICE_BASE
), validation range:(0, nothing)
fs::Float64
: DC/DC converter switching frequency (kHz), validation range:(0, nothing)
kpv::Float64
: voltage controller proportional gain, validation range:(0, nothing)
kiv::Float64
: voltage controller integral gain, validation range:(0, nothing)
kpi::Float64
: current controller proportional gain, validation range:(0, nothing)
kii::Float64
: current controller integral gain, validation range:(0, nothing)
Vdc_ref::Float64
: (default:1.1
) Reference DC-Voltage Set-point in pu (DEVICE_BASE
), validation range:(0, nothing)
ext::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.states::Vector{Symbol}
: (Do not modify.) The states of the ZeroOrderBESS model are:
v_dc: DC-link voltage,
i_b: Battery current,
ν: integrator state of the voltage controller,
ζ: integrator state of the PI current controller
n_states::Int
: (Do not modify.) ZeroOrderBESS has 4 states
PowerSystems.get_Vdc_ref
— Methodget_Vdc_ref(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
Vdc_ref
.
PowerSystems.get_battery_resistance
— Methodget_battery_resistance(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
battery_resistance
.
PowerSystems.get_battery_voltage
— Methodget_battery_voltage(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
battery_voltage
.
PowerSystems.get_dc_dc_inductor
— Methodget_dc_dc_inductor(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
dc_dc_inductor
.
PowerSystems.get_dc_link_capacitance
— Methodget_dc_link_capacitance(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
dc_link_capacitance
.
PowerSystems.get_ext
— Methodget_ext(value::ZeroOrderBESS) -> Dict{String, Any}
Get ZeroOrderBESS
ext
.
PowerSystems.get_fs
— Methodget_fs(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
fs
.
PowerSystems.get_kii
— Methodget_kii(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
kii
.
PowerSystems.get_kiv
— Methodget_kiv(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
kiv
.
PowerSystems.get_kpi
— Methodget_kpi(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
kpi
.
PowerSystems.get_kpv
— Methodget_kpv(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
kpv
.
PowerSystems.get_n_states
— Methodget_n_states(value::ZeroOrderBESS) -> Int64
Get ZeroOrderBESS
n_states
.
PowerSystems.get_rated_current
— Methodget_rated_current(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
rated_current
.
PowerSystems.get_rated_voltage
— Methodget_rated_voltage(value::ZeroOrderBESS) -> Float64
Get ZeroOrderBESS
rated_voltage
.
PowerSystems.get_states
— Methodget_states(value::ZeroOrderBESS) -> Vector{Symbol}
Get ZeroOrderBESS
states
.
PowerSystems.set_Vdc_ref!
— Methodset_Vdc_ref!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
Vdc_ref
.
PowerSystems.set_battery_resistance!
— Methodset_battery_resistance!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
battery_resistance
.
PowerSystems.set_battery_voltage!
— Methodset_battery_voltage!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
battery_voltage
.
PowerSystems.set_dc_dc_inductor!
— Methodset_dc_dc_inductor!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
dc_dc_inductor
.
PowerSystems.set_dc_link_capacitance!
— Methodset_dc_link_capacitance!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
dc_link_capacitance
.
PowerSystems.set_ext!
— Methodset_ext!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
ext
.
PowerSystems.set_fs!
— Methodset_fs!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
fs
.
PowerSystems.set_kii!
— Methodset_kii!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
kii
.
PowerSystems.set_kiv!
— Methodset_kiv!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
kiv
.
PowerSystems.set_kpi!
— Methodset_kpi!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
kpi
.
PowerSystems.set_kpv!
— Methodset_kpv!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
kpv
.
PowerSystems.set_rated_current!
— Methodset_rated_current!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
rated_current
.
PowerSystems.set_rated_voltage!
— Methodset_rated_voltage!(value::ZeroOrderBESS, val) -> Any
Set ZeroOrderBESS
rated_voltage
.