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
f62b5eb3
Commit
f62b5eb3
authored
Nov 05, 2018
by
Markus Mirz
Browse files
remove unecessary code from pf test
parent
e44a6570
Changes
1
Hide whitespace changes
Inline
Side-by-side
acs-state-estimation/test_powerflow.py
View file @
f62b5eb3
...
...
@@ -3,8 +3,6 @@ import math
import
matplotlib
as
plt
import
Network_data
import
powerflow
import
Meas_data
import
StateEstimator
class
PerUnit
:
def
__init__
(
self
,
S
,
V
):
...
...
@@ -13,35 +11,6 @@ class PerUnit:
self
.
I
=
S
/
V
self
.
Z
=
S
/
(
V
**
2
)
class
Measurements
:
def
__init__
(
self
,
index
,
unc
):
self
.
index
=
index
.
astype
(
int
)
self
.
unc
=
unc
self
.
num
=
len
(
index
)
class
Measurement_set
:
def
__init__
(
self
,
V
,
I
,
Sinj
,
S1
,
S2
,
Vpmu_mag
,
Vpmu_phase
,
Ipmu_mag
,
Ipmu_phase
):
self
.
V
=
V
self
.
Sinj
=
Sinj
self
.
S1
=
S1
self
.
S2
=
S2
self
.
I
=
I
self
.
Vpmu_mag
=
Vpmu_mag
self
.
Vpmu_phase
=
Vpmu_phase
self
.
Ipmu_mag
=
Ipmu_mag
self
.
Ipmu_phase
=
Ipmu_phase
class
Zdata_init
:
def
__init__
(
self
,
meas
):
nmeas
=
meas
.
V
.
num
+
meas
.
I
.
num
+
2
*
meas
.
Sinj
.
num
+
2
*
meas
.
S1
.
num
+
2
*
meas
.
S2
.
num
+
meas
.
Ipmu_mag
.
num
+
meas
.
Ipmu_phase
.
num
+
meas
.
Vpmu_mag
.
num
+
meas
.
Vpmu_phase
.
num
self
.
mtype
=
numpy
.
zeros
(
nmeas
)
self
.
mval
=
numpy
.
zeros
(
nmeas
)
self
.
mmeas
=
numpy
.
zeros
(
nmeas
)
self
.
mbranch
=
numpy
.
zeros
(
nmeas
)
self
.
mfrom
=
numpy
.
zeros
(
nmeas
)
self
.
mto
=
numpy
.
zeros
(
nmeas
)
self
.
mstddev
=
numpy
.
zeros
(
nmeas
)
""" Insert here per unit values of the grid for power and voltage """
S
=
100
*
(
10
**
6
)
V
=
(
11
*
(
10
**
3
))
/
math
.
sqrt
(
3
)
...
...
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