Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RT, XT, ZR, ZX parameters to ext dict for generator. #1268

Closed
wants to merge 47 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
4521353
add 3W xfrm
rodrigomha Jan 10, 2025
ce4caec
update optional fields
rodrigomha Jan 14, 2025
a904648
Merge pull request #1247 from NREL-Sienna/rh/3w_xfmr
rodrigomha Jan 14, 2025
7144b82
parse missing sw shunt data in psse.jl file
mcllerena Dec 17, 2024
8f19a20
adding keys to distinguish between fixed & switched shunts
mcllerena Dec 19, 2024
1aad3a0
Emptying the contents of the 'shunt' key, since keys for fixed & swit…
mcllerena Dec 19, 2024
cf0ef24
add Switch Shunt struct & psse.jl updates on 3WT
mcllerena Jan 14, 2025
a4cf206
adding missing parameters to 3wtransformer
mcllerena Jan 14, 2025
f013e53
formatter
rodrigomha Jan 14, 2025
647251e
revert typo
rodrigomha Jan 14, 2025
cecf352
add buses to 3w dics
rodrigomha Jan 14, 2025
433c9d2
add bus ids to the 3w parser
rodrigomha Jan 15, 2025
4b8c134
handle addition of 3w transformer
rodrigomha Jan 15, 2025
8c0e02f
implement parser of 3W XFRM to system
rodrigomha Jan 15, 2025
eb8269b
make complex the y_increment in the switched shunt
mcllerena Jan 15, 2025
d973051
add make and read switched shunt functions
mcllerena Jan 15, 2025
53e8fd9
filter zero values on switched shunt vectors
mcllerena Jan 15, 2025
6d481cd
fix sw adm default bug
rodrigomha Jan 16, 2025
420ff7f
clear sys for serialized test
rodrigomha Jan 16, 2025
8ef70c2
update switched admittance types
rodrigomha Jan 17, 2025
35a81c4
add new test and 5circuit 3w archives
mcllerena Jan 17, 2025
87a91f6
Update parser methods for 3W and Switched Shunt
rodrigomha Jan 18, 2025
51534b3
update psse parser tests for 3w and switched shunts
rodrigomha Jan 18, 2025
3785aa8
updated get_components.
annacasavant Nov 21, 2024
f280672
Grammar Fixes
annacasavant Nov 22, 2024
558cd3e
grammar
annacasavant Nov 22, 2024
bfd71a2
removed fuel (@ref)
annacasavant Nov 22, 2024
1038543
fixing (@ref)
annacasavant Nov 22, 2024
f074623
needed to get rid of the "@ref"
annacasavant Nov 25, 2024
171b580
Tutorial edits for refs, syntax, add typeof
kdayday Jan 8, 2025
8f7d58f
Run formatter
kdayday Jan 8, 2025
8916875
Update docs/src/tutorials/manipulating_datasets.md
kdayday Jan 17, 2025
6902e51
Fix bug in convert_component
daniel-thom Jan 13, 2025
642bf8a
Update Project.toml
jd-lara Jan 13, 2025
6c43e94
Add `fast_deepcopy_system` function, fix #1233
GabrielKS Dec 24, 2024
b37b320
`fast_deepcopy_system`: fix shared units references bug
GabrielKS Dec 26, 2024
0f108e1
Fix lingering `compare_values` bug
GabrielKS Dec 27, 2024
4cb37a6
SQL transactions for time series and supplemental attributes
daniel-thom Jan 11, 2025
dd80160
Fix bugs and add test
daniel-thom Jan 11, 2025
a2a1fc8
Update docs
daniel-thom Jan 11, 2025
ce3617d
Fix spelling of function
daniel-thom Jan 14, 2025
2c4f750
Move tutorial order
kdayday Jan 17, 2025
166742f
Finalize tutorial links
kdayday Jan 17, 2025
f9634c1
Run formatter
kdayday Jan 17, 2025
71ec732
Merge branch 'psy5' into 3WTransformer
rodrigomha Jan 24, 2025
b50917f
create ext dictionary to save data
mcllerena Jan 29, 2025
a184a82
add gen extra parameters on ext dict
mcllerena Jan 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/PowerSystems.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export TModelHVDCLine
export Transformer2W
export TapTransformer
export PhaseShiftingTransformer
export Transformer3W

# from IS function_data.jl
export FunctionData
Expand Down Expand Up @@ -636,6 +637,7 @@ import InfrastructureSystems:
COMPONENT_NAME_DELIMITER,
make_selector,
rebuild_selector

import InfrastructureSystems:
ValueCurve,
InputOutputCurve,
Expand Down
52 changes: 52 additions & 0 deletions src/base.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2175,6 +2175,20 @@ function check_attached_buses(sys::System, component::Branch)
return
end

function check_attached_buses(sys::System, component::Transformer3W)
arc_ps = get_primary_secondary_arc(component)
arc_pt = get_primary_tertiary_arc(component)
bus_primary = get_from(arc_ps)
bus_secondary = get_to(arc_ps)
bus_tertiary = get_to(arc_pt)
star_bus = get_star_bus(component)
throw_if_not_attached(bus_primary, sys)
throw_if_not_attached(bus_secondary, sys)
throw_if_not_attached(bus_tertiary, sys)
throw_if_not_attached(star_bus, sys)
return
end

function check_attached_buses(sys::System, component::DynamicBranch)
check_attached_buses(sys, get_branch(component))
return
Expand Down Expand Up @@ -2226,6 +2240,20 @@ function check_component_addition(sys::System, branch::Branch; kwargs...)
return
end

function check_component_addition(sys::System, component::Transformer3W; kwargs...)
arc_ps = get_primary_secondary_arc(component)
arc_pt = get_primary_tertiary_arc(component)
bus_primary = get_from(arc_ps)
bus_secondary = get_to(arc_ps)
bus_tertiary = get_to(arc_pt)
star_bus = get_star_bus(component)
throw_if_not_attached(bus_primary, sys)
throw_if_not_attached(bus_secondary, sys)
throw_if_not_attached(bus_tertiary, sys)
throw_if_not_attached(star_bus, sys)
return
end

function check_component_addition(sys::System, dyn_branch::DynamicBranch; kwargs...)
if !_is_deserialization_in_progress(sys)
throw_if_not_attached(dyn_branch.branch, sys)
Expand Down Expand Up @@ -2332,6 +2360,30 @@ function _handle_branch_addition_common!(sys::System, component::Branch)
return
end

function _handle_branch_addition_common!(sys::System, component::Transformer3W)
# If this arc is already attached to the system, assign it to the 3W XFRM.
# Else, add it to the system.
arcs = [
get_primary_secondary_arc(component),
get_secondary_tertiary_arc(component),
get_primary_tertiary_arc(component),
]
set_arc_methods = [
set_primary_secondary_arc!,
set_secondary_tertiary_arc!,
set_primary_tertiary_arc!,
]
for (ix, arc) in enumerate(arcs)
_arc = get_component(Arc, sys, get_name(arc))
if isnothing(_arc)
add_component!(sys, arc)
else
set_arc_methods[ix](component, _arc)
end
end
return
end

_handle_branch_addition_common!(sys::System, component::AreaInterchange) = nothing

"""
Expand Down
Loading
Loading