Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
VILLASframework
VILLASdataprocessing
Commits
37b4f0e2
Commit
37b4f0e2
authored
Nov 15, 2017
by
Markus Mirz
Browse files
added 9-bus example
parent
00489685
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/DPsim/cim_ieee_9_bus.py
0 → 100644
View file @
37b4f0e2
from
dataprocessing.readtools
import
*
from
dataprocessing.timeseries
import
*
path
=
'C:
\\
Users
\\
mmi
\\
git
\\
PowerSystemSimulation
\\
DPsim
\\
VisualStudio
\\
DPsimVS2017
\\
'
logName
=
'lvector-cim'
;
dataType
=
'.csv'
;
logFilename
=
path
+
logName
+
dataType
;
ts_dpsim
=
read_timeseries_dpsim_cmpl
(
logFilename
)
for
ts
in
ts_dpsim
:
ts_abs
=
ts
.
abs
(
ts
.
name
+
' abs'
)
ts_phase
=
ts
.
phase
(
ts
.
name
+
' phase'
)
print
(
ts
.
name
+
': '
+
str
(
ts_abs
.
values
[
0
])
+
'<'
+
str
(
ts_phase
.
values
[
0
]
*
180
/
np
.
pi
))
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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