Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Automation and Monitoring
pyVolt
pyVolt
Commits
f38c127a
Commit
f38c127a
authored
Jan 23, 2019
by
Markus Mirz
Browse files
adding powerflow results structure
parent
e56ea194
Changes
1
Hide whitespace changes
Inline
Side-by-side
acs/state_estimation/nv_powerflow_cim.py
View file @
f38c127a
...
...
@@ -27,6 +27,24 @@ class PF_Results():
for
elem
in
range
(
len
(
system
.
nodes
)):
self
.
V
[
elem
]
=
loadflow_results
[
system
.
nodes
[
elem
].
uuid
]
class
PowerflowNode
():
def
__init__
(
self
,
topo_node
):
self
.
topology_node
=
topo_node
self
.
voltage
=
complex
(
0
,
0
)
self
.
current
=
complex
(
0
,
0
)
self
.
power
=
complex
(
0
,
0
)
class
PowerflowBranch
():
def
__init__
(
self
,
topo_branch
):
self
.
topology_branch
=
topo_branch
self
.
current
=
complex
(
0
,
0
)
self
.
power
=
complex
(
0
,
0
)
class
PowerflowResults
():
def
__init__
(
self
):
self
.
nodes
=
[]
self
.
branches
=
[]
def
solve
(
system
):
"""It performs Power Flow by using rectangular node voltage state variables."""
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment