Skip to content

Commit

Permalink
Merge pull request #896 from NREL-SIIP/rh/add_stab1_parser
Browse files Browse the repository at this point in the history
Add STAB1 parser
  • Loading branch information
jd-lara authored Jun 1, 2022
2 parents ce96ebf + db368c8 commit adb4bb5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/PowerSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export PSS
export PSSFixed
export PSSSimple
export IEEEST
export STAB1

#Shaft Exports
export Shaft
Expand Down
2 changes: 1 addition & 1 deletion src/descriptors/power_system_structs.json
Original file line number Diff line number Diff line change
Expand Up @@ -8950,7 +8950,7 @@
{
"name": "states",
"exclude_setter": true,
"comment": "The states are:\n\tx_p1: washout filter,\n\tx_p2: T1/T2 lead-lag block, \n\tx_p3: T3/T4 lead-lag block,",
"comment": "The states are:\n\tx_p1: washout filter,\n\tx_p2: T1/T3 lead-lag block, \n\tx_p3: T2/T4 lead-lag block,",
"internal_default": "[:x_p1, :x_p2, :x_p3]",
"data_type": "Vector{Symbol}"
},
Expand Down
8 changes: 4 additions & 4 deletions src/models/generated/STAB1.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Speed-Sensitive Stabilizing Model
- `ext::Dict{String, Any}`
- `states::Vector{Symbol}`: The states are:
x_p1: washout filter,
x_p2: T1/T2 lead-lag block,
x_p3: T3/T4 lead-lag block,
x_p2: T1/T3 lead-lag block,
x_p3: T2/T4 lead-lag block,
- `n_states::Int`: STAB1 has 3 states
- `states_types::Vector{StateTypes}`: STAB1 has 3 differential states
- `internal::InfrastructureSystemsInternal`: power system internal reference, do not modify
Expand All @@ -57,8 +57,8 @@ mutable struct STAB1 <: PSS
ext::Dict{String, Any}
"The states are:
x_p1: washout filter,
x_p2: T1/T2 lead-lag block,
x_p3: T3/T4 lead-lag block,"
x_p2: T1/T3 lead-lag block,
x_p3: T2/T4 lead-lag block,"
states::Vector{Symbol}
"STAB1 has 3 states"
n_states::Int
Expand Down
5 changes: 5 additions & 0 deletions src/parsers/psse_dynamic_mapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ TGOV1DU:
IEEEST:
{
PSS: IEEEST
},
STAB1:
{
PSS: STAB1
}
}

Expand Down Expand Up @@ -229,6 +233,7 @@ parameter_mapping:
TGOV1DU: [1, 2, '(4, 3)', 5, 6, 7, 8, 9, 10],
#PSSs:
IEEEST: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, '(17, 16)', 18, 19],
STAB1: [1, 2, 3, 4, 5, 6, 7],

###################
#### Inverters ####
Expand Down

2 comments on commit adb4bb5

@jd-lara
Copy link
Member Author

@jd-lara jd-lara commented on adb4bb5 Jun 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/61449

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.22.2 -m "<description of version>" adb4bb5f3abd71fdb8fc8d96c867a14c9f9bd360
git push origin v1.22.2

Please sign in to comment.