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
VILLASframework
Data Processing
Commits
68f82ceb
Commit
68f82ceb
authored
Aug 07, 2017
by
Jan Dinkelbach
Browse files
introduced package dataprocessing
parent
ebf92baa
Changes
9
Hide whitespace changes
Inline
Side-by-side
dataprocessing/__init__.py
0 → 100644
View file @
68f82ceb
P
lot
T
ools.py
→
dataprocessing/p
lot
t
ools.py
View file @
68f82ceb
File moved
P
lot
T
oolsDPsim.py
→
dataprocessing/p
lot
t
oolsDPsim.py
View file @
68f82ceb
File moved
R
ead
T
ools.py
→
dataprocessing/r
ead
t
ools.py
View file @
68f82ceb
File moved
CompareModelicaPLECS.py
→
examples/
CompareModelicaPLECS.py
View file @
68f82ceb
from
R
ead
T
ools
import
*
from
P
lot
T
ools
import
*
from
dataprocessing.r
ead
t
ools
import
*
from
dataprocessing.p
lot
t
ools
import
*
import
matplotlib.pyplot
as
plt
import
numpy
as
np
results_path
=
r
'\\tsclient\N\Research\German Public\ACS0049_SINERGIEN_bsc\Data\WorkData\SimulationResults\InductionMachine\results'
### --- Read in section --- ###
# Stator currents
stator_currents_mo
=
read_time_series_Modelica
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\Modelica3hpMachine.mat'
,
[
'inductionMachineSquirrelCage.i[1]'
,
'inductionMachineSquirrelCage.i[2]'
,
'inductionMachineSquirrelCage.i[3]'
])
stator_currents_pls
=
read_time_series_PLECS
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\PLECS3hpMachineStatorCurrents.csv'
)
stator_currents_mo
=
read_time_series_Modelica
(
r
esults_path
+
r
'
\Modelica3hpMachine
RRFs
.mat'
,
[
'inductionMachineSquirrelCage.i[1]'
,
'inductionMachineSquirrelCage.i[2]'
,
'inductionMachineSquirrelCage.i[3]'
])
stator_currents_pls
=
read_time_series_PLECS
(
r
esults_path
+
r
'
\PLECS3hpMachineStatorCurrents.csv'
)
# Rotor currents
rotor_currents_mo
=
read_time_series_Modelica
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\Modelica3hpMachine.mat'
,
[
'inductionMachineSquirrelCage.i_qd0r[1]'
,
'inductionMachineSquirrelCage.i_qd0r[2]'
])
rotor_currents_pls
=
read_time_series_PLECS
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\PLECS3hpMachineRotorCurrentsDqRRFs.csv'
)
rotor_currents_mo
=
read_time_series_Modelica
(
r
esults_path
+
r
'
\Modelica3hpMachine
RRFs
.mat'
,
[
'inductionMachineSquirrelCage.i_qd0r[1]'
,
'inductionMachineSquirrelCage.i_qd0r[2]'
])
rotor_currents_pls
=
read_time_series_PLECS
(
r
esults_path
+
r
'
\PLECS3hpMachineRotorCurrentsDqRRFs.csv'
)
rotor_currents_pls
[
1
].
values
=
-
rotor_currents_pls
[
1
].
values
# transformation DQ0->QD0
# Torque and speed
torque_speed_mo
=
read_time_series_Modelica
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\Modelica3hpMachine.mat'
,
[
'inductionMachineSquirrelCage.T_e'
,
'inductionMachineSquirrelCage.omega_rm'
])
torque_speed_pls
=
read_time_series_PLECS
(
r
'\\tsclient\N\Diss\jdi\Documents\MachineModeling\results
\PLECS3hpMachineTorqueSpeed.csv'
)
torque_speed_mo
=
read_time_series_Modelica
(
r
esults_path
+
r
'
\Modelica3hpMachine
RRFs
.mat'
,
[
'inductionMachineSquirrelCage.T_e'
,
'inductionMachineSquirrelCage.omega_rm'
])
torque_speed_pls
=
read_time_series_PLECS
(
r
esults_path
+
r
'
\PLECS3hpMachineTorqueSpeed.csv'
)
torque_speed_mo
[
1
].
values
=
torque_speed_mo
[
1
].
values
/
2
/
np
.
pi
*
60
# transformation to r/min
### --- Plot section --- ###
...
...
DynPh_EMT_Comparison.ipynb
→
examples/
DynPh_EMT_Comparison.ipynb
View file @
68f82ceb
File moved
DynamicPhasorBasics.ipynb
→
examples/
DynamicPhasorBasics.ipynb
View file @
68f82ceb
File moved
Examples.ipynb
→
examples/
Examples.ipynb
View file @
68f82ceb
File moved
setup.py
0 → 100644
View file @
68f82ceb
from
setuptools
import
setup
,
find_packages
setup
(
name
=
"dataprocessing"
,
version
=
"0.1"
,
packages
=
find_packages
(),
)
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