PeriodicVariableSource
PowerSystems.PeriodicVariableSource
— Typemutable struct PeriodicVariableSource <: DynamicInjection
name::String
R_th::Float64
X_th::Float64
internal_voltage_bias::Float64
internal_voltage_frequencies::Vector{Float64}
internal_voltage_coefficients::Vector{Tuple{Float64,Float64}}
internal_angle_bias::Float64
internal_angle_frequencies::Vector{Float64}
internal_angle_coefficients::Vector{Tuple{Float64,Float64}}
base_power::Float64
states::Vector{Symbol}
n_states::Int
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
end
This struct acts as an infinity bus with time varying phasor values magnitude and angle V(t) heta(t). Time varying functions are represented using fourier series
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 nameR_th::Float64
: Source Thevenin resistance, validation range:(0, nothing)
X_th::Float64
: Source Thevenin reactance, validation range:(0, nothing)
internal_voltage_bias::Float64
: (default:0.0
) a0 term of the Fourier Series for the voltageinternal_voltage_frequencies::Vector{Float64}
: (default:[0.0]
) Frequencies in radians/sinternal_voltage_coefficients::Vector{Tuple{Float64,Float64}}
: (default:[(0.0, 0.0)]
) Coefficients for terms n > 1. First component corresponds to sin and second component to cosinternal_angle_bias::Float64
: (default:0.0
) a0 term of the Fourier Series for the angleinternal_angle_frequencies::Vector{Float64}
: (default:[0.0]
) Frequencies in radians/sinternal_angle_coefficients::Vector{Tuple{Float64,Float64}}
: (default:[(0.0, 0.0)]
) Coefficients for terms n > 1. First component corresponds to sin and second component to cosbase_power::Float64
: (default:100.0
) Base power of the source (MVA) for per unitizationstates::Vector{Symbol}
: (Do not modify.) The states for time, voltage and anglen_states::Int
: (Do not modify.) PeriodicVariableSource has 2 statesext::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::PeriodicVariableSource) -> String
Get PeriodicVariableSource
name
.
PowerSystems.get_R_th
— Methodget_R_th(value::PeriodicVariableSource) -> Float64
Get PeriodicVariableSource
R_th
.
PowerSystems.get_X_th
— Methodget_X_th(value::PeriodicVariableSource) -> Float64
Get PeriodicVariableSource
X_th
.
PowerSystems.get_base_power
— Methodget_base_power(value::PeriodicVariableSource) -> Float64
Get PeriodicVariableSource
base_power
.
PowerSystems.get_ext
— Methodget_ext(value::PeriodicVariableSource) -> Dict{String, Any}
Get PeriodicVariableSource
ext
.
PowerSystems.get_internal_angle_bias
— Methodget_internal_angle_bias(
value::PeriodicVariableSource
) -> Float64
Get PeriodicVariableSource
internal_angle_bias
.
PowerSystems.get_internal_angle_coefficients
— Methodget_internal_angle_coefficients(
value::PeriodicVariableSource
) -> Vector{Tuple{Float64, Float64}}
Get PeriodicVariableSource
internal_angle_coefficients
.
PowerSystems.get_internal_angle_frequencies
— Methodget_internal_angle_frequencies(
value::PeriodicVariableSource
) -> Vector{Float64}
Get PeriodicVariableSource
internal_angle_frequencies
.
PowerSystems.get_internal_voltage_bias
— Methodget_internal_voltage_bias(
value::PeriodicVariableSource
) -> Float64
Get PeriodicVariableSource
internal_voltage_bias
.
PowerSystems.get_internal_voltage_coefficients
— Methodget_internal_voltage_coefficients(
value::PeriodicVariableSource
) -> Vector{Tuple{Float64, Float64}}
Get PeriodicVariableSource
internal_voltage_coefficients
.
PowerSystems.get_internal_voltage_frequencies
— Methodget_internal_voltage_frequencies(
value::PeriodicVariableSource
) -> Vector{Float64}
Get PeriodicVariableSource
internal_voltage_frequencies
.
PowerSystems.get_n_states
— Methodget_n_states(value::PeriodicVariableSource) -> Int64
Get PeriodicVariableSource
n_states
.
PowerSystems.get_states
— Methodget_states(value::PeriodicVariableSource) -> Vector{Symbol}
Get PeriodicVariableSource
states
.
PowerSystems.set_R_th!
— Methodset_R_th!(value::PeriodicVariableSource, val) -> Any
Set PeriodicVariableSource
R_th
.
PowerSystems.set_X_th!
— Methodset_X_th!(value::PeriodicVariableSource, val) -> Any
Set PeriodicVariableSource
X_th
.
PowerSystems.set_base_power!
— Methodset_base_power!(value::PeriodicVariableSource, val) -> Any
Set PeriodicVariableSource
base_power
.
PowerSystems.set_ext!
— Methodset_ext!(value::PeriodicVariableSource, val) -> Any
Set PeriodicVariableSource
ext
.
PowerSystems.set_internal_angle_bias!
— Methodset_internal_angle_bias!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_angle_bias
.
PowerSystems.set_internal_angle_coefficients!
— Methodset_internal_angle_coefficients!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_angle_coefficients
.
PowerSystems.set_internal_angle_frequencies!
— Methodset_internal_angle_frequencies!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_angle_frequencies
.
PowerSystems.set_internal_voltage_bias!
— Methodset_internal_voltage_bias!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_voltage_bias
.
PowerSystems.set_internal_voltage_coefficients!
— Methodset_internal_voltage_coefficients!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_voltage_coefficients
.
PowerSystems.set_internal_voltage_frequencies!
— Methodset_internal_voltage_frequencies!(
value::PeriodicVariableSource,
val
) -> Any
Set PeriodicVariableSource
internal_voltage_frequencies
.