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
70b1a1fa
Commit
70b1a1fa
authored
Jan 10, 2018
by
Markus Mirz
Browse files
addded functions to plot node emt voltages and phasors
parent
098f7b8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataprocessing/dpsim.py
View file @
70b1a1fa
...
...
@@ -10,7 +10,21 @@ def get_node_voltage_phasors(dpsim_timeseries_list):
for
ts
in
dpsim_timeseries_list
:
ts_abs
=
ts
.
abs
(
ts
.
name
+
'_abs'
)
ts_phase
=
ts
.
phase
(
ts
.
name
+
'_phase'
)
ts_phasor
=
[
ts_abs
,
ts_phase
]
ts_phasor
=
{}
ts_phasor
[
'abs'
]
=
ts_abs
ts_phasor
[
'phase'
]
=
ts_phase
voltage_phasor_list
[
ts
.
name
]
=
ts_phasor
return
voltage_phasor_list
def
get_node_emt_voltages
(
timeseries_list
,
freq
):
"""Calculate voltage phasors of all nodes
:param timeseries_list: timeseries list retrieved from dpsim results
:return:
"""
voltages_list
=
{}
for
ts
in
timeseries_list
:
ts_emt
=
ts
.
dynphasor_shift_to_emt
(
ts
.
name
,
freq
)
voltages_list
[
ts
.
name
]
=
ts_emt
return
voltages_list
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