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
941ee8f1
Commit
941ee8f1
authored
Nov 13, 2017
by
Jan Dinkelbach
Browse files
started example comparison modelica vs dpsim
parent
b291b9dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/Comparison_Modelica_DPsim.py
0 → 100644
View file @
941ee8f1
from
dataprocessing.readtools
import
*
from
dataprocessing.plottools
import
*
import
matplotlib.pyplot
as
plt
from
plottingtools.config
import
*
current_EMT
=
read_timeseries_Modelica
(
r
"C:\Workspace\ReferenceExamples\Modelica\Synchronous Generator\UnitTest_Eremia_3rdOrderModel_Euler_1ms.mat"
,
[
"synchronousGenerator_Park.i[1]"
])
figure_id
=
1
plt
.
figure
(
figure_id
,
figsize
=
(
12
,
8
))
set_timeseries_labels
(
current_EMT
,
[
"EMT"
])
plot_timeseries
(
figure_id
,
current_EMT
,
plt_color
=
blue
)
plt
.
xlabel
(
'Zeit [s]'
)
plt
.
ylabel
(
'Strom [A]'
)
plt
.
show
(
block
=
True
)
multi_current_EMT
=
read_timeseries_Modelica
(
r
"C:\Workspace\ReferenceExamples\Modelica\Synchronous Generator\UnitTest_Eremia_3rdOrderModel_Euler_1ms.mat"
,[[
"synchronousGenerator_Park.i[1]"
],[
"synchronousGenerator_Park.i[2]"
]])
figure_id
=
2
plt
.
figure
(
figure_id
,
figsize
=
(
12
,
8
))
set_timeseries_labels
(
multi_current_EMT
,
[
"Phase a"
,
"Phase b"
,
"Phase c"
])
plot_timeseries
(
figure_id
,
multi_current_EMT
)
plt
.
xlabel
(
'Zeit [s]'
)
plt
.
ylabel
(
'Strom [A]'
)
plt
.
show
(
block
=
True
)
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