Skip to content

Commit 940132e

Browse files
committed
add WPIDHY struct
1 parent 03af85d commit 940132e

File tree

6 files changed

+408
-2
lines changed

6 files changed

+408
-2
lines changed

src/PowerSystems.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ export SteamTurbineGov1
190190
export DEGOV
191191
export DEGOV1
192192
export PIDGOV
193+
export WPIDHY
193194

194195
# Converter Exports
195196
export Converter

src/descriptors/power_system_structs.json

Lines changed: 182 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12661,7 +12661,7 @@
1266112661
},
1266212662
{
1266312663
"struct_name": "PIDGOV",
12664-
"docstring": "Hydro Turbine-Governor with PID controller. The GeneralGovModel (GGOV1) model is a general purpose governor model used for a variety of prime movers controlled by proportional-integral-derivative (PID) governors including gas turbines",
12664+
"docstring": "Hydro Turbine-Governor with PID controller.",
1266512665
"fields": [
1266612666
{
1266712667
"name": "feedback_flag",
@@ -12856,6 +12856,187 @@
1285612856
],
1285712857
"supertype": "TurbineGov"
1285812858
},
12859+
{
12860+
"struct_name": "WPIDHY",
12861+
"docstring": "Woodward PID Hydro Governor",
12862+
"fields": [
12863+
{
12864+
"name": "T_reg",
12865+
"comment": "Input time constant of the governor in s",
12866+
"null_value": 0,
12867+
"data_type": "Float64",
12868+
"valid_range": {
12869+
"min": 0,
12870+
"max": null
12871+
},
12872+
"validation_action": "warn"
12873+
},
12874+
{
12875+
"name": "reg",
12876+
"comment": "Input governor gain",
12877+
"null_value": 0,
12878+
"data_type": "Float64",
12879+
"valid_range": {
12880+
"min": 0,
12881+
"max": null
12882+
},
12883+
"validation_action": "warn"
12884+
},
12885+
{
12886+
"name": "Kp",
12887+
"comment": "Governor proportional gain",
12888+
"null_value": 0,
12889+
"data_type": "Float64",
12890+
"valid_range": {
12891+
"min": 0,
12892+
"max": null
12893+
},
12894+
"validation_action": "warn"
12895+
},
12896+
{
12897+
"name": "Ki",
12898+
"comment": "Governor integral gain",
12899+
"null_value": 0,
12900+
"data_type": "Float64",
12901+
"valid_range": {
12902+
"min": 0,
12903+
"max": null
12904+
},
12905+
"validation_action": "warn"
12906+
},
12907+
{
12908+
"name": "Kd",
12909+
"comment": "Governor derivative gain",
12910+
"null_value": 0,
12911+
"data_type": "Float64",
12912+
"valid_range": {
12913+
"min": 0,
12914+
"max": null
12915+
},
12916+
"validation_action": "warn"
12917+
},
12918+
{
12919+
"name": "Ta",
12920+
"comment": "Governor derivative/high-frequency time constant",
12921+
"null_value": 0,
12922+
"data_type": "Float64",
12923+
"valid_range": {
12924+
"min": 0,
12925+
"max": null
12926+
},
12927+
"validation_action": "warn"
12928+
},
12929+
{
12930+
"name": "Tb",
12931+
"comment": "Gate-servo time constant",
12932+
"null_value": 0,
12933+
"data_type": "Float64",
12934+
"valid_range": {
12935+
"min": 0,
12936+
"max": null
12937+
},
12938+
"validation_action": "warn"
12939+
},
12940+
{
12941+
"name": "V_lim",
12942+
"comment": "Gate opening velocity limits `(G_min, G_max)`.",
12943+
"null_value": "(min=0.0, max=0.0)",
12944+
"data_type": "MinMax"
12945+
},
12946+
{
12947+
"name": "G_lim",
12948+
"comment": "Minimum/Maximum Gate velocity `(G_min, G_max)`.",
12949+
"null_value": "(min=0.0, max=0.0)",
12950+
"data_type": "MinMax"
12951+
},
12952+
{
12953+
"name": "Tw",
12954+
"comment": "Water inertia time constant, sec",
12955+
"null_value": 0,
12956+
"data_type": "Float64",
12957+
"valid_range": {
12958+
"min": "eps()",
12959+
"max": null
12960+
},
12961+
"validation_action": "warn"
12962+
},
12963+
{
12964+
"name": "P_lim",
12965+
"comment": "Minimum/Maximum Gate openings `(P_min, P_max)`.",
12966+
"null_value": "(min=0.0, max=0.0)",
12967+
"data_type": "MinMax"
12968+
},
12969+
{
12970+
"name": "D",
12971+
"comment": "Turbine damping coefficient",
12972+
"null_value": 0,
12973+
"data_type": "Float64",
12974+
"valid_range": {
12975+
"min": 0,
12976+
"max": null
12977+
},
12978+
"validation_action": "warn"
12979+
},
12980+
{
12981+
"name": "gate_openings",
12982+
"comment": "Gate-opening speed at different loads",
12983+
"null_value": "(0.0, 0.0, 0.0)",
12984+
"data_type": "Tuple{Float64, Float64, Float64}"
12985+
},
12986+
{
12987+
"name": "power_gate_openings",
12988+
"comment": "Power at gate_openings",
12989+
"null_value": "(0.0, 0.0, 0.0)",
12990+
"data_type": "Tuple{Float64, Float64, Float64}"
12991+
},
12992+
{
12993+
"name": "P_ref",
12994+
"comment": "Reference Power Set-point (pu)",
12995+
"null_value": 0,
12996+
"default": "1.0",
12997+
"data_type": "Float64",
12998+
"valid_range": {
12999+
"min": 0,
13000+
"max": null
13001+
}
13002+
},
13003+
{
13004+
"name": "ext",
13005+
"comment": "An *ext*ra dictionary for users to add metadata that are not used in simulation, such as latitude and longitude. See [Adding additional fields](@ref)",
13006+
"data_type": "Dict{String, Any}",
13007+
"null_value": "Dict{String, Any}()",
13008+
"default": "Dict{String, Any}()"
13009+
},
13010+
{
13011+
"name": "states",
13012+
"exclude_setter": true,
13013+
"comment": "(**Do not modify.**) The [states](@ref S) of the PIDGOV model are:\n\tx_g1: Filtered input measurement,\n\tx_g2: PI block internal state,\n\tx_g3: First regulator state, \n\tx_g4: Derivative block internal state, \n\tx_g5: Second regulator state, \n\tx_g6: Gate position state, \n\tx_g7: Water inertia state",
13014+
"internal_default": "[:x_g1, :x_g2, :x_g3, :x_g4, :x_g5, :x_g6, :x_g7]",
13015+
"data_type": "Vector{Symbol}"
13016+
},
13017+
{
13018+
"name": "n_states",
13019+
"exclude_setter": true,
13020+
"comment": "(**Do not modify.**) PIDGOV has 7 states",
13021+
"internal_default": 7,
13022+
"data_type": "Int"
13023+
},
13024+
{
13025+
"name": "states_types",
13026+
"comment": "(**Do not modify.**) PIDGOV has 7 [differential](@ref states_list) [states](@ref S)",
13027+
"internal_default": "[StateTypes.Hybrid, StateTypes.Hybrid, StateTypes.Hybrid, StateTypes.Hybrid, StateTypes.Hybrid, StateTypes.Hybrid, StateTypes.Hybrid]",
13028+
"data_type": "Vector{StateTypes}"
13029+
},
13030+
{
13031+
"name": "internal",
13032+
"comment": "(**Do not modify.**) PowerSystems.jl internal reference",
13033+
"data_type": "InfrastructureSystemsInternal",
13034+
"internal_default": "InfrastructureSystemsInternal()",
13035+
"exclude_setter": true
13036+
}
13037+
],
13038+
"supertype": "TurbineGov"
13039+
},
1285913040
{
1286013041
"struct_name": "SteamTurbineGov1",
1286113042
"docstring": "Steam Turbine-Governor. This model considers both TGOV1 or TGOV1DU in PSS/E",

src/models/generated/PIDGOV.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ This file is auto-generated. Do not edit.
2929
internal::InfrastructureSystemsInternal
3030
end
3131
32-
Hydro Turbine-Governor with PID controller. The GeneralGovModel (GGOV1) model is a general purpose governor model used for a variety of prime movers controlled by proportional-integral-derivative (PID) governors including gas turbines
32+
Hydro Turbine-Governor with PID controller.
3333
3434
# Arguments
3535
- `feedback_flag::Int`: Feedback signal for governor droop: 0 for electrical power, and 1 for gate position., validation range: `(0, 1)`

0 commit comments

Comments
 (0)