Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ACS
P
Public
VILLASframework
Data Processing
Commits
941ee8f1
Commit
941ee8f1
authored
Nov 13, 2017
by
Jan Dinkelbach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
started example comparison modelica vs dpsim
parent
b291b9dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
examples/Comparison_Modelica_DPsim.py
examples/Comparison_Modelica_DPsim.py
+28
-0
No files found.
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
Markdown
is supported
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