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
c2ca1eac
Commit
c2ca1eac
authored
May 29, 2019
by
martin.moraga
Browse files
update examples
parent
f39913e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
examples/validation/test_nv_powerflow.py
View file @
c2ca1eac
...
...
@@ -6,7 +6,7 @@ import cimpy
logging
.
basicConfig
(
filename
=
'CIGRE.log'
,
level
=
logging
.
INFO
,
filemode
=
'w'
)
cim_xml_path
=
r
".
\examples
\quickstart\sample_data"
cim_xml_path
=
r
".
.
\quickstart\sample_data"
cim_xml_files
=
[
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_DI.xml"
,
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_EQ.xml"
,
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_SV.xml"
,
...
...
@@ -28,7 +28,7 @@ for node in results_pf.nodes:
print
(
"
\n\n\n
"
)
# Show numerical comparison
loadflow_results_path
=
r
".
\examples
\quickstart\sample_data"
loadflow_results_path
=
r
".
.
\quickstart\sample_data"
loadflow_results_file
=
loadflow_results_path
+
r
"\CIGRE-MV-NoTap.csv"
results_dpsim
=
results
.
Results
(
system
)
...
...
examples/validation/test_nv_state_estimator.py
View file @
c2ca1eac
...
...
@@ -4,12 +4,13 @@ import matplotlib.pyplot as plt
import
cimpy
from
acs.state_estimation
import
network
from
acs.state_estimation
import
nv_state_estimator
from
acs.state_estimation
import
measurement
from
acs.state_estimation
import
results
logging
.
basicConfig
(
filename
=
'CIGRE.log'
,
level
=
logging
.
INFO
,
filemode
=
'w'
)
cim_xml_path
=
r
".
\examples
\quickstart\sample_data"
cim_xml_path
=
r
".
.
\quickstart\sample_data"
cim_xml_files
=
[
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_DI.xml"
,
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_EQ.xml"
,
cim_xml_path
+
r
"\Rootnet_FULL_NE_06J16h_SV.xml"
,
...
...
@@ -22,7 +23,7 @@ base_apparent_power = 25 #MW
system
.
load_cim_data
(
res
,
base_apparent_power
)
#read Input-Ergebnisdatei and store it in a results.Results object
loadflow_results_path
=
r
".
\examples
\quickstart\sample_data"
loadflow_results_path
=
r
".
.
\quickstart\sample_data"
loadflow_results_file
=
loadflow_results_path
+
r
"\CIGRE-MV-NoTap.csv"
powerflow_results
=
results
.
Results
(
system
)
powerflow_results
.
read_data_dpsim
(
loadflow_results_file
)
...
...
@@ -46,7 +47,7 @@ for node in powerflow_results.nodes:
measurements_set
.
meas_creation
()
# Perform state estimation
state_estimation_results_ideal
=
.
DsseCall
(
system
,
measurements_set
)
state_estimation_results_ideal
=
nv_state_estimator
.
DsseCall
(
system
,
measurements_set
)
# Show numerical comparison
Vest_ideal
=
state_estimation_results_ideal
.
get_voltages
(
pu
=
False
)
...
...
@@ -67,7 +68,7 @@ for node in powerflow_results.nodes:
measurements_set
.
meas_creation
()
# Perform state estimation
state_estimation_results_real
=
.
DsseCall
(
system
,
measurements_set
)
state_estimation_results_real
=
nv_state_estimator
.
DsseCall
(
system
,
measurements_set
)
# Show numerical comparison
Vest_real
=
state_estimation_results_real
.
get_voltages
(
pu
=
False
)
...
...
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