DynamicGenerator
PowerSystems.DynamicGenerator — Typemutable struct DynamicGenerator{
M <: Machine,
S <: Shaft,
A <: AVR,
TG <: TurbineGov,
P <: PSS,
} <: DynamicInjection
name::String
ω_ref::Float64
machine::M
shaft::S
avr::A
prime_mover::TG
pss::P
base_power::Float64
n_states::Int
states::Vector{Symbol}
ext::Dict{String, Any}
internal::InfrastructureSystemsInternal
endA dynamic generator with the necessary data for modeling the dynamic response of a generator in a phasor or electromagnetic transient simulation.
Dynamic generator is composed by 5 components, namely a Machine, a Shaft, an Automatic Voltage Regulator (AVR), a Prime Mover and Turbine Governor, and Power System Stabilizer (PSS). It must be attached to a StaticInjection device using add_component!, which contains all the rest of the generator's data that isn't specific to its dynamic response.
Arguments
name::String: Name of the generatorω_ref::Float64: Frequency reference set-point in pumachine::Machine: Machine model for modeling the electro-magnetic phenomenashaft::Shaft: Shaft model for modeling the electro-mechanical phenomenaavr::AVR: AVR model of the excitation systemprime_mover::TurbineGov: Prime Mover and Turbine Governor model for mechanical powerpss::PSS: PSS modelbase_power::Float64: (default:100.0) Base power of the unit (MVA) for per unitization. In almost all cases, this should match thebase_powerof the attachedStaticInjectiondevicen_states::Int64: (Do not modify.) Number of states (will depend on the components above)states::Vector{Symbol}: (Do not modify.) Vector of states (will depend on the components above)ext::Dict{String, Any}: (default:Dict{String, Any}()) An extra dictionary for users to add metadata that are not used in simulationinternal::InfrastructureSystems.InfrastructureSystemsInternal: (Do not modify.) PowerSystems.jl internal reference
PowerSystems.get_avr — Methodget_avr(device::DynamicGenerator) -> AVR
Return the AVR component of a DynamicGenerator.
PowerSystems.get_frequency_droop — Methodget_frequency_droop(dyn_gen::DynamicGenerator) -> Any
Return the frequency droop parameter from the prime mover of a DynamicGenerator.
See also: get_frequency_droop
PowerSystems.get_machine — Methodget_machine(device::DynamicGenerator) -> Machine
Return the Machine component of a DynamicGenerator.
PowerSystems.get_prime_mover — Methodget_prime_mover(device::DynamicGenerator) -> TurbineGov
Return the TurbineGov (prime mover) component of a DynamicGenerator.
PowerSystems.get_pss — Methodget_pss(device::DynamicGenerator) -> PSS
Return the PSS component of a DynamicGenerator.
PowerSystems.get_shaft — Methodget_shaft(device::DynamicGenerator) -> Shaft
Return the Shaft component of a DynamicGenerator.