This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Update to PSY 0.22 #56
Merged
Merged
Changes from 103 commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
7aeebde
update toml file
jd-lara 631b5d7
update to source model
jd-lara aaa2da5
ignore generators in static injections
jd-lara 992eee9
remove type signature
jd-lara 366f7b0
add files for test01
jd-lara 1349483
add wecc 9 bus data
jd-lara 936c595
add data utils
jd-lara 9234ad2
fix paths in test01
jd-lara 0aad6fb
update testing 2-3
jd-lara 0b04e50
add newer test data
jd-lara 88e4360
WIP update test data files [ci skip]
jd-lara 70527e3
refactor inverter data
jd-lara f8c5c67
update inverter
jd-lara 5aa4fd5
add updates to PSY v0.16
jd-lara 15e1963
update to source model
jd-lara 371d6ce
remove type signature
jd-lara 76bca3f
add wecc 9 bus data
jd-lara 6e8f859
add newer test data
jd-lara e46b46b
WIP update test data files [ci skip]
jd-lara be9d1a2
refactor inverter data
jd-lara ce10eb7
update inverter
jd-lara af5db40
Merge branch 'jd/update_test_files' of https://github.com/Energy-MAC/…
jd-lara 46b90c7
update toml file
jd-lara 3a752d7
update IS
jd-lara 44bfbea
add logging
jd-lara 5b2c0b1
update to PSY to v0.18 test01
jd-lara 8ad94d7
add 3 bus radial case
jd-lara 6ec92b4
Update load and source models
c26bbc3
update 3Bus Network
90857d4
Update tests 01-05
73c95df
eliminate sandbox
801c960
update runtests and add x0 results
6fd3705
[WIP] Finishing test 06
83c65f5
update formatting
db5a283
Import LinearAlgebra
625bf35
Update tolerance
rodrigomha 9b42464
Update tolerances tests 02-05
rodrigomha 426d476
Update basepower changes
rodrigomha 091c6b3
update toml file
jd-lara dd44792
split initialization
jd-lara cd98795
remove sys base power from test files
jd-lara 564672f
whitespace
jd-lara 9e1c5e3
update to get_Vf
jd-lara 5f31a60
move code
jd-lara de3b787
delete leeft over file
jd-lara d7d8eb6
whitespace
jd-lara 36e7444
WIP initialization
jd-lara c79f61d
wip code reorganization
jd-lara 999ff32
[WIP] Add hack for V_ref on AVRFixed
rodrigomha 5b709dd
Update OMIB without loads
rodrigomha 64f8935
Update Control Refs
rodrigomha 99dce40
[WIP] Add initialization for params
rodrigomha 800f395
Merge pull request #61 from Energy-MAC/jd/initial_conditions
jd-lara c9a0910
Add prototype of ordered print
rodrigomha d390dc4
update basepower on models
rodrigomha d643bb9
update init models
rodrigomha 911cb9f
update initialization procedure
rodrigomha 5cb63e1
update tests
rodrigomha 4a2f597
delete initialize_device
rodrigomha 2216e60
delete init device
rodrigomha 9278b99
add function print init device states ordered
rodrigomha 048adfd
update shaft 5mass init function
rodrigomha d1901fd
update test 5
rodrigomha 1ef280e
update initialization for inverter
rodrigomha 98a08ae
update darco raw
rodrigomha 3721550
update basepower
rodrigomha 0a4e635
update models
rodrigomha 6920167
update control refs definitions and inner vars
rodrigomha 33aa4a6
update test 06
rodrigomha de46db5
Update test 7
rodrigomha b4db00e
init tgtype2
rodrigomha 3cbe744
update voltage guess better and reduce tolerance
rodrigomha 450a551
update test 8
rodrigomha 113ccc1
remove test 9 for now
rodrigomha a3b661d
eliminate small signal test
rodrigomha c623977
eliminate requirement for w_sys for ForwardDiff
rodrigomha 1fe0b9b
Give warning for multimachine in small signal and strictly greater th…
rodrigomha 2e560f8
update test 10
rodrigomha c9ded74
update formatting
rodrigomha 6b8718b
Renaming tests
rodrigomha c29e1a9
update Anderson Initialization. Remove Kundur models
rodrigomha f221373
Update tests
rodrigomha fcb845f
update formatting
rodrigomha d499b65
update test naming
rodrigomha d9151b2
Print initial conditions
rodrigomha 987759e
update tests
rodrigomha 40eb124
add bus look up
jd-lara 98b6f40
implement bus lookup
jd-lara 8ca1d23
whitespace
jd-lara d6a19f1
add file system functions
jd-lara 44e3adc
add file output to simulation
jd-lara 46c13a0
update tests
jd-lara 6a36798
whitespace
jd-lara fa78534
whitespace
jd-lara b0e6887
change perturbation structs
jd-lara 63ff267
add AVR Type II initialization
rodrigomha c3b1a87
Merge pull request #63 from Energy-MAC/jd/required_updates
jd-lara d3e0687
Merge pull request #64 from Energy-MAC/jd/output_files
jd-lara 7da31d1
update tests to use bus numbers
rodrigomha 5a6e964
remove PSSSimple model
rodrigomha b478524
Add Inits for TG1 and AVRs
rodrigomha 943ddef
Add test 13
rodrigomha ce6fbea
Merge pull request #62 from Energy-MAC/rh/init_models
jd-lara dbef31c
remove functions moved to PSY
jd-lara 9c632e7
Add converter initialization
rodrigomha cf16366
Merge branch 'jd/update_test_files' of https://github.com/Energy-MAC/…
rodrigomha 87d1b92
[WIP] Update documentation
rodrigomha 35ebadc
update example 01 doc
rodrigomha af9f422
Update Example 0 and Docs
rodrigomha 18e76a8
Update Example 2 Docs
rodrigomha 565831f
Update Utils
rodrigomha da379b6
update formatting
rodrigomha 1982d21
update semantics
rodrigomha 7d9d46d
Merge pull request #65 from Energy-MAC/rh/update_docs
jd-lara File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,9 @@ | ||
function check_folder(folder::String) | ||
!isdir(folder) && throw(IS.ConflictingInputsError("Specified folder is not valid")) | ||
try | ||
mkdir(joinpath(folder, "fake")) | ||
rm(joinpath(folder, "fake")) | ||
catch e | ||
throw(IS.ConflictingInputsError("Specified folder does not have write access [$e]")) | ||
end | ||
end |
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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
abstract type Perturbation end | ||
|
||
struct ThreePhaseFault <: Perturbation | ||
mutable struct ThreePhaseFault <: Perturbation | ||
time::Float64 | ||
Ybus::SparseMatrixCSC{Complex{Float64}, Int64} | ||
end | ||
|
||
get_affect(pert::ThreePhaseFault) = | ||
get_affect(::PSY.System, pert::ThreePhaseFault) = | ||
(integrator) -> PSY.get_ext(integrator.p)["Ybus"] = pert.Ybus | ||
|
||
struct ControlReferenceChange <: Perturbation | ||
mutable struct ControlReferenceChange <: Perturbation | ||
time::Float64 | ||
device::PSY.DynamicInjection | ||
signal_index::Int64 | ||
ref_value::Float64 | ||
end | ||
|
||
function get_affect(pert::ControlReferenceChange) | ||
function get_affect(system::PSY.System, pert::ControlReferenceChange) | ||
device = PSY.get_component(typeof(pert.device), system, PSY.get_name(pert.device)) | ||
pert.device = device | ||
return (integrator) -> begin | ||
control_ref = PSY.get_ext(pert.device)[CONTROL_REFS] | ||
control_ref = PSY.get_ext(device)[CONTROL_REFS] | ||
return control_ref[pert.signal_index] = pert.ref_value | ||
end | ||
end |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should create these functions on PSY.