Skip to content
Snippets Groups Projects
Commit 7044867f authored by Michael Alfons Schlüter's avatar Michael Alfons Schlüter
Browse files

New Readme and some changes to setup.py

parent 74a5ec8d
No related branches found
No related tags found
No related merge requests found
# drive_cycle module
# DriCy_Selo module
Created on Thu Mar 4 08:53:28 2021
@author: Michael Schlüter
> Technische Universität Berlin
> [https://www.pe.tu-berlin.de/](https://www.pe.tu-berlin.de/)
> [m.schlueter@tu-berlin.de](mailto:m.schlueter@tu-berlin.de)
### _class_ DriCy_Selo.Config()
Bases: `object`
#### \__init__()
### DriCy_Selo.IGBT_losses(vehicle, f, time, B0wf, B1wf, B2wf, i_d, i_q)
Calculation of IGBT losses: Conduction losses of IGBT and diode;
Switching losses based on Eon and Eoff depenting on Ron and Roff;
reverse recovery losses of diode
### DriCy_Selo.MOSFET_losses(vehicle, f, time, B0wf, B1wf, B2wf, i_d, i_q)
Calculate the MOSFET losses:
Conduction losses including parallel conduction of MOSFET channel and body diode in reverese conduction;
dead/blanking time conduction losses of diodes;
switching losses bases on Eon and Eoff including Gate ON and OFF resistors;
Reverse recovery losses of body diode
### DriCy_Selo.acceleration_resistance(a, vehicle)
This function calculates the acceleration resistance acording to:
F_{A} = a \\cdot (M_{w} \\cdot \\lambda + M_{z})
### DriCy_Selo.aerodynamic_resistance(vehicle, v)
This function calculates the aerodynamic resistance acording to:
F_{L} = c_{w} \\cdot A_{front} \\cdot \\frac{p_{air}}{2} \\cdot v^2
### DriCy_Selo.calc_PMSM(vehicle, T, n, verbose=False)
Calculation of the inverter set point for a given vehicle, tourque and speed of a permanent magnet synchronos motor (PMSM).
ToDo: speed up -> add complete numerical calculation
### DriCy_Selo.calc_SVPWM(vd, vq, n, vehicle)
Calculation of the Space Vetor Pulse Width Modulation (SVPWM) for the inverter.
### DriCy_Selo.calc_con(vehicle, qns, qTs)
### DriCy_Selo.dq0_to_abc(d, q, wt, z=0, delta=0)
Inverse Park transform
### DriCy_Selo.f(question)
Answer to the Ultimate Question of Life, the Universe, and Everything.
tbd: Find the inverse function…
### DriCy_Selo.plot_PMSM(vehicle, T, n)
Plot the PMSM set point in the dq-current plane.
### DriCy_Selo.read_csv(file)
Read csv export from automeris.io
Column Separator: comma [,]
decimal separator: dot[.]
### DriCy_Selo.read_drive_cycle(file, vehicle)
This fuction reads the drive cycle of the cycle folder and calculates acceloration, total force, power, rouns per second, torque…:
\\omega_{1/s} = \\frac{v_{\\mathrm{m/s}}}{wheel_{radius} \\cdot 2 \\pi} \\cdot i_{g}
T = \\frac{Force \\cdot wheel_{radius}}{i_{g}} \\cdot \\eta_{i_{g}} \\; \\mathrm{for \\; M => 0}
T = \\frac{Force \\cdot wheel_{radius}}{i_{g}} \\cdot \\frac{1}{\\eta_{i_{g}}} \\; \\mathrm{for \\; M < 0}
### DriCy_Selo.read_toml(file)
This function loads the data of the vehicle.
### DriCy_Selo.rolling_fiction(vehicle, v, alpha)
This function calculates the rolling friction acording to Mitschke, Wallentowitz 2014 - Dynamik der Kraftfahzeuge p. 14.:
F_{R} = (M_{w} + M_{z}) \\cdot g \\cdot cos(\\alpha) \\cdot \\left( f_{R0} + f_{R1} \\cdot \\frac{v}{100 km/h} + f_{R4} \\cdot {\\left(\\frac{v}{100 km/h}\\right)}^4\\right)
### DriCy_Selo.slope_resistance(vehicle, alpha)
This function calculates the slope resistance acording to:
F_{S} = sin (\\alpha) \\cdot (M_{w} + M_{z}) \\cdot g
### DriCy_Selo.total_force(vehicle, a, v, alpha)
This function calculates the total force for a vehicle in one operation point:
F_{Total} = F_{S} + F_{A} + F_{L} + F_{R}
......@@ -17,7 +17,9 @@ setup(
'toml',
'numpy',
'matplotlib',
'pathlib',
'scipy',
'sympy',
'pyfiglet',
'scipy',
'sympy',
'pyfiglet'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment