-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1014 from NREL-Sienna/rh/add_currentlims_to_psy3
Add current lims to psy3
- Loading branch information
Showing
10 changed files
with
336 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#= | ||
This file is auto-generated. Do not edit. | ||
=# | ||
|
||
#! format: off | ||
|
||
""" | ||
mutable struct InstantaneousCurrentLimiter <: InverterLimiter | ||
Id_max::Float64 | ||
Iq_max::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
Parameters of Instantaneous (Square) Current Controller Limiter | ||
# Arguments | ||
- `Id_max::Float64`: Maximum limit on d-axis current controller input current (device base), validation range: `(0, nothing)` | ||
- `Iq_max::Float64`: Maximum limit on d-axis current controller input current (device base), validation range: `(0, nothing)` | ||
- `ext::Dict{String, Any}` | ||
""" | ||
mutable struct InstantaneousCurrentLimiter <: InverterLimiter | ||
"Maximum limit on d-axis current controller input current (device base)" | ||
Id_max::Float64 | ||
"Maximum limit on d-axis current controller input current (device base)" | ||
Iq_max::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
|
||
|
||
function InstantaneousCurrentLimiter(; Id_max, Iq_max, ext=Dict{String, Any}(), ) | ||
InstantaneousCurrentLimiter(Id_max, Iq_max, ext, ) | ||
end | ||
|
||
# Constructor for demo purposes; non-functional. | ||
function InstantaneousCurrentLimiter(::Nothing) | ||
InstantaneousCurrentLimiter(; | ||
Id_max=0, | ||
Iq_max=0, | ||
ext=Dict{String, Any}(), | ||
) | ||
end | ||
|
||
"""Get [`InstantaneousCurrentLimiter`](@ref) `Id_max`.""" | ||
get_Id_max(value::InstantaneousCurrentLimiter) = value.Id_max | ||
"""Get [`InstantaneousCurrentLimiter`](@ref) `Iq_max`.""" | ||
get_Iq_max(value::InstantaneousCurrentLimiter) = value.Iq_max | ||
"""Get [`InstantaneousCurrentLimiter`](@ref) `ext`.""" | ||
get_ext(value::InstantaneousCurrentLimiter) = value.ext | ||
|
||
"""Set [`InstantaneousCurrentLimiter`](@ref) `Id_max`.""" | ||
set_Id_max!(value::InstantaneousCurrentLimiter, val) = value.Id_max = val | ||
"""Set [`InstantaneousCurrentLimiter`](@ref) `Iq_max`.""" | ||
set_Iq_max!(value::InstantaneousCurrentLimiter, val) = value.Iq_max = val | ||
"""Set [`InstantaneousCurrentLimiter`](@ref) `ext`.""" | ||
set_ext!(value::InstantaneousCurrentLimiter, val) = value.ext = val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#= | ||
This file is auto-generated. Do not edit. | ||
=# | ||
|
||
#! format: off | ||
|
||
""" | ||
mutable struct MagnitudeCurrentLimiter <: InverterLimiter | ||
I_max::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
Parameters of Magnitude (Circular) Current Controller Limiter | ||
# Arguments | ||
- `I_max::Float64`: Maximum limit on current controller input current (device base), validation range: `(0, nothing)` | ||
- `ext::Dict{String, Any}` | ||
""" | ||
mutable struct MagnitudeCurrentLimiter <: InverterLimiter | ||
"Maximum limit on current controller input current (device base)" | ||
I_max::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
|
||
|
||
function MagnitudeCurrentLimiter(; I_max, ext=Dict{String, Any}(), ) | ||
MagnitudeCurrentLimiter(I_max, ext, ) | ||
end | ||
|
||
# Constructor for demo purposes; non-functional. | ||
function MagnitudeCurrentLimiter(::Nothing) | ||
MagnitudeCurrentLimiter(; | ||
I_max=0, | ||
ext=Dict{String, Any}(), | ||
) | ||
end | ||
|
||
"""Get [`MagnitudeCurrentLimiter`](@ref) `I_max`.""" | ||
get_I_max(value::MagnitudeCurrentLimiter) = value.I_max | ||
"""Get [`MagnitudeCurrentLimiter`](@ref) `ext`.""" | ||
get_ext(value::MagnitudeCurrentLimiter) = value.ext | ||
|
||
"""Set [`MagnitudeCurrentLimiter`](@ref) `I_max`.""" | ||
set_I_max!(value::MagnitudeCurrentLimiter, val) = value.I_max = val | ||
"""Set [`MagnitudeCurrentLimiter`](@ref) `ext`.""" | ||
set_ext!(value::MagnitudeCurrentLimiter, val) = value.ext = val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#= | ||
This file is auto-generated. Do not edit. | ||
=# | ||
|
||
#! format: off | ||
|
||
""" | ||
mutable struct PriorityCurrentLimiter <: InverterLimiter | ||
I_max::Float64 | ||
ϕ_I::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
Parameters of Priority-Based Current Controller Limiter | ||
# Arguments | ||
- `I_max::Float64`: Maximum limit on current controller input current (device base), validation range: `(0, nothing)` | ||
- `ϕ_I::Float64`: Pre-defined angle (measured against the d-axis) for Iref once limit is hit, validation range: `(-1.571, 1.571)` | ||
- `ext::Dict{String, Any}` | ||
""" | ||
mutable struct PriorityCurrentLimiter <: InverterLimiter | ||
"Maximum limit on current controller input current (device base)" | ||
I_max::Float64 | ||
"Pre-defined angle (measured against the d-axis) for Iref once limit is hit" | ||
ϕ_I::Float64 | ||
ext::Dict{String, Any} | ||
end | ||
|
||
|
||
function PriorityCurrentLimiter(; I_max, ϕ_I, ext=Dict{String, Any}(), ) | ||
PriorityCurrentLimiter(I_max, ϕ_I, ext, ) | ||
end | ||
|
||
# Constructor for demo purposes; non-functional. | ||
function PriorityCurrentLimiter(::Nothing) | ||
PriorityCurrentLimiter(; | ||
I_max=0, | ||
ϕ_I=0, | ||
ext=Dict{String, Any}(), | ||
) | ||
end | ||
|
||
"""Get [`PriorityCurrentLimiter`](@ref) `I_max`.""" | ||
get_I_max(value::PriorityCurrentLimiter) = value.I_max | ||
"""Get [`PriorityCurrentLimiter`](@ref) `ϕ_I`.""" | ||
get_ϕ_I(value::PriorityCurrentLimiter) = value.ϕ_I | ||
"""Get [`PriorityCurrentLimiter`](@ref) `ext`.""" | ||
get_ext(value::PriorityCurrentLimiter) = value.ext | ||
|
||
"""Set [`PriorityCurrentLimiter`](@ref) `I_max`.""" | ||
set_I_max!(value::PriorityCurrentLimiter, val) = value.I_max = val | ||
"""Set [`PriorityCurrentLimiter`](@ref) `ϕ_I`.""" | ||
set_ϕ_I!(value::PriorityCurrentLimiter, val) = value.ϕ_I = val | ||
"""Set [`PriorityCurrentLimiter`](@ref) `ext`.""" | ||
set_ext!(value::PriorityCurrentLimiter, val) = value.ext = val |
Oops, something went wrong.